Hi,
I'm trying to do an autoyast install onto LVM striped volumes. I couldn't find an example, but it seems like something similar to the following should work (it works in the unstriped variation).
Specifically, in the partition planning step, I'm getting an error dialog that says "A logical volume with the requested size could not be created. Try reducing the stripe count of the volume."
It doesn't seem like it can actually be running out of space, as the disks are a lot larger than the sizes specified. I've included the end of the y2log below.
Is there some way to tweak this to make it work?
Thanks,
Mike
<bootloader>
<global>
<!-- stomp the MBR; this machine is ours now! -->
<generic_mbr>true</generic_mbr>
<activate>true</activate>
<gfxmenu>none</gfxmenu>
</global>
<loader_type>grub</loader_type>
</bootloader>
<partitioning config:type="list">
<drive>
<device>/dev/sda</device>
<initialize config:type="boolean">true</initialize>
<use>all</use>
<type config:type="symbol">CT_DISK</type>
<partitions config:type="list">
<partition>
<create config:type="boolean">true</create>
<mount>/boot</mount>
<fstopt>defaults</fstopt>
<size>1G</size>
<format config:type="boolean">true</format>
<filesystem config:type="symbol">ext4</filesystem>
</partition>
<partition>
<create config:type="boolean">true</create>
<lvm_group>system</lvm_group>
<partition_type>primary</partition_type>
<size>max</size>
</partition>
</partitions>
</drive>
<drive>
<device>/dev/sdb</device>
<initialize config:type="boolean">true</initialize>
<use>all</use>
<type config:type="symbol">CT_DISK</type>
<partitions config:type="list">
<partition>
<create config:type="boolean">true</create>
<mount>/boot-sdb</mount>
<fstopt>defaults</fstopt>
<size>1G</size>
<format config:type="boolean">true</format>
<filesystem config:type="symbol">ext4</filesystem>
</partition>
<partition>
<create config:type="boolean">true</create>
<lvm_group>system</lvm_group>
<partition_type>primary</partition_type>
<size>max</size>
</partition>
</partitions>
</drive>
<drive>
<device>/dev/system</device>
<initialize config:type="boolean">true</initialize>
<use>all</use>
<type config:type="symbol">CT_LVM</type>
<partitions config:type="list">
<partition>
<create config:type="boolean">true</create>
<lv_name>swap_lv</lv_name>
<mount>swap</mount>
<!-- small, to keep vmware/etc disk usage low -->
<size>6G</size>
<format config:type="boolean">true</format>
<filesystem config:type="symbol">swap</filesystem>
<stripes config:type="integer">2</stripes>
<stripesize config:type="integer">128</stripesize>
</partition>
<partition>
<create config:type="boolean">true</create>
<lv_name>root_lv</lv_name>
<mount>/</mount>
<fstopt>defaults</fstopt>
<size>max</size>
<format config:type="boolean">true</format>
<filesystem config:type="symbol">xfs</filesystem>
<stripes config:type="integer">2</stripes>
<stripesize config:type="integer">128</stripesize>
</partition>
</partitions>
</drive>
</partitioning>
Final 30 lines of y2log:
2012-02-27 13:45:58 <1> 192.168.252.64(3565) [libstorage] LvmVg.cc(getInfo):1643 device:
2012-02-27 13:45:58 <1> 192.168.252.64(3565) [libstorage] LvmVg.cc(getInfo):1645 devices_add:/dev/sda5 /dev/sdb5
2012-02-27 13:45:58 <1> 192.168.252.64(3565) [YCP] Storage.ycp:1601 ls=[]
2012-02-27 13:45:58 <1> 192.168.252.64(3565) [YCP] Storage.ycp:1800 getContainerInfo container $["create":true, "cyl_count":118694, "cyl_size":4194304, "device":"/dev/system", "devices":[], "devices_add":["/dev/sda5", "/dev/sdb5"], "lvm2":true, "name":"system", "partitions":[$["create":true, "detected_fs":`none, "device":"/dev/system/swap_lv", "format":true, "fstype":"LV", "inactive":true, "mount":"swap", "mountby":`device, "name":"swap_lv", "size_k":6291456, "stripes":2, "stripesize":128, "type":`lvm, "used_fs":`swap]], "pe_free":117158, "pesize":4194304, "size_k":486170624, "type":`CT_LVM]
2012-02-27 13:45:58 <1> 192.168.252.64(3565) [YCP] AutoinstLVM.ycp:358 calling addLogicalVolume with lv = $["create":true, "device":"/dev/system/swap_lv", "filesystem":`swap, "format":true, "lv_name":"swap_lv", "mount":"swap", "name":"swap_lv", "size":"6442450944", "size_k":6291456, "stripes":2, "stripesize":128, "type":`lvm, "used_fs":`swap] and current_vg = system
2012-02-27 13:45:58 <1> 192.168.252.64(3565) [YCP] AutoinstLVM.ycp:360 Storage::GetTargetMap returns $["/dev/sda":$["bios_id":"0x80", "bus":"IDE", "cyl_count":30394, "cyl_size":8225280, "device":"/dev/sda", "driver":"ata_piix", "driver_module":"ata_piix", "label":"msdos", "max_logical":255, "max_primary":4, "model":"ST3250318AS", "name":"sda", "partitions":[$["create":true, "detected_fs":`unknown, "device":"/dev/sda1", "format":true, "fsid":131, "fstopt":"defaults", "fstype":"Linux native", "inactive":true, "mount":"/boot", "mountby":`id, "name":"sda1", "nr":1, "region":[0, 131], "size_k":1052257, "type":`primary, "udev_id":["ata-ST3250318AS_9VY594ER-part1", "scsi-SATA_ST3250318AS_9VY594ER-part1", "wwn-0x5000c5001fa8c8f9-part1"], "udev_path":"pci-0000:00:1f.2-scsi-0:0:0:0-part1", "used_fs":`ext4], $["create":true, "detected_fs":`unknown, "device":"/dev/sda2", "fsid":15, "fstype":"Extended", "name":"sda2", "nr":2, "region":[131, 30263], "size_k":243087547, "type":`extended, "udev_id":["ata-ST3250318AS_9VY594ER-part2", "scsi-SATA_ST3250318AS_9VY594ER-part2", "wwn-0x5000c5001fa8c8f9-part2"], "udev_path":"pci-0000:00:1f.2-scsi-0:0:0:0-part2"], $["create":true, "detected_fs":`unknown, "device":"/dev/sda5", "fsid":142, "fstype":"Linux LVM", "name":"sda5", "nr":5, "region":[131, 30263], "size_k":243087547, "type":`logical, "udev_id":["ata-ST3250318AS_9VY594ER-part5", "scsi-SATA_ST3250318AS_9VY594ER-part5", "wwn-0x5000c5001fa8c8f9-part5"], "udev_path":"pci-0000:00:1f.2-scsi-0:0:0:0-part5", "used_by":[$["device":"/dev/system", "type":`UB_LVM]], "used_by_device":"/dev/system", "used_by_type":`UB_LVM]], "proposal_name":"1. IDE Disk, 232.83 GB, /dev/sda, ST3250318AS", "sector_size":512, "size_k":244140625, "transport":`ata, "type":`CT_DISK, "udev_id":["ata-ST3250318AS_9VY594ER", "scsi-SATA_ST3250318AS_9VY594ER", "wwn-0x5000c5001fa8c8f9"], "udev_path":"pci-0000:00:1f.2-scsi-0:0:0:0", "unique":"3OOL.16E5Tj41dwA"], "/dev/sdb":$["bios_id":"0x81", "bus":"IDE", "cyl_count":30394, "cyl_size":8225280, "device":"/dev/sdb", "driver":"ata_piix", "driver_module":"ata_piix", "label":"msdos", "max_logical":255, "max_primary":4, "model":"ST3250318AS", "name":"sdb", "partitions":[$["create":true, "detected_fs":`unknown, "device":"/dev/sdb1", "format":true, "fsid":131, "fstopt":"defaults", "fstype":"Linux native", "inactive":true, "mount":"/boot-sdb", "mountby":`id, "name":"sdb1", "nr":1, "region":[0, 131], "size_k":1052257, "type":`primary, "udev_id":["ata-ST3250318AS_9VY57LLH-part1", "scsi-SATA_ST3250318AS_9VY57LLH-part1", "wwn-0x5000c5001fa5b144-part1"], "udev_path":"pci-0000:00:1f.2-scsi-1:0:0:0-part1", "used_fs":`ext4], $["create":true, "detected_fs":`unknown, "device":"/dev/sdb2", "fsid":15, "fstype":"Extended", "name":"sdb2", "nr":2, "region":[131, 30263], "size_k":243087547, "type":`extended, "udev_id":["ata-ST3250318AS_9VY57LLH-part2", "scsi-SATA_ST3250318AS_9VY57LLH-part2", "wwn-0x5000c5001fa5b144-part2"], "udev_path":"pci-0000:00:1f.2-scsi-1:0:0:0-part2"], $["create":true, "detected_fs":`unknown, "device":"/dev/sdb5", "fsid":142, "fstype":"Linux LVM", "name":"sdb5", "nr":5, "region":[131, 30263], "size_k":243087547, "type":`logical, "udev_id":["ata-ST3250318AS_9VY57LLH-part5", "scsi-SATA_ST3250318AS_9VY57LLH-part5", "wwn-0x5000c5001fa5b144-part5"], "udev_path":"pci-0000:00:1f.2-scsi-1:0:0:0-part5", "used_by":[$["device":"/dev/system", "type":`UB_LVM]], "used_by_device":"/dev/system", "used_by_type":`UB_LVM]], "proposal_name":"2. IDE Disk, 232.83 GB, /dev/sdb, ST3250318AS", "sector_size":512, "size_k":244140625, "transport":`ata, "type":`CT_DISK, "udev_id":["ata-ST3250318AS_9VY57LLH", "scsi-SATA_ST3250318AS_9VY57LLH", "wwn-0x5000c5001fa5b144"], "udev_path":"pci-0000:00:1f.2-scsi-1:0:0:0", "unique":"WZeP.SJGacGDJ4vD"], "/dev/system":$["create":true, "cyl_count":118694, "cyl_size":4194304, "device":"/dev/system", "devices":[], "devices_add":["/dev/sda5", "/dev/sdb5"], "lvm2":true, "name":"system", "partitions":[$["create":true, "detected_fs":`none, "device":"/dev/system/swap_lv", "format":true, "fstype":"LV", "inactive":true, "mount":"swap", "mountby":`device, "name":"swap_lv", "size_k":6291456, "stripes":2, "stripesize":128, "type":`lvm, "used_fs":`swap]], "pe_free":117158, "pesize":4194304, "size_k":486170624, "type":`CT_LVM]]
2012-02-27 13:45:58 <1> 192.168.252.64(3565) [YCP] AutoinstLVM.ycp:308 max-config for striped LV found. Setting size to 486175094K
2012-02-27 13:45:58 <1> 192.168.252.64(3565) [YCP] AutoinstLVM.ycp:314 size_k before rounding 486175094
2012-02-27 13:45:58 <1> 192.168.252.64(3565) [YCP] AutoinstLVM.ycp:316 size_k after rounding 486174720
2012-02-27 13:45:58 <1> 192.168.252.64(3565) [YCP] Storage.ycp:2827 CreateLvmLv vg:system name:root_lv sizeK:486174720 stripes:2
2012-02-27 13:45:58 <1> 192.168.252.64(3565) [libstorage] Storage.cc(createLvmLv):3318 vg:system name:root_lv sizeK:486174720 stripes:2
2012-02-27 13:45:58 <1> 192.168.252.64(3565) [libstorage] LvmVg.cc(createLv):316 name:root_lv sizeK:486174720 stripe:2
2012-02-27 13:45:58 <1> 192.168.252.64(3565) [libstorage] PeContainer.cc(findPe):519 dev:/dev/sda5 ret:false
2012-02-27 13:45:58 <1> 192.168.252.64(3565) [libstorage] PeContainer.cc(findPe):519 dev:/dev/sda5 ret:true
2012-02-27 13:45:58 <1> 192.168.252.64(3565) [libstorage] PeContainer.cc(findPe):519 dev:/dev/sdb5 ret:false
2012-02-27 13:45:58 <1> 192.168.252.64(3565) [libstorage] PeContainer.cc(findPe):519 dev:/dev/sdb5 ret:true
2012-02-27 13:45:58 <1> 192.168.252.64(3565) [libstorage] LvmVg.cc(createLv):356 ret:-4007 device:
2012-02-27 13:45:58 <1> 192.168.252.64(3565) [libstorage] Storage.cc(createLvmLv):3338 ret:-4007 device:
2012-02-27 13:45:58 <3> 192.168.252.64(3565) [YCP] Storage.ycp:2834 CreateLvmLv sint ret:-4007
2012-02-27 13:45:58 <1> 192.168.252.64(3565) [YCP] Storage.ycp:1960 UpdateTargetMapDisk
2012-02-27 13:45:58 <1> 192.168.252.64(3565) [libstorage] Storage.cc(getContainers):5060 co:CType:DISK Name:sda Device:/dev/sda SizeK:244140625 Node:<8:0> alt_names:</dev/disk/by-path/pci-0000:00:1f.2-scsi-0:0:0:0 /dev/disk/by-id/ata-ST3250318AS_9VY594ER /dev/disk/by-id/scsi-SATA_ST3250318AS_9VY594ER /dev/disk/by-id/wwn-0x5000c5001fa8c8f9>
2012-02-27 13:45:58 <1> 192.168.252.64(3565) [libstorage] Storage.cc(getContainers):5060 co:CType:DISK Name:sdb Device:/dev/sdb SizeK:244140625 Node:<8:16> alt_names:</dev/disk/by-path/pci-0000:00:1f.2-scsi-1:0:0:0 /dev/disk/by-id/ata-ST3250318AS_9VY57LLH /dev/disk/by-id/scsi-SATA_ST3250318AS_9VY57LLH /dev/disk/by-id/wwn-0x5000c5001fa5b144>
2012-02-27 13:45:58 <1> 192.168.252.64(3565) [libstorage] Storage.cc(getContainers):5060 co:CType:LVM Name:system Device:/dev/system SizeK:486170624 created
2012-02-27 13:45:58 <1> 192.168.252.64(3565) [YCP] Storage.ycp:1853 getContainers ret:[$["device":"/dev/sda", "name":"sda", "type":`CT_DISK, "udev_id":["ata-ST3250318AS_9VY594ER", "scsi-SATA_ST3250318AS_9VY594ER", "wwn-0x5000c5001fa8c8f9"], "udev_path":"pci-0000:00:1f.2-scsi-0:0:0:0"], $["device":"/dev/sdb", "name":"sdb", "type":`CT_DISK, "udev_id":["ata-ST3250318AS_9VY57LLH", "scsi-SATA_ST3250318AS_9VY57LLH", "wwn-0x5000c5001fa5b144"], "udev_path":"pci-0000:00:1f.2-scsi-1:0:0:0"], $["device":"/dev/system", "name":"system", "type":`CT_LVM]]
2012-02-27 13:45:58 <1> 192.168.252.64(3565) [YCP] Storage.ycp:1451 getContainerInfo $["device":"/dev/system", "name":"system", "type":`CT_LVM]
2012-02-27 13:45:58 <1> 192.168.252.64(3565) [libstorage] LvmVg.cc(getInfo):1643 device:
2012-02-27 13:45:58 <1> 192.168.252.64(3565) [libstorage] LvmVg.cc(getInfo):1645 devices_add:/dev/sda5 /dev/sdb5
2012-02-27 13:45:58 <1> 192.168.252.64(3565) [YCP] Storage.ycp:1601 ls=[]
2012-02-27 13:45:58 <1> 192.168.252.64(3565) [YCP] Storage.ycp:1800 getContainerInfo container $["create":true, "cyl_count":118694, "cyl_size":4194304, "device":"/dev/system", "devices":[], "devices_add":["/dev/sda5", "/dev/sdb5"], "lvm2":true, "name":"system", "partitions":[$["create":true, "detected_fs":`none, "device":"/dev/system/swap_lv", "format":true, "fstype":"LV", "inactive":true, "mount":"swap", "mountby":`device, "name":"swap_lv", "size_k":6291456, "stripes":2, "stripesize":128, "type":`lvm, "used_fs":`swap]], "pe_free":117158, "pesize":4194304, "size_k":486170624, "type":`CT_LVM]
2012-02-27 12:45:58 <1> 192.168.252.64(3565) [ui] YPushButton.cc(setFunctionKey):204 Guessing button role YOKButton for YPushButton "OK" at 0x7f6c082229e8 from function key F10
--
To unsubscribe, e-mail: yast-devel+unsubscribe(a)opensuse.org
To contact the owner, e-mail: yast-devel+owner(a)opensuse.org