lvm + dm-crypt = shutdown problem (mount: / is busy)
Hello everybody!
I am running debian testing, and I am experiencing lately this
(hopefully) non-destructive problem:
During shutdown I get:
----------
Αsking all remaining processes to terminate... done
Killing all remaining processes... failed
...
Deactivating swap... done
Unmounting local filesystems... done
Shuting down LVM volume groups Can't deactivate volume group "evg" with
1 open logical volume
failed!
Stoping early crypto disks... done
mount: / is busy
Will now halt
----------
Now, this 'Can't deactivate volume group', always happened, and I guess
it is because the root filesystem is still used after LVM shuts down. If
someone knows why this happens, plz tell me!
The problem that appeared some days ago (maybe after an upgrade of some
testing packets), is that killing all remaining processes fails and also
this "mount: / is busy" appears just before computer halt. How can I
see which processes causes the problem and cannot be properly killed?
Info: LVM is set on dm-crypt.
As I see, the order in which the /etc/init.d scripts are called during
shutdown is:
...
lrwxrwxrwx 1 root root 22 2008-01-16 20:29 S31umountnfs.sh ->
../init.d/umountnfs.sh
lrwxrwxrwx 1 root root 20 2008-01-16 20:29 S35networking ->
../init.d/networking
lrwxrwxrwx 1 root root 18 2008-01-16 20:29 S36ifupdown ->
../init.d/ifupdown
lrwxrwxrwx 1 root root 18 2008-01-16 20:29 S40umountfs ->
../init.d/umountfs
lrwxrwxrwx 1 root root 20 2008-01-16 20:29 S48cryptdisks ->
../init.d/cryptdisks
lrwxrwxrwx 1 root root 14 2008-01-16 20:29 S50lvm2 -> ../init.d/lvm2
lrwxrwxrwx 1 root root 26 2008-01-16 20:29 S59cryptdisks-early ->
../init.d/cryptdisks-early
lrwxrwxrwx 1 root root 20 2008-01-16 20:29 S60umountroot ->
../init.d/umountroot
lrwxrwxrwx 1 root root 14 2008-01-16 20:29 S90halt -> ../init.d/halt
Isn't this wrong, that first LVM tries to shut, and then root fs tries
to unmount? I guess first should root fs be unmounted, then LVM, and
last dm-crypt... Am I wrong?
If anybody can enlighten me on these matters, I would appreciate it much!
Giorgos Pallas
Reply to: