NFS issue - 'manual' mount works; but mount -a doesn't!
I'm running Oracle Linux 6.0.1
I want to export /data/repository as an NFS fs, and mount it locally as /mnt/repository.
# ls -ld /data/repository
drwxr-xr-x. 3 root root 4096 Sep 29 15:49 /data/repository
# ls /data/repository
foo lost+found
# ls -ld mnt/repository
drwxr-xr-x. 2 root root 4096 Sep 29 14:10 /mnt/repository
# ls /mnt/repository
#
My fstab contains this:
# grep repository /etc/fstab
192.168.1.210:/data/repository /mnt/repository nsf4 intr,tcp 0 0
If I run mount using fstab it fails:
# mount /mnt/repository
mount.nsf4: mounting 192.168.1.210:/data/repository failed, reason given by server:
No such file or directory
BUt if I extract the line out from fstab thus:
# grep repoistory /etc/fstab | cut -f1,2
# 192.168.1.210:/data/repository /mnt/repository
and use that in a 'manual' mount command then it works:
# mount $(grep repository /etc/fstab | cut -f1,2)
# ls -ld /mnt/repository
drwxr-xr-x. 3 root root 4096 Sep 29 15:49 /mnt/repository
(notice it has same time/date as my /data/repository directory).
I've searched all over the web but, so far, haven't solved it. Anyone got a good idea?
Toby