[Bug 591909] Re: preseed Lucid with RAID and LVM fails to boot
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: partman-auto-raid (Ubuntu) Status: New = Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/591909 Title: preseed Lucid with RAID and LVM fails to boot To manage notifications about this bug go to: https://bugs.launchpad.net/mdadm/+bug/591909/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 591909] Re: preseed Lucid with RAID and LVM fails to boot
** Changed in: partman-auto-raid (Ubuntu) Assignee: Colin Watson (cjwatson) = (unassigned) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/591909 Title: preseed Lucid with RAID and LVM fails to boot To manage notifications about this bug go to: https://bugs.launchpad.net/mdadm/+bug/591909/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 591909] Re: preseed Lucid with RAID and LVM fails to boot
I've got the same problem using the standard netinstall image via pxe, I've manually created a md0 for /boot and md1 for /. After the first reboot, /boot wasn't mounted by ubuntu, and md1 got assembled with /dev/sda and /dev/sdb instead of /dev/sda2 and /dev/sdb2. This should be an high blocking bug, because raid+lvm is a standard on server equipment. -- preseed Lucid with RAID and LVM fails to boot https://bugs.launchpad.net/bugs/591909 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 591909] Re: preseed Lucid with RAID and LVM fails to boot
Attached is a working configuration for LVM + RAID partitioning. Note that extended partitions must be used for the LVM physical device (changing this to primary and using sd[ab]2 failed miserably). And also note that you need to use LBA alignment either from a boot param (preferred) or from the preseed file (not tested by me but it should work). Enjoy p.s. this bug should be closed after you (ubuntu devs) decide whether to enable LBA alignment by default in the d-i (doubt it) or fix mdadm so it doesn't get confused by partitions whose cylinder appear to be overlapping (likely). This also means that this bug should affect mdadm as well. ** Attachment added: working lvm + raid preseed config http://launchpadlibrarian.net/52373383/ubuntu-lvm-raid.seed -- preseed Lucid with RAID and LVM fails to boot https://bugs.launchpad.net/bugs/591909 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 591909] Re: preseed Lucid with RAID and LVM fails to boot
OMG posted an older version... sorry about this. ** Attachment added: working lvm + raid preseed config http://launchpadlibrarian.net/52373584/ubuntu-lvm-raid.seed ** Also affects: mdadm Importance: Undecided Status: New -- preseed Lucid with RAID and LVM fails to boot https://bugs.launchpad.net/bugs/591909 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 591909] Re: preseed Lucid with RAID and LVM fails to boot
I believe this bug boils down to the disk being partition in the wrong way by d-i. Take a look at this: r...@zod[~]# cfdisk /dev/sdb FATAL ERROR: Bad primary partition 1: Partition ends in the final partial cylind Press any key to exit cfdisk r...@zod[~]# fdisk -l /dev/sdb Disk /dev/sdb: 500.1 GB, 500107862016 bytes 255 heads, 63 sectors/track, 60801 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x000aba37 Device Boot Start End Blocks Id System /dev/sdb1 * 1 32 248832 fd Linux raid autodetect Partition 1 does not end on cylinder boundary. /dev/sdb2 32 60802 488136704 fd Linux raid autodetect As you can see here, sdb1 would take the full drive since it starts at cylinder 1 and ends in 32, but sdb2 starts at 32 and ends in 60802. This confuses mdadm when re-assembling the RAID1 array as the first partition (sda1), the second partition (sda2) and the full disk (sda) will have the same superblock! If you preseed a system without RAID, it will boot normal and the system will somehow manage to work, even though the partitions will have the same problem mentioned above. Example: r...@zod[~]# fdisk -l /dev/sda Disk /dev/sda: 500.1 GB, 500107862016 bytes 255 heads, 63 sectors/track, 60801 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x4c34 Device Boot Start End Blocks Id System /dev/sda1 * 1 32 248832 83 Linux Partition 1 does not end on cylinder boundary. /dev/sda2 32 60802 4881356815 Extended /dev/sda5 32 59328 476296192 83 Linux /dev/sda6 59328 6080211838464 82 Linux swap / Solaris r...@zod[~]# cfdisk /dev/sda FATAL ERROR: Bad primary partition 1: Partition ends in the final partial cylind If I partition the disk using cfdisk (fdisk /dev/sdb and use o to remove the partition table so I get a clean mbr), then the partitions have the right start-end cylinders: r...@zod[~]# fdisk -l /dev/sdb Disk /dev/sdb: 500.1 GB, 500107862016 bytes 255 heads, 63 sectors/track, 60801 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0xd276e505 Device Boot Start End Blocks Id System /dev/sdb1 1 31 248976 83 Linux /dev/sdb2 32 60801 488135025 fd Linux raid autodetect This is a very serious bug and it's amazing to see that nobody has reported this before. Perhaps because I've been trying to find a solution for raid+lvm preseed and didn't look for debian installer wrong partition cylinder instead. -- preseed Lucid with RAID and LVM fails to boot https://bugs.launchpad.net/bugs/591909 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 591909] Re: preseed Lucid with RAID and LVM fails to boot
And sure enough, this bug report has the right solution in comment #3 : https://bugs.launchpad.net/ubuntu/+source/debian-installer/+bug/574232/comments/3 Probably related to Bug #561573 and Bug #551965 Appending partman/alignment=cylinder as kernel boot parameter solved the problem for me. -- preseed Lucid with RAID and LVM fails to boot https://bugs.launchpad.net/bugs/591909 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 591909] Re: preseed Lucid with RAID and LVM fails to boot
Finally! The solution for #2 is to do: partman/alignment=cylinder After this bootparam (in pxelinux.cfg/default), mdadm did the right thing and the system booted just fine. Note that this is done on 2 different x86_64 systems: 1. Sun workstation Ultra20 m2 2. HP xw4600 Both have 2 SATA disks of the same size and same manufacturer. I'm glad that this is finally resolved! -- preseed Lucid with RAID and LVM fails to boot https://bugs.launchpad.net/bugs/591909 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 591909] Re: preseed Lucid with RAID and LVM fails to boot
Pasi, Thanks. I'm sure I had this option before. I tried that and it indeed allowed the preseed to continue. When done, I still see the /dev/md1p1 weird partitions and I get dropped to initramfs shell to fix it manually. This sucks. -- preseed Lucid with RAID and LVM fails to boot https://bugs.launchpad.net/bugs/591909 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 591909] Re: preseed Lucid with RAID and LVM fails to boot
For 1, try: d-i partman-md/confirm_nooverwrite boolean true -- preseed Lucid with RAID and LVM fails to boot https://bugs.launchpad.net/bugs/591909 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 591909] Re: preseed Lucid with RAID and LVM fails to boot
** Attachment added: preseed recipe for lvm, raid installation http://launchpadlibrarian.net/50032963/partman-auto-raid.seed ** Changed in: partman-auto-raid (Ubuntu) Assignee: (unassigned) = Colin Watson (cjwatson) -- preseed Lucid with RAID and LVM fails to boot https://bugs.launchpad.net/bugs/591909 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs