[linux-lvm] Shutdown Probs

Patrick Caulfield caulfield at sistina.com
Mon Feb 5 11:32:58 UTC 2001


On Mon, Feb 05, 2001 at 08:36:08AM +0100, Dirk Heinrichs wrote:
> Hi there,
> 
> I'm using lvm-0.9.1-beta3 on RH7.0 with kernel 2.4.0 and devfs.
> Everything works fine so far, but I get strange messages on shutdown.
> 
> I placed "/sbin/vgchange -a n" in /etc/init.d/halt right after
> unmounting filesystems. But I get a message like "Cannot deactivate
> volume group with open logical volumes". I then added some
> "/sbin/lvchange -a n [LogicalVolumePath]" for each lv before the the
> vgchange call. Then I get some "operation not permitted on (open)
> logical volume" messages.

My guess is that something still has a file open on one of the LVs so
it can't be unmounted by umount -a. Put a ps -ef in the script just before the
lvchange and see if you can see anything.

patrick




More information about the linux-lvm mailing list