/etc/init.d/lvm2 status ?
debalance at arcor.de
Sat Apr 11 10:26:27 UTC 2009
Bastian Blank schrieb:
> On Sat, Apr 11, 2009 at 11:35:36AM +0200, Philipp Hübner wrote:
>> In the past, I got several reports that system-config-lvm does not work
>> when dm_mod is not loaded.
> The lvm2 init script takes care of that. Can you please explain why this
> should not work in this case?
The lvm2 init script works, that wasn't my point.
However, it might happen that it does not get executed after
installation or at start time, for whatever reason.
So, to make sure, I want to call it before starting system-config-lvm.
The lvm2 init script then executes
modprobe dm-mod 2> /dev/null || :
/sbin/vgscan --ignorelockingfailure --mknodes || :
/sbin/vgchange -aly --ignorelockingfailure || return 2
which is fine, but a little overhead when s-c-l is started several times
in a row.
Therefore I'd like to have a status-function to check if lvm2 has
already been (successfully) run before.
.''`. Philipp Hübner <debalance at arcor.de>
: :' : http://qa.debian.org/developer.php?login=debalance%40arcor.de
`. `'` HP: http://debalance.funpic.de, Skype: philipp-huebner
`- ICQ: 235-524-440, Jabber: der_schakal at jabber.org
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 197 bytes
Desc: OpenPGP digital signature
More information about the pkg-lvm-maintainers