1
0
mirror of https://github.com/gluster/glusterd2.git synced 2026-02-05 12:45:38 +01:00
Files
glusterd2/glustercli
Madhu Rajanna 18c0b006be Add device info cli command
* 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>
2018-12-18 11:07:13 +05:30
..
2018-12-18 11:07:13 +05:30
2018-08-08 12:38:17 +05:30