[Bug 136252] Re: [-UUIDudev] mdadm.conf w/o ARRAY lines but udev/mdadm not assembling arrays. (boot hotplug fails)
I can also confirm that this bug is stil present on precise I first did a release-upgrade when the crash started appearing. I reinstalled the box and the issue still appears. I will try these tips here regarding mdadm.conf. On a related note. I find it interesting that my only RAID-device becomes /dev/md127 instead of /dev/md0 as it has always been. root@dom0:/home/thu# cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=12.04 DISTRIB_CODENAME=precise DISTRIB_DESCRIPTION=Ubuntu 12.04 LTS root@dom0:/home/thu# cat /etc/mdadm/mdadm.conf # mdadm.conf # # Please refer to mdadm.conf(5) for information about this file. # # by default (built-in), scan all partitions (/proc/partitions) and all # containers for MD superblocks. alternatively, specify devices to scan, using # wildcards if desired. #DEVICE partitions containers # auto-create devices with Debian standard permissions CREATE owner=root group=disk mode=0660 auto=yes # automatically tag new arrays as belonging to the local system HOMEHOST system # instruct the monitoring daemon where to send mail alerts MAILADDR root # definitions of existing MD arrays # This file was auto-generated on Sat, 28 Jul 2012 01:05:22 +0200 # by mkconf $Id$ root@dom0:/home/thu# mdadm --detail /dev/md127 /dev/md127: Version : 0.90 Creation Time : Sat Jan 24 14:16:52 2009 Raid Level : raid6 Array Size : 13186245888 (12575.38 GiB 13502.72 GB) Used Dev Size : 1465138432 (1397.26 GiB 1500.30 GB) Raid Devices : 11 Total Devices : 12 Preferred Minor : 127 Persistence : Superblock is persistent Update Time : Sat Jul 28 13:31:06 2012 State : clean, degraded, recovering Active Devices : 10 Working Devices : 11 Failed Devices : 1 Spare Devices : 1 Layout : left-symmetric Chunk Size : 128K Rebuild Status : 85% complete UUID : 1f095377:1c62a5f4:352a6ad4:582f9bd3 Events : 0.608892 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/136252 Title: [-UUIDudev] mdadm.conf w/o ARRAY lines but udev/mdadm not assembling arrays. (boot hotplug fails) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/mdadm/+bug/136252/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 136252] Re: [-UUIDudev] mdadm.conf w/o ARRAY lines but udev/mdadm not assembling arrays. (boot hotplug fails)
** No longer affects: mdadm (Ubuntu Lucid) ** No longer affects: mdadm (Ubuntu Maverick) ** Changed in: mdadm (Ubuntu) Status: In Progress = Confirmed ** Changed in: mdadm (Ubuntu) Assignee: Dmitrijs Ledkovs (dmitrij.ledkov) = (unassigned) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/136252 Title: [-UUIDudev] mdadm.conf w/o ARRAY lines but udev/mdadm not assembling arrays. (boot hotplug fails) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/mdadm/+bug/136252/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 136252] Re: [-UUIDudev] mdadm.conf w/o ARRAY lines but udev/mdadm not assembling arrays. (boot hotplug fails)
** Changed in: mdadm (Ubuntu) Assignee: (unassigned) = Dmitrijs Ledkovs (dmitrij.ledkov) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/136252 Title: [-UUIDudev] mdadm.conf w/o ARRAY lines but udev/mdadm not assembling arrays. (boot hotplug fails) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/mdadm/+bug/136252/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 136252] Re: [-UUIDudev] mdadm.conf w/o ARRAY lines but udev/mdadm not assembling arrays. (boot hotplug fails)
It looks like you can specify that incremental assembly should recognize arrays without caring about homehost or having an ARRAY line with the AUTO line. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/136252 Title: [-UUIDudev] mdadm.conf w/o ARRAY lines but udev/mdadm not assembling arrays. (boot hotplug fails) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/mdadm/+bug/136252/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 136252] Re: [-UUIDudev] mdadm.conf w/o ARRAY lines but udev/mdadm not assembling arrays. (boot hotplug fails)
It's surprising that initramfs-tools' init calls hostname, but doesn't take any steps to make it available in the initramfs. I guess it's quite sane to not have the hostname leak into the initramfs. The initramfs stays universal to boot different root filsystems. And if a root filesystem is encrypted, having the hostname in initramfs might be even less desired. The new mdadm should be able to incrementally assemble any arrays plugged securely, without needing/doing any hostname checks on the member devices, relying on UUIDs instead to prevent wrong assemblies. So this hostname insertion should just be a temporary workaround, and go away with an update to a more recent mdadm version. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/136252 Title: [-UUIDudev] mdadm.conf w/o ARRAY lines but udev/mdadm not assembling arrays. (boot hotplug fails) -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 136252] Re: [-UUIDudev] mdadm.conf w/o ARRAY lines but udev/mdadm not assembling arrays. (boot hotplug fails)
Surbhi, Sorry to be so long in reviewing this. Some questions about the proposed SRU diff: * While rebuilding the mapfile (mdadm -Ir), if appropriate name is not found in /dev/md, look for a name in mdadm.conf or the metadata. There's no bug number for this change. What issue is this fixing? This also doesn't appear to be in mdadm 3.1.4 - is the issue fixed differently in later releases? * Allow an empty name rather than unknown for an array What issue is this fixing (no bug number)? Is there any chance of regression from this change? * Identify md0 correctly - fixed typo (LP: #532960) The SRU diff is 900 lines long... can you be more specific about which line is the typo fix for this bug? :) * Resolve issues like mdadm -Ss; mdadm: unable to open /dev/md/r1: No such file or directory * Report the correct superblock version. * Correct the logic for partitions in md devices. Use /sys/dev links to map major/minor to devnum in sysfs * Changed the open_mddev_devnum() to create_mddev_devnum() - as its really creating something in /dev. Also renamed for porting few changes from mdadm-3.4.1 to mdadm-2.6.7.x * If two devices are added via -I, mdadm can get badly confused. Fixed this. Again, not clear which changes map to which changelog entries, making it very difficult to review this. Maybe a bzr branch with individual commits would make this easier to understand? * For autoassembly to work properly the initramfs should set the hostname. Copy the hostname binary and /etc/hostname in the initramfs so as to set the hostname at boot time. (LP: #136252) It's surprising that initramfs-tools' init calls hostname, but doesn't take any steps to make it available in the initramfs. But I think this is still the right place to do the copy since only when mdadm is used do we need it in the initramfs. * At installation time hostname will not be set before the array is created. Thus the uuid written on the root array created at Ubuntu installation time will never correspond to that of the hostname. Due to this auto assembly will never work. Add support to use the machine name when the hostname is unspecified example at installation time. (LP: #136252) (LP: #532960) (LP: #330399) None of the referenced bugs appear to discuss this happening at installation time. Can you explain why this would happen at install time? Isn't setting the host name one of the first things done in the installer? If that's not being done correctly, is there a bug to track fixing this issue in the installer, too? (Of course, we still need mdadm to cope with any systems that were already installed this way.) * Fix the error /dev/MKDEV not found From what I see, this isn't an error, just a warning. I don't think this is appropriate to include in an SRU. ** Also affects: mdadm (Ubuntu Lucid) Importance: Undecided Status: New ** Also affects: mdadm (Ubuntu Maverick) Importance: Undecided Status: New ** Changed in: mdadm (Ubuntu Lucid) Status: New = In Progress ** Changed in: mdadm (Ubuntu Maverick) Status: New = In Progress -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/136252 Title: [-UUIDudev] mdadm.conf w/o ARRAY lines but udev/mdadm not assembling arrays. (boot hotplug fails) -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 136252] Re: [-UUIDudev] mdadm.conf w/o ARRAY lines but udev/mdadm not assembling arrays. (boot hotplug fails)
Again I ran into this. System was an Ubuntu 8.10 with an 8-disk md array plus separate system disk. Given that 8.10 is not supported anymore, I needed to upgrade to 10.04. All I did was change sources.list to lucid and apt-get dist-upgrade, reboot, and I am left without my array. * mdadm.conf is the default, no ARRAY line * mdadm --auto-detect does nothing * mdadm --assemble /dem/md0 complains Worse, * Adding ARRAY /dev/md0 devices=/dev/sda,/dev/sdb,/dev/sdc,/dev/sdd,/dev/sde,/dev/sdf,/dev/sdg,/dev/sdh to mdadm.conf and doing mdadm --assemble /dem/md0 says that /dev/sdb has no superblock - which is freaky, given that it worked fine before the upgrade. So, this is still breaking systems, even when upgrading to the latest 10.04 LTS. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/136252 Title: [-UUIDudev] mdadm.conf w/o ARRAY lines but udev/mdadm not assembling arrays. (boot hotplug fails) -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 136252] Re: [-UUIDudev] mdadm.conf w/o ARRAY lines but udev/mdadm not assembling arrays. (boot hotplug fails)
Well, what you described is not standard upgrade procedure, as per Ubuntu. I did upgrade from 8.10, following Ubuntu directive, going to - 9.04 ; reboot - 9.10 ; reboot - 10.04 LTS with my system on RAID1 and GRUB on both disks. That was a year ago and it is still working. Hope this can be of any help. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/136252 Title: [-UUIDudev] mdadm.conf w/o ARRAY lines but udev/mdadm not assembling arrays. (boot hotplug fails) -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 136252] Re: [-UUIDudev] mdadm.conf w/o ARRAY lines but udev/mdadm not assembling arrays. (boot hotplug fails)
Debdiff of all patches fixing bugs for: *) autoassembly of raid arrays This will also as a good side effect: *) choose the correct device name (also necessary for correct auto assembly). *) report the appropriate meta data information. Please do consider this for mdadm-2.6.7.x. The debdiff is created for maverick and can apply also for lucid. Thanks! ** Patch added: mdadm_lp_bug_fixes.debdiff https://bugs.launchpad.net/ubuntu/+source/mdadm/+bug/136252/+attachment/2139759/+files/mdadm_lp_bug_fixes.debdiff ** Changed in: mdadm (Ubuntu) Assignee: Surbhi Palande (csurbhi) = (unassigned) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/136252 Title: [-UUIDudev] mdadm.conf w/o ARRAY lines but udev/mdadm not assembling arrays. (boot hotplug fails) -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 136252] Re: [-UUIDudev] mdadm.conf w/o ARRAY lines but udev/mdadm not assembling arrays. (boot hotplug fails)
@ceg, yes, the hostname part is no longer needed for the newer mdadm. We don't need any of the patches for natty. They only apply to older mdadm version. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/136252 Title: [-UUIDudev] mdadm.conf w/o ARRAY lines but udev/mdadm not assembling arrays. (boot hotplug fails) -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 136252] Re: [-UUIDudev] mdadm.conf w/o ARRAY lines but udev/mdadm not assembling arrays. (boot hotplug fails)
@Surbhi With natty (mdadm capable of hotplugging) the hostname should probably not be exposed in the the initramfs (boot may stay unencrypted). Are you applying that patch in 11.04? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/136252 Title: [-UUIDudev] mdadm.conf w/o ARRAY lines but udev/mdadm not assembling arrays. (boot hotplug fails) -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 136252] Re: [-UUIDudev] mdadm.conf w/o ARRAY lines but udev/mdadm not assembling arrays. (boot hotplug fails)
And there you go. +1 for fix on my up-to-date 64-bit Maverick Server :) I'm loving it. Been rebuilding my 6*2TB RAID6 for three days now, figuring something went wrong a couple of times. Then I found out the detection issue and then this bug is easily found. FWIW, I've got an array created using: mdadm --create /dev/md20 --level=6 --raid-devices=6 -c 256 -e 1.2 --name=SATAs /dev/sd[cdefgh] The infamous md_d127 device kept showing up as well. doing an mdadm --stop /dev/md_d127 mdadm --assemble -v /dev/md/SATAs /dev/sd[cdefgh] then properly reinitalized the array. The only thing that would work was manually adding ARRAY /dev/md20 level=raid6 num-devices=6 metadata=01.02 name=ubuntu:SATAs UUID=10b2a833:0fac6b94:3224150e:0aeefa84 devices=/dev/sdc,/dev/sdd,/dev/sde,/dev/sdf,/dev/sdg,/dev/sdh to /dev/mdadm/mdadm.conf. Named array (/dev/md/SATAs) will not work. Your mdadm/initramfs correctly detects activates the array without anything in /etc/mdadm/mdadm.conf, albeit as /dev/md127, NOT as /dev/md/SATAs As a fortunate side-note, yours also correctly reports the metadata superblock version as 1.2, as opposed to 01.02 in the other, leading to errors. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/136252 Title: [-UUIDudev] mdadm.conf w/o ARRAY lines but udev/mdadm not assembling arrays. (boot hotplug fails) -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 136252] Re: [-UUIDudev] mdadm.conf w/o ARRAY lines but udev/mdadm not assembling arrays. (boot hotplug fails)
Adding a few patches for mdadm auto assembly to work. Seen in the ppa requested for testing. ** Patch added: 0001-map-rebuild-map-if-it-doesn-t-exist.patch https://bugs.launchpad.net/ubuntu/+source/mdadm/+bug/136252/+attachment/1819903/+files/0001-map-rebuild-map-if-it-doesn-t-exist.patch -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/136252 Title: [-UUIDudev] mdadm.conf w/o ARRAY lines but udev/mdadm not assembling arrays. (boot hotplug fails) -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 136252] Re: [-UUIDudev] mdadm.conf w/o ARRAY lines but udev/mdadm not assembling arrays. (boot hotplug fails)
** Patch added: 0002-maps-Fix-bugs-in-map_read.patch https://bugs.launchpad.net/ubuntu/+source/mdadm/+bug/136252/+attachment/1819904/+files/0002-maps-Fix-bugs-in-map_read.patch -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/136252 Title: [-UUIDudev] mdadm.conf w/o ARRAY lines but udev/mdadm not assembling arrays. (boot hotplug fails) -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 136252] Re: [-UUIDudev] mdadm.conf w/o ARRAY lines but udev/mdadm not assembling arrays. (boot hotplug fails)
** Patch added: 0003-mapfile-fix-bug-in-testing-for-var-run-mdadm.patch https://bugs.launchpad.net/ubuntu/+source/mdadm/+bug/136252/+attachment/1819905/+files/0003-mapfile-fix-bug-in-testing-for-var-run-mdadm.patch -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/136252 Title: [-UUIDudev] mdadm.conf w/o ARRAY lines but udev/mdadm not assembling arrays. (boot hotplug fails) -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 136252] Re: [-UUIDudev] mdadm.conf w/o ARRAY lines but udev/mdadm not assembling arrays. (boot hotplug fails)
** Patch added: 0004-mapfile-allow-the-path-name-to-the-device-to-be-empt.patch https://bugs.launchpad.net/ubuntu/+source/mdadm/+bug/136252/+attachment/1819910/+files/0004-mapfile-allow-the-path-name-to-the-device-to-be-empt.patch -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/136252 Title: [-UUIDudev] mdadm.conf w/o ARRAY lines but udev/mdadm not assembling arrays. (boot hotplug fails) -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 136252] Re: [-UUIDudev] mdadm.conf w/o ARRAY lines but udev/mdadm not assembling arrays. (boot hotplug fails)
** Patch added: 0005-mapfile-Fix-off-by-one-error-in-RebuildMap.patch https://bugs.launchpad.net/ubuntu/+source/mdadm/+bug/136252/+attachment/1819911/+files/0005-mapfile-Fix-off-by-one-error-in-RebuildMap.patch -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/136252 Title: [-UUIDudev] mdadm.conf w/o ARRAY lines but udev/mdadm not assembling arrays. (boot hotplug fails) -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 136252] Re: [-UUIDudev] mdadm.conf w/o ARRAY lines but udev/mdadm not assembling arrays. (boot hotplug fails)
** Patch added: 0007-fix-add_dev-handling-of-broken-links.patch https://bugs.launchpad.net/ubuntu/+source/mdadm/+bug/136252/+attachment/1819912/+files/0007-fix-add_dev-handling-of-broken-links.patch -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/136252 Title: [-UUIDudev] mdadm.conf w/o ARRAY lines but udev/mdadm not assembling arrays. (boot hotplug fails) -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 136252] Re: [-UUIDudev] mdadm.conf w/o ARRAY lines but udev/mdadm not assembling arrays. (boot hotplug fails)
** Patch added: 0008-Fix-an-error-when-assembling-arrays-that-are-in-the-.patch https://bugs.launchpad.net/ubuntu/+source/mdadm/+bug/136252/+attachment/1819921/+files/0008-Fix-an-error-when-assembling-arrays-that-are-in-the-.patch -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/136252 Title: [-UUIDudev] mdadm.conf w/o ARRAY lines but udev/mdadm not assembling arrays. (boot hotplug fails) -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 136252] Re: [-UUIDudev] mdadm.conf w/o ARRAY lines but udev/mdadm not assembling arrays. (boot hotplug fails)
** Patch added: 0010-mapfile-when-rebuilding-choose-an-appropriate-name-i.patch https://bugs.launchpad.net/ubuntu/+source/mdadm/+bug/136252/+attachment/1819923/+files/0010-mapfile-when-rebuilding-choose-an-appropriate-name-i.patch -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/136252 Title: [-UUIDudev] mdadm.conf w/o ARRAY lines but udev/mdadm not assembling arrays. (boot hotplug fails) -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 136252] Re: [-UUIDudev] mdadm.conf w/o ARRAY lines but udev/mdadm not assembling arrays. (boot hotplug fails)
** Patch added: Adding this code renaming patch, to make the porting of the rest of the patches from Neil Brown's repository easy. https://bugs.launchpad.net/ubuntu/+source/mdadm/+bug/136252/+attachment/1819924/+files/0011-Rename-open_mddev-to-create_mddev.patch -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/136252 Title: [-UUIDudev] mdadm.conf w/o ARRAY lines but udev/mdadm not assembling arrays. (boot hotplug fails) -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 136252] Re: [-UUIDudev] mdadm.conf w/o ARRAY lines but udev/mdadm not assembling arrays. (boot hotplug fails)
** Patch added: 0012-Incremental-lock-against-multiple-concurrent-additio.patch https://bugs.launchpad.net/ubuntu/+source/mdadm/+bug/136252/+attachment/1819925/+files/0012-Incremental-lock-against-multiple-concurrent-additio.patch -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/136252 Title: [-UUIDudev] mdadm.conf w/o ARRAY lines but udev/mdadm not assembling arrays. (boot hotplug fails) -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 136252] Re: [-UUIDudev] mdadm.conf w/o ARRAY lines but udev/mdadm not assembling arrays. (boot hotplug fails)
** Patch added: 0009-Adjust-major-number-testing-to-allow-for-extended-mi.patch https://bugs.launchpad.net/ubuntu/+source/mdadm/+bug/136252/+attachment/1819922/+files/0009-Adjust-major-number-testing-to-allow-for-extended-mi.patch -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/136252 Title: [-UUIDudev] mdadm.conf w/o ARRAY lines but udev/mdadm not assembling arrays. (boot hotplug fails) -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 136252] Re: [-UUIDudev] mdadm.conf w/o ARRAY lines but udev/mdadm not assembling arrays. (boot hotplug fails)
** Patch added: 0013-Add-locks-for-Manage_runstop.patch https://bugs.launchpad.net/ubuntu/+source/mdadm/+bug/136252/+attachment/1819926/+files/0013-Add-locks-for-Manage_runstop.patch -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/136252 Title: [-UUIDudev] mdadm.conf w/o ARRAY lines but udev/mdadm not assembling arrays. (boot hotplug fails) -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 136252] Re: [-UUIDudev] mdadm.conf w/o ARRAY lines but udev/mdadm not assembling arrays. (boot hotplug fails)
** Patch added: 0014-Bug-fixing-for-mdadm-map-file-reading-and-dev-name-c.patch https://bugs.launchpad.net/ubuntu/+source/mdadm/+bug/136252/+attachment/1819927/+files/0014-Bug-fixing-for-mdadm-map-file-reading-and-dev-name-c.patch -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/136252 Title: [-UUIDudev] mdadm.conf w/o ARRAY lines but udev/mdadm not assembling arrays. (boot hotplug fails) -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 136252] Re: [-UUIDudev] mdadm.conf w/o ARRAY lines but udev/mdadm not assembling arrays. (boot hotplug fails)
** Patch added: 0015-Partition-creation-logic-fixing.patch https://bugs.launchpad.net/ubuntu/+source/mdadm/+bug/136252/+attachment/1819928/+files/0015-Partition-creation-logic-fixing.patch -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/136252 Title: [-UUIDudev] mdadm.conf w/o ARRAY lines but udev/mdadm not assembling arrays. (boot hotplug fails) -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 136252] Re: [-UUIDudev] mdadm.conf w/o ARRAY lines but udev/mdadm not assembling arrays. (boot hotplug fails)
** Patch added: 0017-Fixed-locking.patch https://bugs.launchpad.net/ubuntu/+source/mdadm/+bug/136252/+attachment/1819929/+files/0017-Fixed-locking.patch -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/136252 Title: [-UUIDudev] mdadm.conf w/o ARRAY lines but udev/mdadm not assembling arrays. (boot hotplug fails) -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 136252] Re: [-UUIDudev] mdadm.conf w/o ARRAY lines but udev/mdadm not assembling arrays. (boot hotplug fails)
** Patch added: 0018-Initramfs-to-set-hostname-for-autoassembly.patch https://bugs.launchpad.net/ubuntu/+source/mdadm/+bug/136252/+attachment/1819934/+files/0018-Initramfs-to-set-hostname-for-autoassembly.patch -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/136252 Title: [-UUIDudev] mdadm.conf w/o ARRAY lines but udev/mdadm not assembling arrays. (boot hotplug fails) -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 136252] Re: [-UUIDudev] mdadm.conf w/o ARRAY lines but udev/mdadm not assembling arrays. (boot hotplug fails)
** Patch added: initramfs change to set the hostname https://bugs.launchpad.net/ubuntu/+source/mdadm/+bug/136252/+attachment/1819935/+files/0018-Initramfs-to-set-hostname-for-autoassembly.patch -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/136252 Title: [-UUIDudev] mdadm.conf w/o ARRAY lines but udev/mdadm not assembling arrays. (boot hotplug fails) -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 136252] Re: [-UUIDudev] mdadm.conf w/o ARRAY lines but udev/mdadm not assembling arrays. (boot hotplug fails)
** Patch added: 0019-Always-set-homehost-if-not-specified.patch https://bugs.launchpad.net/ubuntu/+source/mdadm/+bug/136252/+attachment/1819936/+files/0019-Always-set-homehost-if-not-specified.patch -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/136252 Title: [-UUIDudev] mdadm.conf w/o ARRAY lines but udev/mdadm not assembling arrays. (boot hotplug fails) -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 136252] Re: [-UUIDudev] mdadm.conf w/o ARRAY lines but udev/mdadm not assembling arrays. (boot hotplug fails)
1) The ppa requested for testing consists of these patches. They are needed for the proper working of mdadm auto assembly. 2) Also for the mdadm autoassembly to work properly, the following needs sponsorship for maverick and lucid: https://code.launchpad.net/~csurbhi/+junk/initramfs.mdadm.fixes. Please do consider merging these patches for maverick and lucid. Thanks! -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/136252 Title: [-UUIDudev] mdadm.conf w/o ARRAY lines but udev/mdadm not assembling arrays. (boot hotplug fails) -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 136252] Re: [-UUIDudev] mdadm.conf w/o ARRAY lines but udev/mdadm not assembling arrays. (boot hotplug fails)
** Tags added: patch -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/136252 Title: [-UUIDudev] mdadm.conf w/o ARRAY lines but udev/mdadm not assembling arrays. (boot hotplug fails) -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 136252] Re: [-UUIDudev] mdadm.conf w/o ARRAY lines but udev/mdadm not assembling arrays. (boot hotplug fails)
I just confirmed that the bug is gone for me with the packages from the PPA. -- [-UUIDudev] mdadm.conf w/o ARRAY lines but udev/mdadm not assembling arrays. (boot hotplug fails) https://bugs.launchpad.net/bugs/136252 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 136252] Re: [-UUIDudev] mdadm.conf w/o ARRAY lines but udev/mdadm not assembling arrays. (boot hotplug fails)
Call for testing mdadm 2.7.1 autoassembly. For hitherto Ubuntu releases the mdadm package shall stay at 2.7.1 However Natty would have mdadm at 3.4.1. This document is intended to test the mdadm fixes for 2.7.1. Here is the rough procedure that needs to be followed: Testing auto-assembly of your md array when your rootfs lies on it: 1) Install the mdadm package and initramfs package kept at: https://edge.launchpad.net/~csurbhi/+archive/mdadm-autoassembly 2) Run /usr/share/mdadm/mkconf and ensure that your /etc/mdadm/mdadm.conf has the array definition. a) Save your original initramfs in /boot itself by say /boot/initrd-old.img. b) Then run update-initramfs -c -k your-kernel-version. Store this iniramfs as /boot/initrd-new.img. We shall use this initramfs as a safety net. If you cannot boot with the auto-assembly fixes, then you should not land in a foot in your mouth situation. Through grub's edit menu, you can then resort to this safety net by editing the initrd=initrd-new.img (or if this does not work for some random reason then resort back to your older initrd=initrd-old.img) This way you will be sure that you can still boot your precious system. c) Now comment or remove the ARRAY definitions from your /etc/mdadm/mdadm.conf and once again run the same “update-initramfs -c -k your-kernel-version” to generate a brand new initramfs. 3)Run mdadm –detail –scan and note the UUIDs in the array. Note the hostname stored in your array. Does it not match with your real hostname? Then we can fix that at the initramfs prompt that you inevitably will land at if you try auto-assembly. Also note the device components that form the root md-device. Keep this paper for cross checking when you reboot 4)Reboot. 5)If you are at the initramfs prompt here are the things that you should first ensure: a) ls /bin/hostname /etc/hostname - are these files present? b) run “hostname”. Does this show you the hostname that your system is intended to have? Is it the same as the contents of /etc/hostname. c) ls /var/run – Is this dir there? If you answer yes to the above three questions, then things are so far so good. Now run the following command: mdadm –assemble -U uuid /dev/md-name dev-components-listed here Your mdadm –detail –scan that you ran previously should have given you the component names if you dont know it right now. Hopefully you have them listed on your paper. Eg in my case I ran: mdadm –assemble -U uuid /dev/md0 /dev/sda1 /dev/sdb1 Again run: mdadm –detail –scan md-device and verify that the uuids are indeed updated and the hostname reflects the hostname that is stored /etc/hostname. You can now press Ctr+D and you should come back to the root prompt. However you still need to test auto-assembly of your root md device. To do that simple reboot and you should not see the face of initramfs this time. You should land gently on your root prompt as you expected. If you do not see the light of the rootfs prompt this way or using this initramfs, then as mentioned earlier, please avail your saved initrd images through grub. Skip the further steps in this case. Update the launchpad bugs, saying you could not get to the root prompt with manual assembly as well. First we need to get manual assembly fixed for you before worrying about auto-assembly. But hopefully this wont be the case. 6)If in the first place your uuid matched with that of the hostname, because you already had updated the array meta data with the -U uuid command, then with these packages, ideally, you should directly see the root prompt without any problem. 7)If either way, you still see initramfs and are not seeing the root prompt, then kindly upload the following on the this launchpad bug: a) output of /var/run/mdadm.map b) output of /proc/mdstat. c) output of hostname (in initramfs) d) output of mdadm –detail –scan root-md-device (once you have assembled the array manually and have got at the root prompt) In order to save this output when you are the initramfs prompt you should copy these files in /dev/ and then manually assemble your array. Once you get to the root prompt, you would find these files in /dev/. Please attach these to the launchpad bugs and we can start debugging from there. For auto-assembly of your non root devices, this should not bring you to initramfs, unless you have the device mounted with a fs using fstab and are not using “nobootwait” in the options section for your fs. Once you are in the root fs, and your non -root array is not up with auto-assembly, then you can very easily attach the output of the /var/run/mdadm.map and /proc/mdstat. If needed, I will also post a mdadm package which will output a lot of verbose information, to find out what is exactly going wrong. Thanks very much for your help. Remember that this is a test package and your help is extremely appreciated :) I have tested these packages on test virtual machines. ** Changed in: mdadm (Ubuntu) Assignee:
[Bug 136252] Re: [-UUIDudev] mdadm.conf w/o ARRAY lines but udev/mdadm not assembling arrays. (boot hotplug fails)
Hi All, Thanks a lot for your insightful comments and making Ubuntu better. I have done the fixes mostly, based on these comments. The patches are based on the source code in neil-browns git repository and a few initramfs fixes which are applicable to Ubuntu (which are again based on the bugs on launchpad). Do let me know the output of the test ppas. At present these are only for maverick. I shall be uploading the ones based for lucid soon enough! Thanks again! -- [-UUIDudev] mdadm.conf w/o ARRAY lines but udev/mdadm not assembling arrays. (boot hotplug fails) https://bugs.launchpad.net/bugs/136252 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 136252] Re: [-UUIDudev] mdadm.conf w/o ARRAY lines but udev/mdadm not assembling arrays. (boot hotplug fails)
** Branch linked: lp:~csurbhi/+junk/mdadm.fixes -- [-UUIDudev] mdadm.conf w/o ARRAY lines but udev/mdadm not assembling arrays. (boot hotplug fails) https://bugs.launchpad.net/bugs/136252 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 136252] Re: [-UUIDudev] mdadm.conf w/o ARRAY lines but udev/mdadm not assembling arrays. (boot hotplug fails)
** Summary changed: - [-UUIDudev] mdadm.conf w/o ARRAY lines but udev/mdadm not assembling arrays. (boot fails) + [-UUIDudev] mdadm.conf w/o ARRAY lines but udev/mdadm not assembling arrays. (boot hotplug fails) -- [-UUIDudev] mdadm.conf w/o ARRAY lines but udev/mdadm not assembling arrays. (boot hotplug fails) https://bugs.launchpad.net/bugs/136252 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