Re: [opensuse] How do I make systemd wait for iscsi to start before attempting to mount iscsi-based filesystems?
Rob Verduijn wrote:
try adding the following options to the fstab entry of the filesystem
noauto,x-systemd.automount
What this does can be found on this page http://www.freedesktop.org/software/systemd/man/systemd.mount.html and this one http://www.freedesktop.org/software/systemd/man/systemd.automount.html
Rob
Hi Rob thanks for that. Some of the info seems out of date: (from http://www.freedesktop.org/software/systemd/man/systemd.automount.html)
A unit configuration file whose name ends in ".automount" encodes information about a file system automount point controlled and supervised by systemd.
Automount units must be named after the automount directories they control. Example: the automount point /home/lennart must be configured in a unit file home-lennart.automount.
I have no such .automount files at all. Ah, further down I see that they are auto-configured via /etc/fstab, okay. A couple things I don't understand: Despite "x-systemd.automount" not being set in my /etc/fstab anywhere, I still get some systemd .mount config units, so I guess someone does that behind the scene. With "noauto", apparently these drives are not auto-mounted - so who/what will mount them? Despite these disks being iSCSI, systemd has created links in "local-fs.target.requires" which doesn't seem correct? thanks for your insights, regards Per -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
El 18/03/14 10:10, Per Jessen escribió:
Despite "x-systemd.automount" not being set in my /etc/fstab anywhere, I still get some systemd .mount config units, so I guess someone does that behind the scene.
Of course, otherwise how will systemd know about what and/or on what order to umount stuff at shutdown OR allow service units to use for example: Requires=var-run.mount
With "noauto", apparently these drives are not auto-mounted - so who/what will mount them?
the system administrator.
Despite these disks being iSCSI, systemd has created links in "local-fs.target.requires" which doesn't seem correct?
Is the iscsi mount started before or after the relevant iscsi daemon ? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Cristian Rodríguez wrote:
El 18/03/14 10:10, Per Jessen escribió:
Despite "x-systemd.automount" not being set in my /etc/fstab anywhere, I still get some systemd .mount config units, so I guess someone does that behind the scene.
Of course, otherwise how will systemd know about what and/or on what order to umount stuff at shutdown OR allow service units to use for example:
Requires=var-run.mount
With "noauto", apparently these drives are not auto-mounted - so who/what will mount them?
the system administrator.
Hehe, right. Instead I thought I would put the disks in /etc/fstab, but that's not working.
Despite these disks being iSCSI, systemd has created links in "local-fs.target.requires" which doesn't seem correct?
Is the iscsi mount started before or after the relevant iscsi daemon ?
As the $SUBJ indicates, before. -- Per Jessen, Zürich (17.6°C) http://www.dns24.ch/ - your free DNS host, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Per Jessen wrote:
Cristian Rodríguez wrote:
Despite these disks being iSCSI, systemd has created links in "local-fs.target.requires" which doesn't seem correct?
Is the iscsi mount started before or after the relevant iscsi daemon ?
As the $SUBJ indicates, before.
Correction, iscsid is being started early by the initrd which mounts two filesystems with node.startup=onboot. The one that isn't being mounted has node.startup=automatic, so should be started/available with an "iscsiadm -m --loginall=automatic" which happens later. This is presumably what systemd should wait for. I really want all three filesystems to have node.startup=automatic, which is why I'm fiddling with this right now. -- Per Jessen, Zürich (17.9°C) http://www.dns24.ch/ - your free DNS host, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (2)
-
Cristian Rodríguez
-
Per Jessen