Hello Dejan In your partition setting <partition> <format config:type="boolean">false</format> <partition_id config:type="integer">253</partition_id> <partition_type>primary</partition_type> <raid_name>/dev/md0</raid_name> <raid_type>raid1</raid_type> <size>max</size> </partition> raid1 must be replaced by raid raid1 is okay here: <raid_options> <chunk_size>32</chunk_size> <parity_algorithm>left-asymmetric</parity_algorithm> <raid_type>raid1</raid_type> </raid_options> Hope this will help you. Alfred At 15:38 20.01.2006, Dejan Muhamedagic wrote:
Hello,
This is a simple disk configuration, two hard disks with two partitions each, the first partition containing the root fs and the two second partitions reserved for the sw raid. The installation stops with this message:
echo y | /sbin/pvcreate -ff -M2 /dev/md0 /dev/md0: Couldn't find device.
because autoyast tries to create the raid with no partitions. The autoyast found both /dev/sda2 and /dev/sdb2 as raid members, but then didn't put them in the /etc/raidtab:
Jan 20 15:21:46 sisyphus yast2[2269]: <1> [YCP] partitioning/raid_lib.ycp:122 dev:/dev/md0 type:raid1 Jan 20 15:21:46 sisyphus yast2[2269]: <1> [YCP] partitioning/raid_lib.ycp:126 partition_list:[$["create":true, "device":"/dev/sda2", "devkey":"2//dev/sda", "format":false, "fs_options":$[], "fsid":253, "fstype":"Linux RAID", "maindev":"/dev/sda", "mount":"", "nr":2, "raid_name":"/dev/md0", "raid_type":"raid1", "region":[66, 2146], "size_byte":17650352128, "size_str":" 16.4 GB", "type":`primary, "used_fs":`unknown], $["create":true, "device":"/dev/sdb2", "devkey":"2//dev/sdb", "format":false, "fs_options":$[], "fsid":253, "fstype":"Linux RAID", "maindev":"/dev/sdb", "mount":"", "nr":2, "raid_name":"/dev/md0", "raid_type":"raid1", "region":[66, 2146], "size_byte":17650352128, "size_str":" 16.4 GB", "type":`primary, "used_fs":`unknown]] Jan 20 15:21:59 sisyphus yast2[2269]: <1> [YCP] partitioning/raid_lib.ycp:855 RAID_: # autogenerated /etc/raidtab by YaST2 raiddev /dev/md0 raid-level 1 nr-raid-disks 0 nr-spare-disks 0 persistent-superblock 1 chunk-size 32 Jan 20 15:21:59 sisyphus yast2[2269]: <1> [YCP] partitioning/raid_lib.ycp:875 created raids: [0] Jan 20 15:22:04 sisyphus yast2[2269]: <1> [YCP] partitioning/raid_lib.ycp:905 success for: /sbin/mkraid -c /etc/raidtab --really-force /dev/md0
The system is SLES9 with SP3 and here's the relevant xml part:
<partitioning config:type="list"> <drive> <device>/dev/sda</device> <initialize config:type="boolean">true</initialize> <partitions config:type="list"> <partition> <filesystem config:type="symbol">ext3</filesystem> <format config:type="boolean">true</format> <mount>/</mount> <partition_id config:type="integer">131</partition_id> <partition_type>primary</partition_type> <size>512M</size> </partition> <partition> <format config:type="boolean">false</format> <partition_id config:type="integer">253</partition_id> <partition_type>primary</partition_type> <raid_name>/dev/md0</raid_name> <raid_type>raid1</raid_type> <size>max</size> </partition> </partitions> <use>all</use> </drive> <drive> <device>/dev/sdb</device> <initialize config:type="boolean">true</initialize> <partitions config:type="list"> <partition> <crypt_fs config:type="boolean">false</crypt_fs> <filesystem config:type="symbol">ext3</filesystem> <format config:type="boolean">true</format> <mount>/rootcopy</mount> <partition_id config:type="integer">131</partition_id> <partition_type>primary</partition_type> <size>512M</size> </partition> <partition> <format config:type="boolean">false</format> <partition_id config:type="integer">253</partition_id> <partition_type>primary</partition_type> <raid_name>/dev/md0</raid_name> <raid_type>raid1</raid_type> <size>max</size> </partition> </partitions> <use>all</use> </drive> <drive> <device>/dev/md</device> <partitions config:type="list"> <partition> <format config:type="boolean">false</format> <lvm_group>rootvg</lvm_group> <partition_id config:type="integer">142</partition_id> <partition_nr config:type="integer">0</partition_nr> <raid_options> <chunk_size>32</chunk_size> <parity_algorithm>left-asymmetric</parity_algorithm> <raid_type>raid1</raid_type> </raid_options> </partition> </partitions> <use>all</use> </drive>
BTW, the partitioning is sourced using <classes>.
Thanks.
Dejan
-- To unsubscribe, e-mail: suse-autoinstall-unsubscribe@suse.com For additional commands, e-mail: suse-autoinstall-help@suse.com