[Bug 541058] Re: [-UUIDudev] mdadm fails to assemble raid during boot
@tombert, thats fine! thanks for the files! I have updated the summary and bug title with the information you provided. Shall provide further updates soon! ** Description changed: Binary package hint: mdadm Creating an mdadm array works fine: mdadm --create /dev/md0 -n 3 -l5 /dev/sdb1 /dev/sdc1 /dev/sdd1 Now when booting the array is assembled correctly. Delete the array and zero-superblock, create new partition and mark as fd, create the same array again with command above. Now the system tries to assemble a single device into /dev/md_d0 - when other devices are missing. I checked each device with -examine and each reports the same uuid, the same host and the same name. In order to get it working one has to stop the md_d0 and assemble manually: mdadm --stop /dev/md_d0 mdadm --assemble /dev/md0 /dev/sdb1 /dev/sdc1 /dev/sdd1 To overcome this problem one has to remove the homehost from mdadm.conf and assemble the array manually during boot. What helps ist to reinstall the system ... This bug is pretty often found when googling around. Possible hints are udev and dmraid, whereas I already deinstalled dmraid but didn't help. Ubuntu 9.10 Linux 2.6.31-14-generic-pae mdadm 2.6.7.1 + + * The array gets configured when mdadm.conf reflects the array + definitions. But it does not get assemble automatically ** Summary changed: - [-UUIDudev] mdadm fails to assemble raid during boot + [-UUIDudev] mdadm fails to automatically assemble raid during boot (without mdadm.conf) -- [-UUIDudev] mdadm fails to automatically assemble raid during boot (without mdadm.conf) https://bugs.launchpad.net/bugs/541058 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 541058] Re: [-UUIDudev] mdadm fails to assemble raid during boot
@tombert, I suggest you to do the following: 1) /usr/share/mdadm/mkconf 2) compare the output of step1 with the output of /etc/mdadm/mdadm.conf. If your array definition is not found in /etc/mdadm/mdadm.conf, then you will need to add this array definition manually (using its uuids). (* The initramfs/hook for mdadm shall soon be updated. It should create a mdadm.conf for you or warn you when an active array definition is not found in mdadm.conf) 3) update-initramfs -c -k kernel-version. (Verify that the initramfs has your array definition in it) 4) update-grub 5) reboot This should ensure that your raid is configured while booting. * If /var/run/mdadm is not present then mdadm makes a map in /var/run/ which is already present in initramfs. So this should not be a show stopper for raid bring up. (please refer to man mdadm for more information) Marking this bug as invalid as of now. ** Changed in: mdadm (Ubuntu) Status: Confirmed = Invalid -- [-UUIDudev] mdadm fails to assemble raid during boot https://bugs.launchpad.net/bugs/541058 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 541058] Re: [-UUIDudev] mdadm fails to assemble raid during boot
Thats a bit fast ... and misunderstood. The raid array I'am using is not a bootable array - thus the initramfs etc. makes no sense. Second: raid is automatically reconstructed from the superblocks as soon as the service starts - thus I do not need an mdadm.conf regards -- [-UUIDudev] mdadm fails to assemble raid during boot https://bugs.launchpad.net/bugs/541058 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 541058] Re: [-UUIDudev] mdadm fails to assemble raid during boot
Please put back this item from invalid to confirmed. thx -- [-UUIDudev] mdadm fails to assemble raid during boot https://bugs.launchpad.net/bugs/541058 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
Re: [Bug 541058] Re: [-UUIDudev] mdadm fails to assemble raid during boot
@Surbhi mdadm is supposed to be able to assemble arrays that are not explicitly specified in the configuration file by scanning superblocks during bootup. That's what this bug is about. Explicitly specifying arrays in mdadm.conf is a workaround, not the solution. On Wed, Sep 15, 2010 at 8:00 AM, Surbhi Palande 541...@bugs.launchpad.netwrote: @tombert, I suggest you to do the following: 1) /usr/share/mdadm/mkconf 2) compare the output of step1 with the output of /etc/mdadm/mdadm.conf. If your array definition is not found in /etc/mdadm/mdadm.conf, then you will need to add this array definition manually (using its uuids). (* The initramfs/hook for mdadm shall soon be updated. It should create a mdadm.conf for you or warn you when an active array definition is not found in mdadm.conf) 3) update-initramfs -c -k kernel-version. (Verify that the initramfs has your array definition in it) 4) update-grub 5) reboot This should ensure that your raid is configured while booting. * If /var/run/mdadm is not present then mdadm makes a map in /var/run/ which is already present in initramfs. So this should not be a show stopper for raid bring up. (please refer to man mdadm for more information) Marking this bug as invalid as of now. ** Changed in: mdadm (Ubuntu) Status: Confirmed = Invalid -- [-UUIDudev] mdadm fails to assemble raid during boot https://bugs.launchpad.net/bugs/541058 You received this bug notification because you are a direct subscriber of the bug. -- [-UUIDudev] mdadm fails to assemble raid during boot https://bugs.launchpad.net/bugs/541058 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 541058] Re: [-UUIDudev] mdadm fails to assemble raid during boot
** Changed in: mdadm (Ubuntu) Status: Invalid = Confirmed -- [-UUIDudev] mdadm fails to assemble raid during boot https://bugs.launchpad.net/bugs/541058 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 541058] Re: [-UUIDudev] mdadm fails to assemble raid during boot
@Surbhi when you go around changing many bug statuses you chould probably subscribe to mdadm bug mail in general and be careful with changes. -- [-UUIDudev] mdadm fails to assemble raid during boot https://bugs.launchpad.net/bugs/541058 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 541058] Re: [-UUIDudev] mdadm fails to assemble raid during boot
@tombert, have you tried booting using the Array definition in the configuration file (/etc/mdadm/mdadm.conf?) Does that work for you? If so, then can you add this fact to your summary? Thanks for that! Also, can you please attach the output of the following (without your ARRAY definition in mdadm.conf) 1) cat /proc/mdsat? 2) madm -E: for: /dev/sdb1 /dev/sdc1 /dev/sdd1 3) set the level for udev as debug and then the udev log 4) contents of udevdb 5) output of dmesg Thanks! -- [-UUIDudev] mdadm fails to assemble raid during boot https://bugs.launchpad.net/bugs/541058 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 541058] Re: [-UUIDudev] mdadm fails to assemble raid during boot
** Attachment added: mdstat https://bugs.launchpad.net/ubuntu/+source/mdadm/+bug/541058/+attachment/1589579/+files/mdstat.txt -- [-UUIDudev] mdadm fails to assemble raid during boot https://bugs.launchpad.net/bugs/541058 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 541058] Re: [-UUIDudev] mdadm fails to assemble raid during boot
** Attachment added: mdadm.sdb1.txt https://bugs.launchpad.net/ubuntu/+source/mdadm/+bug/541058/+attachment/1589580/+files/mdadm.sdb1.txt -- [-UUIDudev] mdadm fails to assemble raid during boot https://bugs.launchpad.net/bugs/541058 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 541058] Re: [-UUIDudev] mdadm fails to assemble raid during boot
** Attachment added: mdadm.sdc1.txt https://bugs.launchpad.net/ubuntu/+source/mdadm/+bug/541058/+attachment/1589581/+files/mdadm.sdc1.txt -- [-UUIDudev] mdadm fails to assemble raid during boot https://bugs.launchpad.net/bugs/541058 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 541058] Re: [-UUIDudev] mdadm fails to assemble raid during boot
** Attachment added: mdadm.sdd1.txt https://bugs.launchpad.net/ubuntu/+source/mdadm/+bug/541058/+attachment/1589584/+files/mdadm.sdd1.txt -- [-UUIDudev] mdadm fails to assemble raid during boot https://bugs.launchpad.net/bugs/541058 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 541058] Re: [-UUIDudev] mdadm fails to assemble raid during boot
** Attachment added: dmesg.txt https://bugs.launchpad.net/ubuntu/+source/mdadm/+bug/541058/+attachment/1589585/+files/dmesg.txt -- [-UUIDudev] mdadm fails to assemble raid during boot https://bugs.launchpad.net/bugs/541058 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 541058] Re: [-UUIDudev] mdadm fails to assemble raid during boot
** Attachment added: udevd.txt https://bugs.launchpad.net/ubuntu/+source/mdadm/+bug/541058/+attachment/1589586/+files/udevd.txt -- [-UUIDudev] mdadm fails to assemble raid during boot https://bugs.launchpad.net/bugs/541058 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 541058] Re: [-UUIDudev] mdadm fails to assemble raid during boot
... have you tried booting using the Array definition in the configuration file (/etc/mdadm/mdadm.conf?) ... yes this I tried as I remember correctly - its already half a year ago - please don't be offended if I don't try this again cause I already have critical data on my system. I hope the log files are containing what you are looking for. thx for help thomas -- [-UUIDudev] mdadm fails to assemble raid during boot https://bugs.launchpad.net/bugs/541058 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 541058] Re: [-UUIDudev] mdadm fails to assemble raid during boot
On looking at this further, I seem to only have that problem with a drive-level RAID. A partition-level RAID will still inform the system that the member partitions are not available for use. Of course, automatic assembly still fails if the array isn't specified in initrd's mdadm.conf. Sami's workaround didn't help that, either. -- [-UUIDudev] mdadm fails to assemble raid during boot https://bugs.launchpad.net/bugs/541058 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 541058] Re: [-UUIDudev] mdadm fails to assemble raid during boot
I have been experiencing the same problem with a (non-root) RAID-1 array. Ceg, I tried the workaround (building a proper mdadm.conf file and putting it in initramfs). If I put the array information into mdadm.conf, the array is built successfully during boot, HOWEVER, the member partitions for the array are not hidden from /proc/partitions (which they are if the array is built after bootup), so both the array and the member partitions show up in userland tools (e.g. the Gnome Places menu), so the places menu shows three entries rather than one, one for each disk and one for the array, and if I was to mis-click on one of the member disks, my RAID-1 array would be corrupted and need to be rebuilt. It really looks like there is some kind of race condition going on here. -- [-UUIDudev] mdadm fails to assemble raid during boot https://bugs.launchpad.net/bugs/541058 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 541058] Re: [-UUIDudev] mdadm fails to assemble raid during boot
Does that workaround help? Bug #469574 [-UUIDudev] new array not assembled correctly after reboot -- [-UUIDudev] mdadm fails to assemble raid during boot https://bugs.launchpad.net/bugs/541058 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 541058] Re: [-UUIDudev] mdadm fails to assemble raid during boot
I meant the workaround in Bug #469574. Does it help without applying Sami's? -- [-UUIDudev] mdadm fails to assemble raid during boot https://bugs.launchpad.net/bugs/541058 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