https://bugzilla.novell.com/show_bug.cgi?id=855052 https://bugzilla.novell.com/show_bug.cgi?id=855052#c0 Summary: Opensuse installer in Xen Guest incorrectly aligns 1st partition @ 2048, rather than fdisk's (minimum) default of 4096 Classification: openSUSE Product: openSUSE 13.1 Version: Final Platform: x86-64 OS/Version: openSUSE 13.1 Status: NEW Severity: Normal Priority: P5 - None Component: Installation AssignedTo: yast2-maintainers@suse.de ReportedBy: ar16@imapmail.org QAContact: jsrain@suse.com Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:26.0) Gecko/20100101 Firefox/26.0 @ 13.1 Xen Dom0 host, create LV install targets lvcreate -L 160M -n test_boot /dev/VG0 lvcreate -L 4G -n test_root /dev/VG0 lvcreate -L 512M -n test_swap /dev/VG0 insert opensuse 131 install iso (openSUSE-13.1-DVD-x86_64) edit Guest template for HVM vi template_131.cfg name = 'os131-template' builder = 'hvm' acpi = 1 apic = 1 boot = 'd' disk = [ 'phy:/dev/VG0/test_boot,hda,w', 'phy:/dev/VG0/test_swap,hdb,w', 'phy:/dev/VG0/test_root,hdc,w', 'phy:/dev/sr1,hdd:cdrom,r', ] vif = [ 'mac=00:16:3E:52:00:02, model=rtl8139, type=ioemu, bridge=br0, vifname=vif0',] vnc = 0 sdl = 0 stdvga = 1 serial = 'pty' ... launch the Guest xl create template.cfg @ vnc window, run OpenSUSE Installer, selectin custom partition, specifying target partitions, from above @ complete, Guest automatically shuts down relaunch Guest xl create template.cfg @ vnc window, continue with OpenSUSE Installer, 2nd pass, finish config. shutdown -h now @ Host, examine lvs | grep -i os131 | grep test test_boot VG0 -wi-a---- 160.00m test_root VG0 -wi-a---- 4.00g test_swap VG0 -wi-a---- 512.00m note that the created partitions are aligned at sector 2048 kpartx -av /dev/VG0/test__root add map VG0-test_root1 (253:10): 0 8386560 linear /dev/VG0/test_root 2048 kpartx -av /dev/VG0/test__boot add map VG0-test_boot1 (253:11): 0 325632 linear /dev/VG0/test_boot 2048 kpartx -av /dev/VG0/test__swap add map VG0-test_swap1 (253:12): 0 1046528 linear /dev/VG0/test_swap 2048 If you attempt to in-place grow any of those partitions using kpartx+fdisk, requiring partition reassignment, fdisk will default to a MINIMUM 1st sector alignment of 4096 -- 2048 is NOT an option. If 4096 is chosen for new partion, resulting copy will subsequently refuse to launch, as sector information between 2048 & 4096 has been lost/corrupted. Manually creating 4096-aligned partitions, and rsync'ing contents, allows a 'recovery' lvcreate -L 160M -n testNEW_boot /dev/VG0 lvcreate -L 4G -n testNEW_root /dev/VG0 lvcreate -L 512M -n testNEW_swap /dev/VG0 for each of testNEW_boot, testNEW_root, testNEW_swap fdisk /dev/VG0/XX <<EOF d n p 1 4096 a w EOF then kpartx -av /dev/VG0/testNEW_boot kpartx -av /dev/VG0/testNEW_root kpartx -av /dev/VG0/testNEW_swap mkfs.ext4 /dev/mapper/VG0-testNEW_boot1 mkfs.ext4 /dev/mapper/VG0-testNEW_root1 mkswap /dev/mapper/VG0-testNEW_swap1 kpartx -av /dev/VG0/test_boot kpartx -av /dev/VG0/test_root kpartx -av /dev/VG0/test_swap mount /dev/mapper/VG0-test_boot1 /mnt/testb mount /dev/mapper/VG0-test_root1 /mnt/testr mount /dev/mapper/VG0-testNEW_boot1 /mnt/testNEWb mount /dev/mapper/VG0-testNEW_root1 /mnt/testNEWr cd /mnt rsync -aHv /mnt/testb/ /mnt/testNEWb/ rsync -aHv /mnt/testr/ /mnt/testNEWb ... and launching 'newly-aligned' Guest now works Reproducible: Always Steps to Reproduce: 1. 2. 3. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.