1756552 Members
3236 Online
108848 Solutions
New Discussion юеВ

nfs problem

 
SOLVED
Go to solution
shinoj_1
New Member

nfs problem

I have exported a FS in rw mode and mounted on other server in rw mode. But i get read only filesystem error while I try to write on the other node.

on serverA (nFS server)

#cat /etc/exports
/ABC/pqr/xyz -rw=serverB

#cat /etc/xtab
/ABC/pqr/xyz -rw=serverB

#showmount -e
export list for serverA:
/ABC/pqr/xyz (everyone)

on server B
============

mount -F nfs -o rw serverA/ABC/pqr/xyz /ABC/pqr/xyz

bdf /uipmsreg1/sftp/ipmsreports
Filesystem kbytes used avail %used Mounted on
serverA/ABC/pqr/xyz 20480000 10905016 9425408 54% /ABC/pqr/xyz
cd /ABC/pqr/xyz
#touch test
touch: test cannot create

if i do vi and try saving,its showing filesystem is read only.
Please help on this issue.

thanks
so

9 REPLIES 9
Jaime Bolanos Rojas.
Honored Contributor

Re: nfs problem

Shinoj,

Did you run the exportfs -av command after modifying the exports file?

Regards,

Jaime.
Work hard when the need comes out.
V. Nyga
Honored Contributor

Re: nfs problem

Hi,

also check your permissions at /ABC/pqr/xyz .
Can you show us 'll' of /ABC/pqr on server B?

Volkmar
*** Say 'Thanks' with Kudos ***
Analyst
Trusted Contributor

Re: nfs problem

Shinoj,

I Think this will help your cause...

exportfs -avu

-a -->exports all the entries made in /etc/exports file.

-u -->unexports the old exported nfs file systems

-v -->obviously verbose mode.
Dennis Handly
Acclaimed Contributor
Solution

Re: nfs problem

>/ABC/pqr/xyz -rw=serverB

Are you using a FQDN for serverB?
If that doesn't work, you could try the IP.
pa8700
Regular Advisor

Re: nfs problem

export with anon=2 option and try
OldSchool
Honored Contributor

Re: nfs problem

On serverA (the nfs server) what are the permissions on dir /ABC/pqr/xyz?

if they are not set to 777 you will not be able to create files / directories
directly under it. Deleting would be prohibited as well, I believe. If there are existing directories under /ABC/pqr/xyz, you would be able to do stuff within them, permissions permitting.

"
Filesystem kbytes used avail %used Mounted on
serverA/ABC/pqr/xyz 20480000 10905016 9425408 54% /ABC/pqr/xyz
cd /ABC/pqr/xyz
#touch test
touch: test cannot create"

BTW: you obfuscated names everywhere but the bdf command...

john123
Trusted Contributor

Re: nfs problem

Try by exporting by the option -root="nfs-client-name"

Because by default NFS will treat root user as anon user due to security reasons.

Are u able to create file if u login as another user who has permission to write on the directory

Regards
John
shinoj_1
New Member

Re: nfs problem

Thanks to all for the reply.
Special thanks to Dennis Handly for giving the perfect solution. it worked after exporting using the FQDN.

Points have been assigned to all.

Thanks Again
shinoj
shinoj_1
New Member

Re: nfs problem

Closing the thread as solution is found.