big beer schrieb:
I'm trying to have autoyast setup some LVM volume groups. I can get things setup with a single volume group, but if try to add 2 volume groups I seem to be running into some issue. I'm using the following xml inside the partitioning section to setup the PVs and add to the volume groups.
The problem is that both disks are configured as PVs in the same VG. Both sdb and sdc will be added to firstvg and secondvg will not exist.
using SLES10 SP3 the creation of 2 VGs on 2 PVs works for me. There has been a related issue in the past - I don't remember when it was and what exactly the behaviour has been - since then I have been using "partition_id" and "partiton_nr" instead of "partition_type":
<drive> <device>/dev/cciss/c0d1</device> <initialize config:type="boolean">true</initialize> <partitions config:type="list"> <partition> <lvm_group>database</lvm_group> <mount></mount>
--> *) <partition_id config:type="integer">142</partition_id>
--> <partition_nr config:type="integer">1</partition_nr>
<size>max</size> </partition> </partitions> <use>all</use> </drive>
*) partition_id: ,,Linux LVM'' = 0x8e = 142 (as reported by fdisk) partion_nr: 1..4 =>primary partitions, 5.. => extended partitions (IIRC)
-- Oliver Schweikert Software Development
HORIBA Europe Automation Division GmbH Zabergäustr. 3 73765 Neuhausen (Germany) Tel: +49 7158-933-413 Fax: +49 7158-933-613 Email: email@example.com
Geschäftsführer: Thomas E. Ehmann, Yuichi Muroga, Takashi Nagano Amtsgericht Stuttgart, HRB 213200
Using the xml you provided worked like a charm! I should note that this is on opensuse 11.3.