Network and Storage Protocols

Unable to edit files in /vol0 mounted as NFS

arthursc0
6,329 Views

Hi,

Banging my head against a wall here;

DOT 8.1.1

vol0 exported and my host added to exports file. qtree for volt set to unix.

#Auto-generated by setup Fri Aug 16 13:26:59 GMT 2013

/vol/vol0          -sec=sys,ro,root=192.168.178.34:192.168.178.201,nosuid

/vol/vol0/home          -sec=sys,rw,root=192.168.178.201,nosuid

Unable to edit files in etc even when mounted.

ls -l

drwxr-xr-x  30 20041  _keytabusers  4096 20 Nov 18:06 etc

drwxrwxrwt   3 root   wheel         4096 16 Aug 14:26 home

drwxr-xr-x   3 root   wheel         4096 16 Aug 14:27 sim

It should be as simple as add device IP to exports. Ensure volt has been set with device IP and given root access.

I cannot get any access, am I missing something.

Colin

8 REPLIES 8

aborzenkov
6,329 Views

What is security style of vol0? “qtree status” shows it.

arthursc0
6,329 Views

vol0 is unix by default and that is what it is.

qtree is unix

mount command was

mount 192.168.178.200:/vol/vol0 mnt

I can mount it all ok. browse and list. But I cannot write. even though the hosts IP is set as root in exports.

SRINI_VINNA
6,329 Views

Please follow below Rules while exporting.

Rules for exporting Resources

• Specify complete pathname, must begin with /vol prefix

• Cannot export /vol, which is not a pathname to a file, directory or volume

◦ Export each volume separately

• When export a resource to multiple targets, separate the target names with a

colon (:)

• Resolve hostnames using DNS, NIS or /etc/hosts per order in /etc/

nssswitch.conf

AGUMADAVALLI
6,329 Views

just do the showmount -e <filer Name>; you will see the permissions you have for that linux box.

thank you,

AK G

arthursc0
6,329 Views

Results of show mount -e

Exports list on 192.168.178.200:

/vol/vol0/home                      Everyone

/vol/vol0                           Everyone

AGUMADAVALLI
6,329 Views

Run the following commands:

rdfile /etc/exports

just edit your /etc/exports file to

/vol/vol0          -sec=sys,ro,root=192.168.178.34:192.168.178.201,rw=192.168.178.34:192.168.178.201:192.168.178.200,nosuid

/vol/vol0/home          -sec=sys,rw,root=192.168.178.201,nosuid

ctrl -c

exportfs -a

thank you

AK G

billshaffer
6,329 Views

Your export line shows ro - read-only.  Change it to rw or rw=<ip addresses>.

Bill

YEKYAWTHARMYINT
6,329 Views

#Auto-generated by setup Fri Aug 16 13:26:59 GMT 2013

/vol/vol0          -sec=sys,ro,root=192.168.178.34:192.168.178.201,nosuid

/vol/vol0/home          -sec=sys,rw,root=192.168.178.201,nosuid

your vol0 is exported as ro (read-only) change to rw=<host_name_or_ip-address>. you can check with the persmission with the command exportfs -c ip_address path

Ye

Public