Re: nfs mount through fstab



On Wed, 18 Apr 2007 12:47:45 -0400, sysadmin wrote this:


Here is my /etc/fstab

Can't see where it is wrong

LABEL=/ / ext3 defaults
LABEL=/boot1 /boot ext3 defaults devpts
/dev/pts devpts gid=5,mode=620 tmpfs
/dev/shm tmpfs defaults LABEL=/export
/export ext3 defaults LABEL=/local1
/local ext3 defaults proc
/proc proc defaults sysfs
/sys sysfs defaults LABEL=/tmp
/tmp ext3 defaults LABEL=/usr
/usr ext3 defaults LABEL=/var
/var ext3 defaults
LABEL=SWAP-sda8 swap swap defaults
fraser:/var/spool/mail /var/spool/mail nfs bg,rw,actimeo=0
fraser:/usr/local /usr/local nfs bg,rw



Scott Hemphill wrote:
sysadmin <sysadmin@xxxxxxxxxxxxxxxx> writes:

Hi guys

I cannot mount nfs filesystems through fstab ( RHEL 5.0)

May be i have cleaned too much with chkconfig ?

network 0:off 1:off 2:on 3:on 4:on 5:on 6:off
nfs 0:off 1:off 2:off 3:on 4:on 5:on 6:off
nfslock 0:off 1:off 2:off 3:on 4:on 5:on 6:off
ntpd 0:off 1:off 2:off 3:off 4:off 5:off 6:off
portmap 0:off 1:off 2:off 3:on 4:on 5:on 6:off
restorecond 0:off 1:off 2:on 3:on 4:on 5:on 6:off
rpcgssd 0:off 1:off 2:on 3:on 4:on 5:on 6:off
rpcidmapd 0:off 1:off 2:off 3:on 4:on 5:on 6:off
rpcsvcgssd 0:off 1:off 2:off 3:off 4:off 5:off 6:off


Is this ok .

I have no error messages , can mount the filesystem manually

What is worong ?

If you can mount the filesystem manually, then it sounds like your
/etc/fstab entry is incorrect.

Scott


I'm not sure what you intend to happen using those mount points.

To check nfs use

fraser:/var/spool/mail /mnt/mail nfs bg,rw,actimeo=0

fraser:/usr/local /mnt/local nfs bg,rw

If that mounts then it's the permission you have on /var/spool/mail and
/usr/local

I think it's safer using /mnt/somedir and pointing your apps to
those mount points instead of overlaying system areas. Or send mail
from or retreive mail from the nfsserver into the local machine.

.