19
0
Fork 0

Ajouter méthode pour lister les clients d’un RBD

This commit is contained in:
abenmiloud 2020-10-21 09:54:54 +02:00
parent a77397cb75
commit 34d81c8420
1 changed files with 14 additions and 1 deletions

View File

@ -862,4 +862,17 @@ id=client.libvirt
ceph auth get "$id" | grep -e "$id" -e key > /etc/ceph/ceph."$id".keyring
~~~
Les infos seront dans `/etc/ceph/ceph.client.libvirt.keyring`.
Les infos seront dans `/etc/ceph/ceph.client.libvirt.keyring`.
## Quel client utilise ce RBD?
Depuis un nœud de cluster, on peut savoir quel client utilise un RBD avec la commande `rbd status`.
```
root@ceph-admin-node:~# rbdname=mypool/myrbd
root@ceph-admin-node:~# rbd status vm-root "${rbdname}"
Watchers:
watcher=x.y.z.t:0/2718281828 client.2718281 cookie=271828182845904
```
LIP du client est `x.y.z.t`.