Operating System - Tru64 Unix
1827808 Members
2045 Online
109969 Solutions
New Discussion

Read-only NFS mount

 
Vikas_18
Occasional Contributor

Read-only NFS mount

Hello admins,

I have configured my one of my tru64 servers as nfs server and other as nfs client. I am unable to open that network directory as read-write directory from client. However, I am able to see the contents of the network directory. Can you please let me know where I amdoing wrong?

PS: I used "sysman nfs" for configuring nfs in both servers.

Regards,
Vikas
4 REPLIES 4
Johan Brusche
Honored Contributor

Re: Read-only NFS mount


Can you please post your server's /etc/exports and the result of "grep NFS /etc/rc.config* " ?

_- Johan.

_JB_
Vikas_18
Occasional Contributor

Re: Read-only NFS mount


Hi,

I am pasting output from NFS Server/client as asked.

The problem is that I am able to see NFS resource as READ-ONLY whereas I want it to be READ-WRITE.

Please help.

-Vikas


Contents of NFS Server's /etc/exports file:
===========================================

/backup/SYS1002_BCK/backup


Mount command output from NFS Client (sys1002)
=====================================
sys1001:/backup/SYS1002_BCK/backup on /SYS1001_SHARED type nfs (v3, rw, udp, hard, intr)

NFS SERVER CONFIGURATION
===========================
sys1001:/ # grep NFS /etc/rc.config*
/etc/rc.config.common:NFS_CONFIGURED="1"
/etc/rc.config.common:export NFS_CONFIGURED
/etc/rc.config.common:NFSSERVING="1"
/etc/rc.config.common:export NFSSERVING
/etc/rc.config.common:NFSLOCKING="1"
/etc/rc.config.common:export NFSLOCKING
/etc/rc.config.common:PCNFSD="0"
/etc/rc.config.common:export PCNFSD


NFS CLIENT CONFIGURATION
==============================
sys1002:/ # grep NFS /etc/rc.config*
/etc/rc.config.common:NFS_CONFIGURED="1"
/etc/rc.config.common:export NFS_CONFIGURED
/etc/rc.config.common:NUM_NFSIOD="7"
/etc/rc.config.common:export NUM_NFSIOD
/etc/rc.config.common:NFSLOCKING="1"
/etc/rc.config.common:export NFSLOCKING
Mic V.
Esteemed Contributor

Re: Read-only NFS mount

Is the filesystem *actually* mounted RO on the client system or does it just *look* RO on the client system? In my experience, the behavior you describe is related more to UNIX permissions than to mount options. However, I don't know what your server's default is for read/write--older servers defaulted to RW on an export; yours might be defaulting to RO.

Suggestions:
1. Make sure the server is explicitly exporting the filesystem read-write (edit the exports file and re-export it, then unmount/re-mount on client).
2. Make sure that UNIX permissions match. Newer NFS servers disallow root to have "see-all" privileges on a remotely mounted filesystem unless the export/mount options say to do it this way (see the option "root"). That's one issue. Another, if you're having non-root problems, is to see that the owner and owner's UID are the same on both systems (/etc/passwd, NIS, etc).

HTH,
Mic

What kind of a name is 'Wolverine'?
Johan Brusche
Honored Contributor

Re: Read-only NFS mount


I guess you were doing this as root, since you were running "sysman" as root.

If you do not specify the option "-root=0", in the line of /etc/exports, root on the client is reduced to "nobody" (UID=2), and thus will moost probably not be able to write from the client. (depending on the protection against "other" users )

__ Johan.

_JB_