I am facing a strange problem with my Arch Linux LXC running Jellyfin.
I mounted my media shares in the LXC which is working fine.
However, during every reboot, poweroff or stop of the LXC I need to kill the pve-process of the whole container because it simply won't shutdown.
At first I thought it was because I was mounting the shares using /etc/fstab instead of a systemd unit. But switching it over to a systemd unit didn't help.
After that I thought it was because Jellyfin is stopped after the system is trying to unmount my CIFS shares, but the syslog is showing the opposite (right) behaviour.
mount media systemd unit
relevant syslog
I mounted my media shares in the LXC which is working fine.
However, during every reboot, poweroff or stop of the LXC I need to kill the pve-process of the whole container because it simply won't shutdown.
At first I thought it was because I was mounting the shares using /etc/fstab instead of a systemd unit. But switching it over to a systemd unit didn't help.
After that I thought it was because Jellyfin is stopped after the system is trying to unmount my CIFS shares, but the syslog is showing the opposite (right) behaviour.
mount media systemd unit
Code:
/etc/systemd/system/mnt-media.mount
===================================
[Unit]
Description=Mount media share r/w at boot.
After=mnt-media.mount nss-lookup.target
BindsTo=mnt-media.mount
[Mount]
What=//NAS/nas/Media
Where=/mnt/media
Type=cifs
Options=_netdev,noatime,uid=jellyfin,gid=jellyfin,user=rw_smb_user,pass=x,iocharset=utf8
ForceUnmount=true
TimeoutSec=30
[Install]
WantedBy=multi-user.target
relevant syslog
Code:
Dec 03 12:46:58 JELLY-LXC systemd[1]: Unmounting Mount media share r/o at boot....
Dec 03 12:46:58 JELLY-LXC systemd[1]: Stopping Record System Boot/Shutdown in UTMP...
Dec 03 12:46:58 JELLY-LXC umount[127]: umount: /mnt/media: block devices are not permitted on filesystem.
Dec 03 12:46:58 JELLY-LXC systemd[1]: mnt-media.mount: Mount process exited, code=exited, status=32/n/a
Dec 03 12:46:58 JELLY-LXC systemd[1]: Failed unmounting Mount media share r/w at boot..
Attachments
Last edited: