Bug#426108: lvm shouldn't depend on mdadm
Petter Reinholdtsen
pere at hungry.com
Fri Jan 11 15:05:47 UTC 2008
[Török Edwin]
> lvm shouldn't depend on mdadm in the LSB headers, it is causing a
> loop [*].
Actually, I believe that is a bug in the mdadm dependency information,
not in lvm2. It depend on $local_fs and $remote_fs, yet currently
insert its init.d script at rcS.d sequence number 25, which is way
earlier than mountnfs-bootclean at runlevel 46. Also, its runlevels
are wrong. The call to update-rc.d only insert the script in
runlevels S, 0 and 6, yet 1, 2, 3, 4, and 5 are listed in
default-start and default-stop. I will fail a separate bug report for
mdadm because of this.
Sequence number 25 is before lvm2 on 26, so lvm2 should be able to
depend on mdadm.
> Also I have /var on a LVM volume, so it doesn't work to start mdadm
> before lvm because /var/run is not available yet.
That is another problem, possibly with the mdadm script. It need to
depend on $local_fs to use /var/, and then it can not start as early
as it is starting. /var/ is only guaranteed to be available after
mountall.sh ran on sequence 35.
Happy hacking,
--
Petter Reinholdtsen
More information about the pkg-lvm-maintainers
mailing list