Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #236767
| From | Reiner Buehl <reiner.buehl@gmail.com> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | systemd nfs mount blocked until first entered |
| Date | 2021-07-02 18:40 +0200 |
| Message-ID | <CwumR-6KQ-1@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
[Multipart message — attachments visible in raw view] - view raw
Hi all,
I have a directory that is mounted via NFS from a remote server. The mount
is done via an /etc/fstab entry like this:
192.168.1.2:/video /video nfs
defaults,x-systemd.automount,x-systemd.requires=network-online.target,x-systemd.device-timeout=10,rsize=8192,wsize=8192,soft,nolock,noatime
0 0
If I boot the vdr daemon fails during startup with the error message
vdr.service - Video Disk Recorder
Loaded: loaded (/etc/systemd/system/vdr.service; enabled; vendor preset:
enabled)
Drop-In: /etc/systemd/system/vdr.service.d
└─override.conf
Active: failed (Result: exit-code) since Thu 2021-07-01 23:27:25 CEST;
8h ago
Process: 523 ExecStartPre=/bin/sh /usr/lib/vdr/merge-commands.sh commands
(code=exited, status=0/SUCCESS)
Process: 533 ExecStartPre=/bin/sh /usr/lib/vdr/merge-commands.sh reccmds
(code=exited, status=0/SUCCESS)
Process: 543 ExecStart=/usr/bin/vdr (code=exited, status=2)
Main PID: 543 (code=exited, status=2)
Jul 01 23:27:25 vdr systemd[1]: Starting Video Disk Recorder...
Jul 01 23:27:25 vdr vdr[543]: [543] ERROR: can't access /video
Jul 01 23:27:25 vdr vdr[543]: vdr: can't access video directory /video
Jul 01 23:27:25 vdr systemd[1]: vdr.service: Main process exited,
code=exited, status=2/INVALIDARGUMENT
Jul 01 23:27:25 vdr systemd[1]: vdr.service: Failed with result 'exit-code'.
Jul 01 23:27:25 vdr systemd[1]: Failed to start Video Disk Recorder.
The vdr.service has an override of
[Unit]
After=remote-fs.target
Requires=remote-fs.target
to ensure that the filesystem is mounted.
If I try to restart vdr.service, it fails again with the same error but if
I just cd to the directory and then try to restart it, it starts and works
fine.
What is systemd doing here that blocks the mount point for the vdr process?
Do I need different fstab options?
Best regards,
Reiner
Back to linux.debian.user | Previous | Next — Next in thread | Find similar | Unroll thread
systemd nfs mount blocked until first entered Reiner Buehl <reiner.buehl@gmail.com> - 2021-07-02 18:40 +0200
Re: systemd nfs mount blocked until first entered Greg Wooledge <greg@wooledge.org> - 2021-07-02 19:10 +0200
Re: systemd nfs mount blocked until first entered Reco <recoverym4n@enotuniq.net> - 2021-07-02 19:20 +0200
Re: systemd nfs mount blocked until first entered Reiner Buehl <reiner.buehl@gmail.com> - 2021-07-02 19:50 +0200
Re: systemd nfs mount blocked until first entered Reiner Buehl <reiner.buehl@gmail.com> - 2021-07-02 20:10 +0200
Re: systemd nfs mount blocked until first entered Greg Wooledge <greg@wooledge.org> - 2021-07-02 20:30 +0200
csiph-web