Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

NFS issue - 'manual' mount works; but mount -a doesn't!

Toby H Ferguson -OracleSep 29 2011 — edited Oct 12 2011
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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 9 2011
Added on Sep 29 2011
5 comments
430 views