Bug#854699: Shutdown fails with an encrypted filesystem on virtio device
Michael Biebl
email at michaelbiebl.de
Fri Feb 10 02:39:52 GMT 2017
Am 09.02.2017 um 16:39 schrieb Yuri D'Elia:
> Package: systemd
> Version: 232-15
> Severity: normal
>
> I've setup a VM using kvm with a virtio block device, running debian
> unstable
> and an encrypted root filesystem (automatically setup during
> installation as
> lvm+encrypted volume).
>
> Somehow, systemd tries to stop the lvm/crypto block devices way too early
> during shutdown, causing the root filesystem to be left unsynced.
>
> I'm running an identical setup on the real hardware, and the shutdown
> sequence
> is correct, so I assume there is some issue with how virtio block
> devices are
> seen by systemd? Aside from the system using /dev/vda instead of
> /dev/sda, the
> partition scheme and the rest of the setup is identical.
>
> This is the visible shutdown sequence on the console:
>
> ....
> [ OK ] Stopped target System Time Synchronized.
> [ OK ] Stopped target Network is Online.
> [ OK ] Stopped target Network.
> Stopping Raise network interfaces...
> [ OK ] Started Show Plymouth Reboot Screen.
> [11899.805246] systemd[1]: Stopped (with error)
> /dev/disk/by-id/lvm-pv-uuid-sHRNAT-RMhn-Xhi6-8maP-jAdc-OLVu-nS2bY3.
> [FAILED] Stopped (with error)
> /dev/disk/by-i…T-RMhn-Xhi6-8maP-jAdc-OLVu-nS2bY3.
> [11899.808206] systemd[1]: Stopped (with error)
> /dev/disk/by-id/dm-name-vda5_crypt.
> [FAILED] Stopped (with error) /dev/disk/by-id/dm-name-vda5_crypt.
> [11899.813510] systemd[1]: Stopped (with error)
> /sys/devices/virtual/block/dm-3.
> [FAILED] Stopped (with error) /sys/devices/virtual/block/dm-3.
> [11899.815784] systemd[1]: Stopped (with error) /dev/dm-3.
> [FAILED] Stopped (with error) /dev/dm-3.
> [11899.817433] systemd[1]: Stopped (with error) /dev/dm-0.
> [FAILED] Stopped (with error) /dev/dm-0.
> [11899.819205] systemd[1]: Stopped (with error)
> /sys/devices/virtual/block/dm-0.
> [FAILED] Stopped (with error) /sys/devices/virtual/block/dm-0.
> [11899.821010] systemd[1]: Stopped (with error) /dev/mapper/backup_crypt.
> [FAILED] Stopped (with error) /dev/mapper/backup_crypt.
> [11899.822558] systemd[1]: Stopped (with error) /dev/mapper/vda5_crypt.
> [FAILED] Stopped (with error) /dev/mapper/vda5_crypt.
> [FAILED] Stopped (with error)
> /dev/disk/by-i…0b4d27a1048270f285d317-vda5_crypt.
Looks similar to
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=848044 and a lot like
https://github.com/systemd/systemd/issues/1620
--
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://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20170210/8323be66/attachment-0002.sig>
More information about the Pkg-systemd-maintainers
mailing list