LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 07-07-2010, 02:07 PM   #1
larold
Member
 
Registered: Jan 2010
Posts: 42

Rep: Reputation: 15
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?

Last edited by larold; 07-07-2010 at 02:11 PM.
 
Old 07-13-2010, 12:45 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Yes, you need to specify rw in the exports for exported filesystems.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to mount older NFS clients to newer NFS4 servers Larry James Fedora 1 11-23-2009 09:31 AM
[SOLVED] can't mount via NFS4 rmahn Linux - Server 4 09-10-2009 08:35 AM
Cant mount dvd writer and will only mount as read only. M$ISBS Linux - Newbie 7 11-06-2006 08:23 PM
NFS4 mount showing wrong ownership tisource Linux - Networking 1 09-11-2006 01:02 PM
kernel panic unable to mount root (yes ive read/read other posts) dmx9595 Linux - General 4 01-17-2004 05:07 AM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 12:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration