[pkg-cryptsetup-devel] Bug#824098: cryptsetup: systemd timeouts on reboot due to failed crypto disk umount
Michael Biebl
biebl at debian.org
Fri Mar 3 00:48:42 UTC 2017
On Thu, 12 May 2016 11:48:32 +0300 Dmitry Nezhevenko <dion at dion.org.ua>
wrote:
> Package: cryptsetup
> Version: 2:1.7.0-2
> Severity: normal
>
> Hi,
>
> For some reason systemd timeouts while trying to reboot/shutdown machine.
> It stuck for around ~2min.
>
> I think it's caused by cryptsetup encrypted partition. I've encrypted LVM
> with root partition plus another encrypted LVM with /mnt/storage
> partition.
>
> It looks like #720340 is similar. But I don't care about 'fail to stop
> root crypto disk' issue. Just want to fix huge timeout.
>
> For me it's pretty difficult to debug it since I don't know systemd
> internals. I've followed systemd upstream 'Debugging' page:
>
> https://freedesktop.org/wiki/Software/systemd/Debugging/
>
> As far as I see, systemd firstly umounts /mnt/storage and then tries to
> stop cryptography without shutting down lvm vg.
> Kernel: Linux 4.5.3+ (SMP w/8 CPU cores)
> Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
> Shell: /bin/sh linked to /bin/dash
> Init: sysvinit (via /sbin/init)
You are actually using sysvinit, not systemd.
My guess is that if you install systemd-sysv (i.e. switch to systemd as
PID 1), your problems are gone.
Regards,
Michael
--
--
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-cryptsetup-devel/attachments/20170303/84e7632f/attachment.sig>
More information about the pkg-cryptsetup-devel
mailing list