I get this error message:
- Code: Select all
# service autofs restart
Restarting autofs (via systemctl): Job failed. See system journal and 'systemctl status' for details.
[FAILED]
# systemctl status autofs
Failed to issue method call: Unit name autofs is not valid.
In my auto.master file, I have the line
- Code: Select all
/- /etc/autofs/auto.nfs
and, in the file auto.nfs:
- Code: Select all
/mnt/Dell101 -fstype=nfs4 Dell101:/
/mnt/Dell-OptiPlex-390 -fstype=nfs4 Dell-OptiPlex-390:/
/mnt/Dell-graphist -fstype=nfs4 Dell-graphist:/
/mnt/Fiable -fstype=nfs4 Fiable:/
Some of these computers are turned off. Specially one of them which is a notebook. This is precisely the reason why I use autofs: so that they be mounted when they are turned on, while using fstab would only mount the file systems which would be on before the NFS client. Usually this method works. Sometimes, I don't know why, autofs doesn't mount a file system, so I launch "service autofs restart" and usually it works. But quite often I get the above error message, and if I launch it again, I get again the same error message.
Do you have any idea?