Skip to contentSkip to conversation

Shutdown Probs

linux-lvm Dirk Heinrichs 2 participants 2 messages Feb 5, 2001

lore
Share & tools
lore
#0 lore raw

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.

Does anybody have a working solution?

Thanx...

Dirk

Signature · 4 lines
Dirk Heinrichs		| Tel:	+49 (0)241 413 260
QIS Systemhaus GmbH	| Fax:	+49 (0)241 413 2640
J�licher Str. 338b	| Mail:	[email protected]
D-52070 Aachen		| Web:	http://www.qis-systemhaus.de
#1 lore raw
Quoted 11 lines · Dirk Heinrichs

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