Solaris 10 NFS Share Issue | Unix Linux Forums | Solaris

  Go Back    


Solaris The Solaris Operating System, usually known simply as Solaris, is a Unix-based operating system introduced by Sun Microsystems. The Solaris OS is now owned by Oracle.

Solaris 10 NFS Share Issue

Solaris


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 01-22-2013
fallersaur fallersaur is offline
Registered User
 
Join Date: Dec 2011
Last Activity: 24 January 2013, 4:23 PM EST
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Solaris 10 NFS Share Issue

Hello all,

I am having an issue with an NFS share I have created between two Solaris 10 boxes. I want the share to have read/write permissions, but for some reason it is coming up as read-only on the client side mount despite "rw" being specified in the mount options.

Here is what I have in /etc/vfstab on the client:

server:/share - /share nfs - yes rw

Here is what I have in /etc/dfs/dfstab on the server:

share -F nfs -o rw,root=clientservername /share

The problem appears to be with the client-side mount, because if I perform the following command it becomes read-write:

mount -o remount /share

Any ideas why the share started out as read-only despite being specified otherwise? Any help is greatly appreciated!

Regards,

Chris
Sponsored Links
    #2  
Old 01-22-2013
hicksd8 hicksd8 is offline
Registered User
 
Join Date: Feb 2012
Last Activity: 23 April 2014, 10:10 AM EDT
Location: Cornwall, UK
Posts: 641
Thanks: 23
Thanked 105 Times in 101 Posts
Please post the /share directory permissions on the server.

Who is the owner?

(Could try setting to 777 and see if the problem goes away)
Sponsored Links
    #3  
Old 01-22-2013
fallersaur fallersaur is offline
Registered User
 
Join Date: Dec 2011
Last Activity: 24 January 2013, 4:23 PM EST
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
The owner is root and the permissions are currently 755, but I currently have read/write after performing the remount option. I am troubleshooting this on a production server, so I have not had a chance to reboot the server to see if it reverts to read-only (I suspect it will since it started out that way), but when I do I will give 777 a shot.

Thanks,

Chris
    #4  
Old 01-24-2013
fallersaur fallersaur is offline
Registered User
 
Join Date: Dec 2011
Last Activity: 24 January 2013, 4:23 PM EST
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Unfortunately I tried setting the permissions to 777, but it still comes up as read-only initially. So everytime the system reboots or the NFS client service is restarted...it comes up as read-only and I have to use the remount command to fix it. I also tried forcing NFSv4 just to see if that changes anything, but no change.

I just find it odd that the remount command is supposed to mount an already mounted share adding in the "rw" option even though I already mounted it with the rw option in the first place.

Regards,

Chris
Sponsored Links
    #5  
Old 01-24-2013
hicksd8 hicksd8 is offline
Registered User
 
Join Date: Feb 2012
Last Activity: 23 April 2014, 10:10 AM EDT
Location: Cornwall, UK
Posts: 641
Thanks: 23
Thanked 105 Times in 101 Posts
I agree that this is weird, especially since I do this all the time between Solaris 10 boxes with no issues. I appreciate that doesn't help you.

Having looked at how I configure mine, I notice one major difference:

Quote:
Here is what I have in /etc/vfstab on the client:

server:/share - /share nfs - yes rw

In vfstab on clients I always use:


Code:
 
server:/share - /share nfs - yes rw,soft

for soft not hard (default) mount

Other than that I can't spot any differences.

Perhaps cut and post the actual vfstab and dfstab contents in case I can see a syntax error or the like.

I confgure dfstab on the server side as you are doing it.

I admit that I am confused.

Last edited by hicksd8; 01-24-2013 at 05:14 PM..
Sponsored Links
    #6  
Old 01-25-2013
achenle achenle is offline
Registered User
 
Join Date: Jun 2009
Last Activity: 23 April 2014, 11:18 AM EDT
Posts: 546
Thanks: 0
Thanked 72 Times in 70 Posts
Weird. Try mounting with "-o vers=3,proto=tcp" and see what happens.

And don't use soft mounts. Soft mounts do not support mmap'd files because once a file is mmap'd, the system assumes any pages needed can be read/written as necessary and there is no way to tell a running application otherwise. This can lead to processes crashing with SEGV/SIGBUS and/or data corruption. Also, writes cached on the client can be lost if the IO attempt times out after the application received a successful return from its write() call, which can also lead to data corruption. Never mind the fact that you're assuming all applications will properly handle possible intermittent IO errors any reads/writes. If they don't - data corruption.

IMO, if you know you're never going to have mmap'd files (and executables - applications and shared objects - are all mmap'd when they are run...) and ALL the apps running on your system are known to properly handle intermittent IO errors soft mounts are OK.
The Following User Says Thank You to achenle For This Useful Post:
radoulov (01-25-2013)
Sponsored Links
    #7  
Old 01-25-2013
hicksd8 hicksd8 is offline
Registered User
 
Join Date: Feb 2012
Last Activity: 23 April 2014, 10:10 AM EDT
Location: Cornwall, UK
Posts: 641
Thanks: 23
Thanked 105 Times in 101 Posts
Another thought on this issue..........

On your server can you


Code:
ping <clientname>

just to check that the client name can be resolved. Does it translate to the correct ip address of the client?

If ping cannot resolve the name then neither will the share command and the server will not recognise the inbound nfs mount request as a node it should give rw,root access to. A read-only access might result (I guess).
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
NFS : Invalid argument (Remote share mounting issue) Justin John UNIX for Advanced & Expert Users 5 08-06-2012 03:26 PM
Can't access NFS Share on Solaris Server from a Linux Client SunilB2011 Solaris 0 06-21-2012 02:39 AM
VxWorks - W2003 issue loading file from NFS share BigBuff52 Windows & DOS: Issues & Discussions 0 12-12-2011 04:07 PM
how to mount Windows NFS share on solaris uxadmin007 Solaris 2 08-03-2009 03:40 PM
NFS - how to share a directoy - solaris hcclnoodles UNIX for Dummies Questions & Answers 3 05-17-2002 02:56 PM



All times are GMT -4. The time now is 03:11 PM.