Bug#627774: mdadm: please migrate to /run
Mario 'BitKoenig' Holbe
Mario.Holbe at TU-Ilmenau.DE
Tue May 24 12:45:34 UTC 2011
Package: mdadm
Version: 3.1.4-1+8efb9d1
User: rleigh at debian.org
Usertag: run-transition
Hello,
now where /run is established in unstable it would be great if mdadm
could transit /dev/.mdadm as well as /lib/init/rw/.mdadm to /run
(probably also to /run/mdadm instead of /run/.mdadm).
See also http://wiki.debian.org/ReleaseGoals/RunDirectory
And while we are at it:
are the /lib/init/rw/.mdadm sentinels really still necessary, or vice
versa: is it really still necessary for mdadm-raid to generate uevents
on its own?
Below are udevadm monitor excerpts for a plain mdadm --assemble run vs.
a mdadm-raid start run. They differ in one additional (IMHO) redundant
add-event. Apparently, current kernels themselves generate those events,
and the migration from initramfs to real-/ is handled by udev anyways.
# mdadm -A /dev/md6
mdadm: /dev/md6 has been started with 2 drives (out of 3).
KERNEL[1306238708.217953] add /devices/virtual/bdi/9:6 (bdi)
KERNEL[1306238708.217983] add /devices/virtual/block/md6 (block)
KERNEL[1306238708.227033] change /devices/virtual/block/md6 (block)
KERNEL[1306238708.227600] change /devices/pci0000:00/0000:00:1f.2/host6/target6:0:0/6:0:0:0/block/sda/sda8 (block)
KERNEL[1306238708.392795] change /devices/pci0000:00/0000:00:1f.2/host7/target7:0:0/7:0:0:0/block/sdb/sdb8 (block)
KERNEL[1306238708.958163] change /devices/virtual/block/md6 (block)
root at darkside:~# rm /lib/init/rw/.mdadm/md6-uevent
root at darkside:~# /etc/init.d/mdadm-raid start
Assembling MD array md6...done (degraded [2/3]).
Generating udev events for MD arrays...done.
KERNEL[1306238793.266597] add /devices/virtual/bdi/9:6 (bdi)
KERNEL[1306238793.266629] add /devices/virtual/block/md6 (block)
KERNEL[1306238793.275753] change /devices/virtual/block/md6 (block)
KERNEL[1306238793.276417] change /devices/pci0000:00/0000:00:1f.2/host6/target6:0:0/6:0:0:0/block/sda/sda8 (block)
KERNEL[1306238793.280611] change /devices/pci0000:00/0000:00:1f.2/host7/target7:0:0/7:0:0:0/block/sdb/sdb8 (block)
KERNEL[1306238793.503494] change /devices/virtual/block/md6 (block)
KERNEL[1306238793.604394] add /devices/virtual/block/md6 (block)
regards
Mario
--
But after a while I learned the trick of speaking fast. You don't have
to think any faster; just use twice as many words to say everything.
-- Paul Graham
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 482 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-mdadm-devel/attachments/20110524/235591b9/attachment.pgp>
More information about the pkg-mdadm-devel
mailing list