I appreciate the responses. See below. I will paste a full debug log, but I can't arbitrarily reboot the current production machine. I'll replicate this on another machine. That could take a day or so. In the mean time, below is further explanation:
On Mon, Jul 25, 2016 at 6:42 AM, Stefan Tatschner <rumpels...@sevenbyte.org> wrote: > > Could it be this? > > https://github.com/systemd/systemd/issues/1620 > > In my case I am not issuing a shutdown. I am only umuonting a USB drive. Unexpectedly, umounting the USB drive causes systemd to issue what appears to me to be a stop command for target Encrypted Volumes. There should be no reason that the encrypted volumes are stopped, umounted, etc. That's unexpected. Until I can provide full debug logs, here are what I think may be the most relevant log lines. -- Logs begin at Mon 2016-05-16 21:40:56 EDT, end at Sun 2016-07-24 23:41:58 EDT. -- Jul 24 23:38:40 mserver systemd-journald[619]: Runtime journal (/run/log/journal/) is 8.0M, max 4.0G, 3.9G free. Jul 24 23:38:40 mserver kernel: microcode: microcode updated early to revision 0x38, date = 2016-03-28 Jul 24 23:38:40 mserver kernel: Linux version 4.6.4-1-ARCH (builduser@tobias) (gcc version 6.1.1 20160707 (GCC) ) #1 SMP PREEMPT Mon Jul 11 19:12:32 CEST 2016 Jul 24 23:38:40 mserver kernel: Command line: initrd=\intel-ucode.img initrd=\initramfs-linux.img rw cryptdevice=UUID=d71113:dluks root=/dev/mapper/dluks rootflags=subvol=@ ... Jul 24 23:38:40 mserver kernel: usb 3-1: new high-speed USB device number 2 using xhci_hcd ... Jul 24 23:38:40 mserver kernel: usb-storage 3-1:1.0: USB Mass Storage device detected Jul 24 23:38:40 mserver kernel: scsi host10: usb-storage 3-1:1.0 Jul 24 23:38:40 mserver kernel: usb 3-14: new low-speed USB device number 3 using xhci_hcd ... Jul 24 23:38:42 mserver mtp-probe[760]: checking bus 3, device 2: "/sys/devices/pci0000:00/0000:00:14.0/usb3/3-1" Jul 24 23:38:42 mserver mtp-probe[759]: checking bus 3, device 3: "/sys/devices/pci0000:00/0000:00:14.0/usb3/3-14" ... Jul 24 23:41:17 mserver sudo[1195]: dave : TTY=tty1 ; PWD=/home/dave ; USER=root ; COMMAND=/usr/bin/umount /boot Jul 24 23:41:17 mserver sudo[1195]: pam_unix(sudo:session): session opened for user root by dave(uid=0) Jul 24 23:41:17 mserver sudo[1195]: pam_unix(sudo:session): session closed for user root Jul 24 23:41:30 mserver kernel: usb 3-1: USB disconnect, device number 2 Jul 24 23:41:30 mserver systemd[1]: Stopped target Encrypted Volumes. Jul 24 23:41:30 mserver systemd[1]: Stopping Cryptography Setup for dluks... Jul 24 23:41:30 mserver systemd[1]: Stopping Cryptography Setup for aluks... Jul 24 23:41:30 mserver systemd[1]: Stopping Cryptography Setup for bluks... Jul 24 23:41:30 mserver systemd[1]: Stopped File System Check on /dev/disk/by-uuid/A4-0E. Jul 24 23:41:30 mserver systemd[1]: Stopped target Local File Systems. Jul 24 23:41:30 mserver systemd[1]: Unmounting /ak... Jul 24 23:41:30 mserver systemd[1]: Unmounting /.snapshots...Jul 24 23:41:30 mserver systemd[1]: Stopped target Encrypted Volumes. Jul 24 23:41:30 mserver systemd[1]: Unmounting /var/data/nc... Jul 24 23:41:30 mserver systemd[1]: Unmounting /home... Jul 24 23:41:30 mserver systemd[1]: Unmounting /bk... Jul 24 23:41:30 mserver systemd[1]: Unmounting /var/data/cw... Jul 24 23:41:30 mserver systemd[1]: Stopping Update UTMP about System Boot/Shutdown... Jul 24 23:41:30 mserver systemd[1]: Stopped Flush Journal to Persistent Storage. Jul 24 23:41:30 mserver umount[1217]: umount: /home: target is busy Jul 24 23:41:30 mserver umount[1217]: (In some cases useful info about processes that Jul 24 23:41:30 mserver umount[1217]: use the device is found by lsof(8) or fuser(1).) Jul 24 23:41:30 mserver systemd[1]: Stopped (with error) /dev/mapper/aluks. Jul 24 23:41:30 mserver systemd[1]: Stopped (with error) /dev/mapper/bluks. Jul 24 23:41:30 mserver systemd[1]: home.mount: Mount process exited, code=exited status=32 Jul 24 23:41:30 mserver systemd[1]: Failed unmounting /home. Jul 24 23:41:30 mserver systemd[1]: Stopped Update UTMP about System Boot/Shutdown. Jul 24 23:41:30 mserver systemd[1]: Unmounting /var/log... Jul 24 23:41:30 mserver umount[1224]: umount: /var/log: target is busy Jul 24 23:41:30 mserver umount[1224]: (In some cases useful info about processes that Jul 24 23:41:30 mserver umount[1224]: use the device is found by lsof(8) or fuser(1).) Jul 24 23:41:30 mserver systemd[1]: var-log.mount: Mount process exited, code=exited status=32 Jul 24 23:41:30 mserver systemd[1]: Failed unmounting /var/log. Jul 24 23:41:30 mserver systemd[1]: Unmounted /var/data/cw. Jul 24 23:41:30 mserver systemd[1]: Unmounted /.snapshots. Jul 24 23:41:30 mserver systemd[1]: Unmounted /var/data/nc. Jul 24 23:41:30 mserver systemd[1]: Unmounted /ak. Jul 24 23:41:30 mserver systemd[1]: Stopped /dev/disk/by-uuid/67xxx9ae1. Jul 24 23:41:30 mserver systemd[1]: Stopped /dev/disk/by-label/a_top. Jul 24 23:41:30 mserver systemd[1]: Stopped /dev/disk/by-id/dm-uuid-CRYPT-LUKS1-79ca-aluks. Jul 24 23:41:30 mserver systemd[1]: Stopped /dev/disk/by-id/dm-name-aluks. Jul 24 23:41:30 mserver systemd[1]: Stopped /dev/dm-2. Jul 24 23:41:30 mserver systemd[1]: Stopped /sys/devices/virtual/block/dm-2. Jul 24 23:41:30 mserver systemd[1]: Stopped Cryptography Setup for aluks. Jul 24 23:41:30 mserver systemd[1]: Unmounted /bk. Jul 24 23:41:30 mserver systemd[1]: Stopped /dev/disk/by-uuid/82xxx3b0. Jul 24 23:41:30 mserver systemd[1]: Stopped /dev/disk/by-label/bk. Jul 24 23:41:30 mserver systemd[1]: Stopped /dev/disk/by-id/dm-uuid-CRYPT-LUKS1-7258-bluks. Jul 24 23:41:30 mserver systemd[1]: Stopped /dev/disk/by-id/dm-name-bluks. Jul 24 23:41:30 mserver systemd[1]: Stopped /dev/dm-3. Jul 24 23:41:30 mserver systemd[1]: Stopped /sys/devices/virtual/block/dm-3. Jul 24 23:41:30 mserver systemd[1]: Stopped Cryptography Setup for bluks. Jul 24 23:41:35 mserver systemd-cryptsetup[1203]: Failed to deactivate: Device or resource busy Jul 24 23:41:35 mserver systemd[1]: systemd-cryptsetup@dluks.service: Control process exited, code=exited status=1 Jul 24 23:41:35 mserver systemd[1]: Stopped Cryptography Setup for dluks. Jul 24 23:41:35 mserver systemd[1]: systemd-cryptsetup@dluks.service: Unit entered failed state. Jul 24 23:41:35 mserver systemd[1]: systemd-cryptsetup@dluks.service: Failed with result 'exit-code'.
_______________________________________________ systemd-devel mailing list systemd-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/systemd-devel