Unable to change ownership of NFS mount

I am unable to change the ownership of a filesystem which an NFS mount. There is no error on the screen or in the logs.

# chown app_user /data/mountpoint
# ls -ld /data/mountpoint
drwxrwxr-x 6 nobody app_group 8192 Apr 25  2015 /data/mountpoint

The volume has been mounted with NFS4.

# mount | grep mountpoint
NAS_Server:/vol/example on /data/mountpoint type nfs (rw,nolock,vers=4,addr=IP_ADDR,clientaddr=IP_ADDR)

The NFS client in RHEL 6 defaults to NFS4 if the server supports it. If not, it will fall back to NFS3. As this is not meant to be an NFS4 mount, I remount the volume with NFS3.

# mount |grep mountpoint
NAS_Server:/vol/example on /data/mountpoint type nfs (rw,vers=3,nolock,addr=IP_ADDR)

I can change the ownership now.

# chown app_user /data/mountpoint
# ls -ld /data/mountpoint
drwxrwxr-x 6 app_user app_group 8192 Apr 25  2015 /data/mountpoint

This is a VCS mounted NFS volume. I change MountOpt attribute in VCS Configuration.

/etc/VRTSvcs/conf/config/main.cf:

 Mount nas_mount_example(
                MountOpt = "vers=3,nolock"
                MntPtOwner = app_user
                FsckOpt = "-y"
                MntPtGroup = app_group
                BlockDevice = "NAS_Server:/vol/example"
                MountPoint = "/data/mountpoint"
                FSType = nfs
                )
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s