LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Enterprise (https://www.linuxquestions.org/questions/linux-enterprise-47/)
-   -   NFS4 mount is read-only? (https://www.linuxquestions.org/questions/linux-enterprise-47/nfs4-mount-is-read-only-818561/)

larold 07-07-2010 02:07 PM

NFS4 mount is read-only?
 
My first time setting up an nfs4 mount. I can successfully mount the NFS4 directory, and view file contents. However, even when exporting and mounting read-write, it keeps telling me it's a read only filesystem.

On server, /etc/exports:
/nfs4_exports somehost(no_root_squash,fsid=0)
/nfs4_exports/logs somehost(no_root_squash,rw)

On client, fstab entry:

somehost:/ /datalogs nfs4 rw 0 0

EDIT:

I think I solved it - I added an 'rw' field to the top entry in /etc/exports. Seems to be working now.

Client shell session:

# mount /datalogs/
# touch /datalogs/testfile
touch: cannot touch `/datalogs/testfile': Read-only file system

Anything simple I missed?

trickykid 07-13-2010 12:45 PM

Yes, you need to specify rw in the exports for exported filesystems.


All times are GMT -5. The time now is 04:15 AM.