UnixFan
15 years agoLevel 3
df: cannot statvfs Permission denied on cluster file system
Hi ,
Does any one got any idea why I am getting the permission denied error when I do the df -k on a 3 node cluster with a shared Cluster file systems (CVM)
I can do the df -k on the master server as a normal user ,however ,I can get the df -k on other two nodes ,
[abcadmin@sol100]: /> sudo vxdctl -c mode
mode: enabled: cluster active - MASTER
master: sol100
[abcadmin@sol100]: /> df -kh
Filesystem size used avail capacity Mounted on
/dev/md/dsk/d0 15G 8.4G 6.3G 58% /
/devices 0K 0K 0K 0% /devices
/dev/odm 0K 0K 0K 0% /dev/odm
/dev/vx/dsk/shareddg/sharedvol
93G 14G 74G 16% /opt/fwire/Shared ---- this is the shared cluster file system works fine on master server with the df -k as normal user
[abcadmin@sol300]: ~> sudo vxdctl -c mode
mode: enabled: cluster active - SLAVE
master: sol100
[abcadmin@sol300]: ~> df -kh
Filesystem size used avail capacity Mounted on
/dev/md/dsk/d0 14G 4.1G 10G 29% /
/dev/odm 0K 0K 0K 0% /dev/odm
df: cannot statvfs /opt/fwire/Shared: Permission denied --- shared file systems get permission denied when I try with normal user ,I can get this if I do a sudo or root.
all three servers got same permission for the mount points ...
Really appreciate if any one can show som lights on this , I just wanted this for a monitoring script to run as a normal user than root ..
Thanks in advance ..