On 01/18/2017 02:08 PM, Samuel Sieb wrote:
On 01/18/2017 01:39 PM, Stephen Morris wrote:
> What I don't understand is when there is a problem why it is always the
> CIFS mount that is the one that fails, I would have expected it to be
> random as to which one is the one that fails.
>
Is it possible that the NAS doesn't handle it well when both mounts
occur at the same time?
Either way, try adding "x-systemd.requires=/mnt/nfs" to the CIFS options
in fstab. That should tell systemd to mount them sequentially.
I think the issue here is that systemd is non-determinate as to when
things actually get done. systemd simply spawns off some command, flags
itself saying "Ok, that's done" and then goes off on its merry way. It
doesn't verify that what was done actually GETS DONE. So, it launches
the network, says the network is up and moves along even though the
network isn't actually up. Your mount is sometimes attempted with a
functioning network and sometimes not. You're left to figure out why.
----------------------------------------------------------------------
- Rick Stevens, Systems Engineer, AllDigital ricks(a)alldigital.com -
- AIM/Skype: therps2 ICQ: 226437340 Yahoo: origrps2 -
- -
- su -; find / -name someone -exec touch \{\} \; -
- - The UNIX way of touching someone -
----------------------------------------------------------------------