The tens of seconds delay in your shutdown process is almost certainly caused by etesync-dav (process 2565).
The first message:
text[86218.566170] systemd-shutdown[1]: Waiting for process: 2565 (etesync-dav)
indicates that systemd-shutdown is blocking the shutdown sequence, waiting for etesync-dav to terminate. This is the primary bottleneck.
The second message:
text[86298.757926] systemd-shutdown[1]: Unable to finalize remaining DM devices, ignoring.
appears after the long wait (about 80 seconds later, based on the timestamps). This is a consequence of the shutdown process being stuck, not the cause. systemd eventually gives up on finalizing Device Mapper (DM) devices (e.g., LVM, encrypted volumes) because the shutdown is already delayed by etesync-dav.
etesync-dav?etesync-dav is a background service for EteSync, a secure, end-to-end encrypted sync solution for contacts, calendars, and other PIM data. It likely runs as a DAV (WebDAV/CalDAV/CardDAV) sync client.
etesync-dav is Stuckbashsystemctl status etesync-dav.service
bashjournalctl -u etesync-dav.service -b
etesync-davbashsudo systemctl edit etesync-dav.service
ini[Service] TimeoutStopSec=10s
bashsudo systemctl daemon-reload
systemd to kill etesync-dav after 10 seconds instead of waiting indefinitely.etesync-davbashsudo systemctl restart etesync-dav.service
etesync-dav.etesync-dav to run at shutdown, disable it:
bashsudo systemctl mask etesync-dav.service
DM devices message persists after fixing etesync-dav, investigate your LVM/encrypted volumes:
bashsudo lvm lvs sudo cryptsetup status
The delay is caused by etesync-dav. The DM devices message is a side effect of the shutdown being stuck. Focus on debugging or limiting the timeout for etesync-dav.
Vibe can make mistakes. Check answers. Learn more