The officially official Devuan Forum!

You are not logged in.

#1 2020-07-19 14:46:18

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

Shutdown delay due to Veracrypt

Beowulf amd64, openrc as init, shares from file server mounted with nfs4. Veracrypt is used to open a NTFS container as data drive for a Win7 VM. This is done via a script in the user startup folder.

Shutting down this container seems to cause a about 15s long delay past the line "Asking all remaining processes to terminate". 

The complete output looks like this:

[ok] Asking all remaining processes to terminate ... done.
Currently running processes (pstree):
init-+-rc---openrc---openrc-run---sendsigs---pstree
     |-rpc.statd
     |-rpcbind
     |-veracrypt---dmsetup
     '-veracrypt---18*[{veracrypt}]
[FAIL] Killing all remaining processes ... failed

On another PC with a similar setup, just without Veracrypt, the shutdown has normal speed.

How can I speedup closing the Veracrypt volume?

rolfie

Online

#2 2020-07-19 15:51:08

HevyDevy
Member
Registered: 2019-09-06
Posts: 358  

Re: Shutdown delay due to Veracrypt

Seems you have a lot going on there, the wait time is probably good only being 15 seconds, how big is the space veracrypt is dealing with ?

Offline

#3 2020-07-19 17:24:28

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

Re: Shutdown delay due to Veracrypt

If Caja is correct, 1.7TB. About half of a 4T drive.

rolfie

Online

#4 2020-07-20 12:11:07

HevyDevy
Member
Registered: 2019-09-06
Posts: 358  

Re: Shutdown delay due to Veracrypt

Not sure how to make encryption faster on veracrypt for your specific use sorry rolfie. My experience is with lower physical drive space of a 64 GB usb that i use to backup docs that is encrypted with aes/serpent using a password and key file, unmounting usually takes around 3 - 5 seconds. Maybe you need some kind of enhanced entropy solution for the amount of space you are encrypting, maybe haveged or rng-tools?

Last edited by HevyDevy (2020-07-20 12:15:04)

Offline

#5 2020-08-02 19:18:05

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

Re: Shutdown delay due to Veracrypt

Checked with my ASCII installation on the same PC. Had to update Veracrypt to run the same version first. There I do not see the shutdown delay I have with Beowulf. Something is different here.

rolfie

Online

Board footer