[Bug 497186] Re: initramfs' init-premount degrades *all* arrays (not just those required to boot)

2010-04-19 Thread ceg
Hi Dustin, I am not a developer and don't know how to create packages
etc. Though, I have gathered information from using mdadm and
bugreports to make it easier for a developer to bring ubuntu's mdadm
setup in shape.

-- 
initramfs' init-premount degrades *all* arrays (not just those required to boot)
https://bugs.launchpad.net/bugs/497186
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 497186] Re: initramfs' init-premount degrades *all* arrays (not just those required to boot)

2010-04-16 Thread Dustin Kirkland
@ceg-

I read through https://wiki.ubuntu.com/ReliableRaid, and it looks pretty
good.  Are you willing to implement this for Maverick?

-- 
initramfs' init-premount degrades *all* arrays (not just those required to boot)
https://bugs.launchpad.net/bugs/497186
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 497186] Re: initramfs' init-premount degrades *all* arrays (not just those required to boot)

2010-03-30 Thread ceg
** Description changed:

  After a timeout mdadm in initrams degrades all arrays instead of just
  those required for the rootfs.
  
  This is not good since non-rootfs arrays are likely to be available only
  incompletely (due to the early stage during boot) and are getting
  desynced by this.
  
  When creating the initramfs image the mdadm hook should determine the
  dependencies of the rootfilesystem and save a list of the required md
  devices in the initramfs.
  
+ See: How would you decide what device is needed? at
+ https://wiki.ubuntu.com/ReliableRaid
+ 
  Currently the initramfs boot script just looks for *any* available
- incomplete array and calls mdadm --assemble --scan --run, which starts
- all runnable arrays.
+ incomplete array and calls mdadm --assemble --scan --run, which will
+ start *all* runnable arrays.
  
- --
- The best way to fix the so many mdadm bugs is probably to adopt the event 
driven upstart/mountall init within intiramfs.
- Bug #491463 upstart init within initramfs
+ ---
+ comment #2 contains a workaround for the proper command to run single arrays 
degraded.

-- 
initramfs' init-premount degrades *all* arrays (not just those required to boot)
https://bugs.launchpad.net/bugs/497186
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 497186] Re: initramfs' init-premount degrades *all* arrays (not just those required to boot)

2010-03-30 Thread ceg
Note that with the UUID-based raid assembly
https://bugs.launchpad.net/ubuntu/+source/mdadm/+bug/158918/comments/33
the mdadm.conf file is not used to store ARRAY definitions any more.

Thus the (UUID) list of raid devices required to mount the rootfs must
be stored in a separate file within initramfs.

-- 
initramfs' init-premount degrades *all* arrays (not just those required to boot)
https://bugs.launchpad.net/bugs/497186
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 497186] Re: initramfs' init-premount degrades *all* arrays (not just those required to boot)

2010-03-29 Thread ceg
** Summary changed:

- initramfs' mdadm degrades all arrays (not just those required to boot)
+ initramfs' init-premount degrades *all* arrays (not just those required to 
boot)

-- 
initramfs' init-premount degrades *all* arrays (not just those required to boot)
https://bugs.launchpad.net/bugs/497186
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 497186] Re: initramfs' init-premount degrades *all* arrays (not just those required to boot)

2010-03-29 Thread ceg
As long as the proper mdadm --incremental mode command (to start a
single array) is not available (Bug #251646) a workaround needs to be
used:

mdadm --remove incomplete-md-device arbitrary-member-device-of-
incomplete-array

mdadm --incremental --run arbitrary-member-device-of-incomplete-array


** Description changed:

- Binary package hint: mdadm
- 
- after a timeout mdadm in initrams degrades all arrays instead of just
+ After a timeout mdadm in initrams degrades all arrays instead of just
  those required for the rootfs.
  
- The dependencies are not checked and saved to initramfs. Instead the script 
just looks into /proc/mdstat and uses mdadm --assemble --scan --run starting 
all arrays, if some arrays are incomplete (very likely during initramfs state).
- (Additionaly a legacy non-hotplug command.)
+ This is not good since non-rootfs arrays are likely to be available only
+ incompletely (due to the early stage during boot) and are getting
+ desynced by this.
  
- The best way to fix the so many mdadm bugs is probably to adopt the
- event driven upstart/mountall init within intiramfs.
+ When creating the initramfs image the mdadm hook should determine the
+ dependencies of the rootfilesystem and save a list of the required md
+ devices in the initramfs.
  
- See https://wiki.ubuntu.com/ReliableRaid
+ Currently the initramfs boot script just looks for *any* available
+ incomplete array and calls mdadm --assemble --scan --run, which starts
+ all runnable arrays.
+ 
+ --
+ The best way to fix the so many mdadm bugs is probably to adopt the event 
driven upstart/mountall init within intiramfs.
+ Bug #491463 upstart init within initramfs

-- 
initramfs' init-premount degrades *all* arrays (not just those required to boot)
https://bugs.launchpad.net/bugs/497186
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 497186] Re: initramfs' init-premount degrades *all* arrays (not just those required to boot)

2010-03-29 Thread ceg
** Changed in: mdadm (Ubuntu)
   Status: New = Confirmed

-- 
initramfs' init-premount degrades *all* arrays (not just those required to boot)
https://bugs.launchpad.net/bugs/497186
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