The officially official Devuan Forum!

You are not logged in.

#1 2021-10-02 18:58:37

devadmin
Member
Registered: 2021-09-26
Posts: 30  

slow shutdown: remaining crypto disks busy failed

I've added new luks partition put it in fstab and crypttab. The system boots with no problem. The partition behaves as expected, but when I reboot/shutdown I get this message:
stopping remaining crypto disks...sdb5_crypt (busy)...
stopping early crypto disks ...sdb5_crypt (busy) ...failed.
done.

What is this? How can i get rid of it? It takes time and not sure it's good for file system. The luks partition is not yet in use, just clean and ext4 formatted.

Offline

#2 2021-10-02 22:08:49

rolfie
Member
Registered: 2017-11-25
Posts: 1,172  

Re: slow shutdown: remaining crypto disks busy failed

Beowulf? Then you need to patch a file. Gone with Chimaera.

For the patch read this please: https://dev1galaxy.org/viewtopic.php?id=1753

rolfie

Offline

#3 2021-10-03 00:10:07

devadmin
Member
Registered: 2021-09-26
Posts: 30  

Re: slow shutdown: remaining crypto disks busy failed

no, chimaera
lsof gives nothing. Suppose the system itself keeps cryptsetup.
The problem appears only when I create lvm on luks and attach it. Just encrypted partition (no lvm on it) is ok. Have checked.

Offline

#4 2021-10-03 09:51:14

rolfie
Member
Registered: 2017-11-25
Posts: 1,172  

Re: slow shutdown: remaining crypto disks busy failed

Well, the symptoms are similar to the ones I had with ASCII and Beowulf. Encrypted LVMs were not shut down correctly.

When you see this problem with Chimaera I guess something along the cryptsetup packages is missing on your machine. I have installed:

cryptsetup
cryptsetup-bin
cryptsetup-initramfs
cryptsetup-run
libcryptsetup12
udisks2

HTH, rolfie

Offline

#5 2021-10-04 01:01:16

devadmin
Member
Registered: 2021-09-26
Posts: 30  

Re: slow shutdown: remaining crypto disks busy failed

rolfie wrote:

cryptsetup-run

Effectively, this one was not installed. Will try to recreate lvm on luks to check. Thanks.

Offline

#6 2021-10-14 22:58:47

devadmin
Member
Registered: 2021-09-26
Posts: 30  

Re: slow shutdown: remaining crypto disks busy failed

After all if overlay fs is mounted on top of luks partition chimaera becomes locked on shutdown for ~half a minute.
Probably the bug is not solved completely in debian/devuan. ?

Offline

#7 2021-10-15 16:17:07

rolfie
Member
Registered: 2017-11-25
Posts: 1,172  

Re: slow shutdown: remaining crypto disks busy failed

Well, I have several luks2 encrypted LVMs with ext4/swap running under Chimaera, no delays. As well upgrades from Beowulf as native installs.

What do you mean by overlay fs?

rolfie

Offline

#8 2021-10-17 00:33:55

devadmin
Member
Registered: 2021-09-26
Posts: 30  

Re: slow shutdown: remaining crypto disks busy failed

Mean "/" is mounted like    /dev/mapper/mycrypt  /overlay/ro

Works fine but cannot shutdown correctly.

Offline

Board footer