currently 'volume status' gives out, pid/online details, enhance it to print the available free space of the bricks too. handling is simple. in COMMIT_OP send the 'statfs()' output on the brick with dictionary.
CHANGE: http://review.gluster.com/2560 (lib/mount-broker: move utility functions to common-utils) merged in master by Vijay Bellur (vijay)
CHANGE: http://review.gluster.com/777 (cli: volume status enhancement) merged in master by Vijay Bellur (vijay)
CHANGE: http://review.gluster.com/2680 (glusterd: fix transpose of memset arguments) merged in master by Vijay Bellur (vijay)
CHANGE: http://review.gluster.com/2989 (cli: Display available information in "volume status detail") merged in master by Vijay Bellur (vijay)
Didnt find the required free disk space output.Marking it ON_DEV. [root@dhcp201-121 ~]# gluster volume status Status of volume: test1 Gluster process Port Online Pid ------------------------------------------------------------------------------ Brick dhcp201-171.englab.pnq.redhat.com:/vol/test1 24009 Y 4385 Brick dhcp201-147.englab.pnq.redhat.com:/vol/test1 24009 Y 4257 NFS Server on localhost 38467 Y 4481 NFS Server on dhcp201-171.englab.pnq.redhat.com 38467 Y 4391 NFS Server on dhcp201-147.englab.pnq.redhat.com 38467 Y 4263 [root@dhcp201-121 ~]# rpm -qa|grep gluster glusterfs-fuse-3.3.0qa45-1.el6.x86_64 glusterfs-rdma-3.3.0qa45-1.el6.x86_64 glusterfs-devel-3.3.0qa45-1.el6.x86_64 glusterfs-3.3.0qa45-1.el6.x86_64 glusterfs-geo-replication-3.3.0qa45-1.el6.x86_64 glusterfs-server-3.3.0qa45-1.el6.x86_64 glusterfs-debuginfo-3.3.0qa45-1.el6.x86_64
pushpesh, the command syntax for this is: gluster volume status <[VOLNAME]|all> [detail|mem|fd....]. Please find it in status help. to get free space and other details, one should give detail as the last parameter
rajesh, I missed the comment#2.It is working fine:- [root@dhcp201-121 ~]# gluster volume status test1 detail Status of volume: test1 ------------------------------------------------------------------------------ Brick : Brick dhcp201-171.englab.pnq.redhat.com:/vol/test1 Port : 24009 Online : Y Pid : 4385 File System : ext4 Device : /dev/mapper/vg_dhcp201171-lv_root Mount Options : rw Inode Size : 256 Disk Space Free : 9.2GB Total Disk Space : 10.4GB Inode Count : 693600 Free Inodes : 664135 My apologies. Marking it as verified.