[opensuse] How do I make systemd wait for iscsi to start before attempting to mount iscsi-based filesystems?
I should know the answer to this one, but I simply cannot figure it out. My /etc/fstab has some iscsi-based filesystems - these obviously can't be mounted until iscsid is started and has logged in to the storage server. Somehow systemd needs to know this, how do I tell it? The file systems are configured with start=automatic (i.e. not with onboot). I will be setting up multipathing later, which might possible also take of this issue, but it seems to be it ought to work without too. thanks, Per -- Per Jessen, Zürich (11.9°C) http://www.hostsuisse.com/ - dedicated server rental in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
В Tue, 18 Mar 2014 10:38:37 +0100 Per Jessen <per@computer.org> пишет:
I should know the answer to this one, but I simply cannot figure it out. My /etc/fstab has some iscsi-based filesystems - these obviously can't be mounted until iscsid is started and has logged in to the storage server. Somehow systemd needs to know this, how do I tell it?
Add _netdev to mount options; add Before=remote-fs-pre.target to iscsi service (you can create drop-in to avoid modifying service definition). -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Andrey Borzenkov wrote:
В Tue, 18 Mar 2014 10:38:37 +0100 Per Jessen <per@computer.org> пишет:
I should know the answer to this one, but I simply cannot figure it out. My /etc/fstab has some iscsi-based filesystems - these obviously can't be mounted until iscsid is started and has logged in to the storage server. Somehow systemd needs to know this, how do I tell it?
Add _netdev to mount options; add Before=remote-fs-pre.target to iscsi service (you can create drop-in to avoid modifying service definition).
This is on 12.3, where iscsi is still managed by an init-script. Any suggestions for that situation? I tried the _netdev earlier, it didn't make any difference. thanks. -- Per Jessen, Zürich (15.2°C) http://www.hostsuisse.com/ - dedicated server rental in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
В Tue, 18 Mar 2014 20:24:09 +0100 Per Jessen <per@computer.org> пишет:
Andrey Borzenkov wrote:
В Tue, 18 Mar 2014 10:38:37 +0100 Per Jessen <per@computer.org> пишет:
I should know the answer to this one, but I simply cannot figure it out. My /etc/fstab has some iscsi-based filesystems - these obviously can't be mounted until iscsid is started and has logged in to the storage server. Somehow systemd needs to know this, how do I tell it?
Add _netdev to mount options; add Before=remote-fs-pre.target to iscsi service (you can create drop-in to avoid modifying service definition).
This is on 12.3, where iscsi is still managed by an init-script. Any suggestions for that situation? I tried the _netdev earlier, it didn't make any difference.
openSUSE adds support for X-Start-Before: and X-Start-After: LSB headers in initscript; you could try adding # X-Start-Before: remote-fs-pre.target -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Andrey Borzenkov wrote:
В Tue, 18 Mar 2014 20:24:09 +0100 Per Jessen <per@computer.org> пишет:
Andrey Borzenkov wrote:
В Tue, 18 Mar 2014 10:38:37 +0100 Per Jessen <per@computer.org> пишет:
I should know the answer to this one, but I simply cannot figure it out. My /etc/fstab has some iscsi-based filesystems - these obviously can't be mounted until iscsid is started and has logged in to the storage server. Somehow systemd needs to know this, how do I tell it?
Add _netdev to mount options; add Before=remote-fs-pre.target to iscsi service (you can create drop-in to avoid modifying service definition).
This is on 12.3, where iscsi is still managed by an init-script. Any suggestions for that situation? I tried the _netdev earlier, it didn't make any difference.
openSUSE adds support for X-Start-Before: and X-Start-After: LSB headers in initscript; you could try adding
# X-Start-Before: remote-fs-pre.target
Thanks, I'll try that. -- Per Jessen, Zürich (9.4°C) http://www.hostsuisse.com/ - dedicated server rental in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (2)
-
Andrey Borzenkov
-
Per Jessen