[Bug 550131] Re: initramfs missing /var/run/mdadm/ dir (loosing state, race, misconfig)
@ceg, @Jools Wills, I see what you are saying! I will try to fix this up soon and post updates here :) Thanks a tonnes! -- initramfs missing /var/run/mdadm/ dir (loosing state, race, misconfig) https://bugs.launchpad.net/bugs/550131 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 550131] Re: initramfs missing /var/run/mdadm/ dir (loosing state, race, misconfig)
@ceg, @Jools Wills, I will love to help to solve this bug. For that I need to know what the problem is. The summary says that the maps file cant be created and thus it leads to loosing state, race, misconfig? If there is an example for it, then I can get a better understanding of what really is happening and then it will be easier to solve this. As per marking the bug "Incomplete" -> Its done when more information from the user is requested! Thanks very much for helping! -- initramfs missing /var/run/mdadm/ dir (loosing state, race, misconfig) https://bugs.launchpad.net/bugs/550131 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 550131] Re: initramfs missing /var/run/mdadm/ dir (loosing state, race, misconfig)
Surbhi, you actually have an ubuntu system on raid installed and the mapfile is carried over? Then please state the exact version and details and say it works for you. If not please leave the bug filed as it was, documenting a bug in the ubuntu mdadm package. ** Changed in: mdadm (Ubuntu) Status: Incomplete => Confirmed ** Description changed: Binary package hint: mdadm "mdadm --incremental" will save state in a map file under /var/run/mdadm/map. But in initramfs and early boot this directory does not exist. The state is then saved in /var/run/mdadm.map.new (man page incorrectly says /var/run/mdadm.map) and carried into the main system later on. This means hotplug devices showing up later can not be matched by --incremental correctly. (with a strange device busy failure) - This can be fixed by: - - * creating /var/run/mdadm in the initramfs *before* the udevd is started - in init-premount/udev (either during creation of the initramfs image, or - dynamicly (boot time consuming) in mdadm's initramfs-tools init- - top/mdadm script). - - * copying initramfs' /var/run the real /var/run as part of the boot - process so /var/run/mdadm/map carries on the valid --incremental state. + This can be fixed as explained by Jools in the comments, and as he did + in his package. -- initramfs missing /var/run/mdadm/ dir (loosing state, race, misconfig) https://bugs.launchpad.net/bugs/550131 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 550131] Re: initramfs missing /var/run/mdadm/ dir (loosing state, race, misconfig)
Please demonstrate to me where the map file created in initramfs is then copied to the root filesystem so it is available for mdadm at that stage. It isn't! I'm not going to play the game setting the bug to confirmed/invalid back and forth. to fix this you need to either copy the map file to the root fs once it is mounted, or place the map file location in /dev/.mdadm for example. This is a bug. If it wasn't then I wouldn't need to make my own packages to fix it. (which work much better than ubuntu's). -- initramfs missing /var/run/mdadm/ dir (loosing state, race, misconfig) https://bugs.launchpad.net/bugs/550131 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 550131] Re: initramfs missing /var/run/mdadm/ dir (loosing state, race, misconfig)
@Jools Will, 2.7.1, creates the map file in /var/run/ instead of /var/run/mdadm as /var/run/mdadm is not found in the initramfs. However /var/run is found in initramfs and so the map file should be created fine. This is why I have marked the bug as Invalid. Current Ubuntu is still at 2.7.1 Can you please give an example as to how the absence of /var/run/mdadm leads to loosing state, race, misconfig? (as /var/run will have the maps file). I am for now marking the bug as incomplete! ** Changed in: mdadm (Ubuntu) Status: Confirmed => Incomplete -- initramfs missing /var/run/mdadm/ dir (loosing state, race, misconfig) https://bugs.launchpad.net/bugs/550131 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 550131] Re: initramfs missing /var/run/mdadm/ dir (loosing state, race, misconfig)
I explained slightly wrong, since my memory was vague. The old mdadm 2.7.1 in ubuntu probably makes the map file ok, but it won't get carried across onto the rootfs. mdadm 3.1.2 wanted to place the map file in a different location and failed. my solution at the time was to change the location, and then copy it over to the rootfs once it is mounted. an easier solution (and the default with upstream mdadm 3.1.4) is to use /dev/.mdadm for the map file. as the devices is carried over to the rootfs from the initramfs, this works better. -- initramfs missing /var/run/mdadm/ dir (loosing state, race, misconfig) https://bugs.launchpad.net/bugs/550131 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 550131] Re: initramfs missing /var/run/mdadm/ dir (loosing state, race, misconfig)
Why has this been set to incomplete? The initial explanation is quite clear. /var/run doesn't exist at the initramfs stage and it will fail. If you updated to a new mdadm, this will use /dev/.mdadm folder for the map file - this exists throughout the initramfs and is carried over once root is mounted/booted. Tou could also fix this easily enough in the current version, but this is very old now. from the number of bugs relating to mdadm (not surpising since the version in ubuntu is so old and mismatched against the kernel version), and being such an important core package, i would suggest mdadm gets a high priority and someone to look at it. It is also an example of where ubuntu decides to do something different from debian (using udev back when debian wasn't) but lacked the people to maintain the modified package :/ in the meantime those who want can try my lucid packages, which fixes at least a few mdadm bugs on launchpad (including this one).. (no guarantees though but I use it myself). http://malus.exotica.org.uk/~buzz/mdadm/lucid/ ** Changed in: mdadm (Ubuntu) Status: Incomplete => Confirmed -- initramfs missing /var/run/mdadm/ dir (loosing state, race, misconfig) https://bugs.launchpad.net/bugs/550131 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 550131] Re: initramfs missing /var/run/mdadm/ dir (loosing state, race, misconfig)
@ceg, when /var/run/mdadm is not present, mdadm creates a map in /var/run/. Please refer to man mdadm for more information (or mapfile.c::map_read()/map_write() in mdadm code). Can you please explain why this is causing a problem? Ideally it should not cause a problem. ** Changed in: mdadm (Ubuntu) Status: Confirmed => Incomplete -- initramfs missing /var/run/mdadm/ dir (loosing state, race, misconfig) https://bugs.launchpad.net/bugs/550131 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 550131] Re: initramfs missing /var/run/mdadm/ dir (loosing state, race, misconfig)
** Description changed: Binary package hint: mdadm "mdadm --incremental" will save state in a map file under /var/run/mdadm/map. But in initramfs and early boot this directory does not exist. The state is then saved in /var/run/mdadm.map.new (man page incorrectly - says /var/run/mdadm.map) and not picked up later on, and hotplug devices - showing up later can not be matched correctly. + says /var/run/mdadm.map) and carried into the main system later on. This + means hotplug devices showing up later can not be matched by + --incremental correctly. (with a strange device busy failure) - This can be fixed by creating /var/run/mdadm in the initramfs *before* - the udevd is started in init-premount/udev (either during creation of - the initramfs image, or dynamicly (boot time consuming) in mdadm's - initramfs-tools init-top/mdadm script). + This can be fixed by: - The initramfs' /var/run has to be copied to the real /var/run as part of - the boot process so /var/run/mdadm/map carries on the valid - --incremental state. + * creating /var/run/mdadm in the initramfs *before* the udevd is started + in init-premount/udev (either during creation of the initramfs image, or + dynamicly (boot time consuming) in mdadm's initramfs-tools init- + top/mdadm script). + + * copying initramfs' /var/run the real /var/run as part of the boot + process so /var/run/mdadm/map carries on the valid --incremental state. -- initramfs missing /var/run/mdadm/ dir (loosing state, race, misconfig) https://bugs.launchpad.net/bugs/550131 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 550131] Re: initramfs missing /var/run/mdadm/ dir (loosing state, race, misconfig)
** Summary changed: - initramfs missing /var/run/mdadm dir (loosing state) + initramfs missing /var/run/mdadm/ dir (loosing state, race, misconfig) -- initramfs missing /var/run/mdadm/ dir (loosing state, race, misconfig) https://bugs.launchpad.net/bugs/550131 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