mirror of
https://github.com/gluster/glusterd2.git
synced 2026-02-05 12:45:38 +01:00
* Added device info CLI command, which will list the devices if the Peer ID is passed or else it will list all devices in the cluster. ``` [root@dhcp43-209 build]# ./glustercli device info Peer Name: dhcp43-209.lab.eng.blr.redhat.com Peer ID: 335f3b47-cdc6-46ad-806e-6340f867c428 +----------+---------+------------+-----------+-----------+--------+ | DEVICE | STATE | TOTAL SIZE | FREE SIZE | USED SIZE | USED % | +----------+---------+------------+-----------+-----------+--------+ | /dev/vdb | enabled | 0.0 B | 0.0 B | 0.0 B | 0.00 | | /dev/vdc | enabled | 199.9 GiB | 129.1 GiB | 70.8 GiB | 35.41 | +----------+---------+------------+-----------+-----------+--------+ Peer Name: dhcp43-106.lab.eng.blr.redhat.com Peer ID: 7d0df840-698a-4604-acf0-457fe87e4641 +----------+---------+------------+-----------+-----------+--------+ | DEVICE | STATE | TOTAL SIZE | FREE SIZE | USED SIZE | USED % | +----------+---------+------------+-----------+-----------+--------+ | /dev/vdb | enabled | 199.9 GiB | 149.2 GiB | 50.7 GiB | 25.35 | +----------+---------+------------+-----------+-----------+--------+ Peer Name: dhcp42-71.lab.eng.blr.redhat.com Peer ID: e0567090-202a-429c-a13e-408a5f36e312 +----------+---------+------------+-----------+-----------+--------+ | DEVICE | STATE | TOTAL SIZE | FREE SIZE | USED SIZE | USED % | +----------+---------+------------+-----------+-----------+--------+ | /dev/vdb | enabled | 199.9 GiB | 149.2 GiB | 50.7 GiB | 25.35 | +----------+---------+------------+-----------+-----------+--------+ [root@dhcp43-209 build]# ./glustercli device info e0567090-202a-429c-a13e-408a5f36e312 Peer Name: dhcp42-71.lab.eng.blr.redhat.com Peer ID: e0567090-202a-429c-a13e-408a5f36e312 +----------+---------+------------+-----------+-----------+--------+ | DEVICE | STATE | TOTAL SIZE | FREE SIZE | USED SIZE | USED % | +----------+---------+------------+-----------+-----------+--------+ | /dev/vdb | enabled | 199.9 GiB | 149.2 GiB | 50.7 GiB | 25.35 | +----------+---------+------------+-----------+-----------+--------+ ``` Signed-off-by: Madhu Rajanna <mrajanna@redhat.com>