Solved

cannot write to nfs mounted file system on netapp array

Posted on 2010-08-25
6
2,947 Views
Last Modified: 2013-12-21
cannot write to nfs file system root# chown oracle:dba prodbackup

chown: prodbackup: Not owner


root# ls -al prodbackup

drwxr-xr-x 3 root root 4096 Aug 25 15:40 .
drwxr-xr-x 52 root root 1536 Aug 25 15:29 ..
drwxrwxrwx 2 root root 4096 Aug 25 15:40 .snapshot


root# chmod 777 prodbackup
chmod: WARNING: can't change prodbackup

As root I cannot create a directory on this nfs netapp file system and I want to change the owner/group
Why can't I do this as root?

0
Comment
Question by:bkreynolds48
  • 3
  • 2
6 Comments
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 33524280
Hi,
This is called "root quashing"
Basically, if a user with ID 0 is accessing a share, this ID is converted to (usually) -2, to prevent remote root actions.
The share needs to be exported with the "no-root-quash" option.
Don't know whether this is possible with NetApp, however.

wmp
0
 
LVL 1

Author Comment

by:bkreynolds48
ID: 33524294
If it is possible on a netap how is that done?
0
 
LVL 9

Expert Comment

by:jeremycrussell
ID: 33524327
First comment is correct.

In your "exports" file set sec=sys and root=hostname or IP of machine (if you use hostname, you'll want to probably add a host entry to the NetApp.

You can do this through GUI as well I think...

So, you end up with an entry like below.

/vol/nameofvol -sec=sys,rw,root=host

Then you can just reload your exports file using exportfs.
0
Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

 
LVL 68

Accepted Solution

by:
woolmilkporc earned 500 total points
ID: 33524454
- Connect to NetApp web-interface
   
- Modify NFS exports:

    NFS -> Manage Exports
     Select the volume in question
     Enable: Read-Write Access, Root Access, Security

That should do the trick.

0
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 33524474
For security reasons you can configure additionally (also in NFS -> Manage Exports:

Root Hosts: 1111.1111.111.0/24 (host or subnet)

0
 
LVL 1

Author Closing Comment

by:bkreynolds48
ID: 33524501
Thanks so much - just started using netapp
0

Featured Post

Free eBook: Backup on AWS

Everything you need to know about backup and disaster recovery with AWS, for FREE!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question