Solved

cannot write to nfs mounted file system on netapp array

Posted on 2010-08-25
6
2,887 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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
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

[Webinar] Disaster Recovery and Cloud Management

Learn from Unigma and CloudBerry industry veterans which providers are best for certain use cases and how to lower cloud costs, how to grow your Managed Services practice in IaaS clouds, and how to utilize public cloud for Disaster Recovery

Question has a verified solution.

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

Have you ever stumbled upon a software that is so great that you just love? It happened to me. Love at first sight. Filezilla Server.   Ok its not the most advanced ftp server I've came across. But its a fairly simple piece of software to get the …
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

895 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now