1829148 Members
2199 Online
109986 Solutions
New Discussion

Re: NFS

 
Carlos Vanegas
Occasional Advisor

NFS

I have a problem to export a file system /usr/data1 to 3 machines. I write in /etc/exports the next:

/usr/data1 -root=mach1:mach2:mach3

After, I ran exportfs -a and I mount in each nfs client , and didn't have problem, but only can write in mach2.

What I need to do, to can write in the 3 nfs client??

Thanks
7 REPLIES 7
Sridhar Bhaskarla
Honored Contributor

Re: NFS

Carlos,

Your exportfs command should work. Try unmounting and mounting again on the other nodes.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
pap
Respected Contributor

Re: NFS

Hi Carlos,
Your entry in the /etc/exports is proper and it should work.

Just do following and you should be fine.

On NFS server execute following

#/sbin/init.d/nfs.server stop
##/sbin/init.d/nfs.server start

on Clients

# /sbin/init.d/nfs.client stop
# /sbin/init.d/nfs.client start

You should be fine now.

-pap
"Winners don't do different things , they do things differently"
Jeffrey Davis_1
Frequent Advisor

Re: NFS

Hi Carlos. This works fine. Just make sure you don't have any stale/unused points in /etc/exports file.
Stopping and starting the nfs daemons couldn't hurt.
radi_1
Frequent Advisor

Re: NFS

Hi Carlos,
-Check /etc/rc.config.d/nfsconf file on nfs server,the following params should have these values:
NFS_CLIENT=0
NFS_SERVER=1
NUM_NFSD=4
NUM_NFSIOD=4
PCNFS_SERVER=0
START_MOUNTD=1
-On each client,check /etc/fstab,it should have a line simillar to this;
server:/dir. to be exported /mount point on client nfs rw 0 0
Regards


















never take simple maters for granted
Sukant Naik
Trusted Contributor

Re: NFS

Just adding to pap's message.

You need to delete the entry in the /etc/rmtab file for mach1 and mach3 machines after you have stopped the nfs.server and nfs.client.

Because it might still be containing the old export permissions which you had set for mach1 and mach3 servers.

-Sukant
Who dares he wins
Wodisch
Honored Contributor

Re: NFS

Hi Carlos,

you might simply have a name resolution problem on your NFS server:
do ALL three machine's IP-addresses really resolve to the shortnames "mach1" or "mach2" or "mach3", or they have some DNS part (dots)?

HTH,
Wodisch
U.SivaKumar_2
Honored Contributor

Re: NFS

hi,
stop the NFS service.
#cd /var/statmon/sm
delete the files under the directory. start the
NFS service . try writing again.
regards,
U.SivaKumar
Innovations are made when conventions are broken