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. Continue reading

Advertisements

How to force kill a VM and start it from the CLI in ESXi

Find the World ID of the VM

esxcli vm process list | grep -C5 $VMNAME

Force kill it

esxcli vm process kill --type force --world-id $WORLDID

Find the VMID

vim-cmd vmsvc/getallvms | grep $VMNAME

Power on

vim-cmd vmsvc/power.on $VMID

Check the power state of the VM

vim-cmd vmsvc/power.getstate $VMID