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!

Mounting NFS share from FSTAB file

JimboMar 14 2014 — edited Mar 18 2014

Hi, I have set up an NFS share on my server. I am also making the same server act as an NFS client.

From the NFS client perspective I was able to manually mount the NFS share using

mount lab4:/nfs_share /shared_storage

root@lab4#>df -k

Filesystem      1K-blocks      Used Available Use% Mounted on

/dev/sde2        10190136   3117264   6548584  33% /

tmpfs             1471656        72   1471584   1% /dev/shm

/dev/sde1        30832636   3921628  25338144  14% /home

/dev/sde5       278545968 255913036   8476876  97% /nfs_share

lab4:/nfs_share 278546432 255913472   8477184  97% /shared_storage

I then manually unmounted this NFS share on the client

Then I decided to add this into the /etc/fstab on my NFS client, so I would not have to keep manually mounting it

# /etc/fstab
# Created by anaconda on Mon Mar 10 22:32:26 2014
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
UUID=3a63cf04-c345-458f-a250-2a5475f0ea95 /                       ext4    defaults        1 1
UUID=23df0961-1d77-460a-a751-a940f9857d61 /home                   ext4    defaults        1 2
UUID=c3638d1f-aa48-45ea-95ee-a4658961c28c swap                    swap    defaults        0 0
UUID=671a5be7-582a-4e90-98f0-e69b72aec85c /nfs_share              ext4    defaults        1 2
tmpfs                   /dev/shm                tmpfs   defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0

lab4:/shared_storage    /nfs_share              nfs     rw,bg,nointr,tcp,vers=3,timeo=600,rsize=32768,wsize=32768,actimeo=0   0 0

REMEMBER my LAB4 is acting as NFS server and NFS Client in the case of this experiment

However on the NFS Client side when I issue

mount -a to pick up the NFS entry in the fstab, I get

root@lab4#>mount -a

mount.nfs: access denied by server while mounting lab4:/shared_storage

my /etc/exports file on the NFS Server contains

/nfs_share *(rw,sync,all_squash,anonuid=503,anongid=501)

uid 503 and gid 501 correspond to a user 'grid1' on my NFS client

any ideas what the problem could be ?

thanks,

Jim

This post has been answered by Avi Miller-Oracle on Mar 14 2014
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 15 2014
Added on Mar 14 2014
4 comments
2,628 views