Oops, sorry Dan, I would like to send my message to the list. Sorry. > On Mon, Nov 9, 2015 at 11:55 AM, Francois Lafont >> >> 1. Ok, so, the rank of my monitors are 0, 1, 2 but the its ID are 1, 2, 3 >> (ID chosen by himself because the hosts are called ceph01, ceph02 and >> ceph03 and these ID seemed to me a good idea). Is it correct ? >> >> 2. And, if I understand well, with this command `ceph tell mon.$thing version` >> $thing is in fact the rank of the monitor, correct? >> >> 3. But with `ceph tell osd.$thing version`, $thing is the ID of the osd, correct? >> >> 4. Why not. But in this case, why with the command `ceph tell mon.* version`, >> "*" is expanded to the ID of my monitors (ie 1, 2, 3) and not to the ranks ? >> It seems to me not logical? Am I wrong? >> >> But Dan, in your case (monitors have the ID `hostname -s`), the command >> `ceph tell mon.* version` doesn't work at all, no? Because "*" is expanded >> to `hostname -s` which doesn't match any rank value, no? >> >> Sorry for all these questions, I understand the difference between ID >> and rank for monitors, but currently I don't understand: >> >> - which is $thing (rank or ID?) in the command `ceph tell mon.$thing version`? >> - in what "*" is expanded (ranks or IDs?) in the command `ceph tell mon.* version`? >> > > Here's the behaviour on hammer. I don't know if this changed in infernalis: > > # ceph mon dump > ... > 0: 128.142.xxx:6790/0 mon.p01001532077xxx > 1: 128.142.yyy:6790/0 mon.p01001532149yyy > 2: 128.142.zzz:6790/0 mon.p01001532184zzz > > > # ceph tell mon.* version > mon.p01001532077xxx: ceph version 0.94.5 > (9764da52395923e0b32908d83a9f7304401fee43) > mon.p01001532149yyy: ceph version 0.94.5 > (9764da52395923e0b32908d83a9f7304401fee43) > mon.p01001532184zzz: ceph version 0.94.5 > (9764da52395923e0b32908d83a9f7304401fee43) > > So, mon.* resolves to the IDs. You can tell directly to the IDs: > > # ceph tell mon.p01001532077xxx version > ceph version 0.94.5 (9764da52395923e0b32908d83a9f7304401fee43) > # ceph tell mon.p01001532149yyy version > ceph version 0.94.5 (9764da52395923e0b32908d83a9f7304401fee43) > # ceph tell mon.p01001532184zzz version > ceph version 0.94.5 (9764da52395923e0b32908d83a9f7304401fee43) > > And you can also tell directly to the ranks: > > # ceph tell mon.0 version > ceph version 0.94.5 (9764da52395923e0b32908d83a9f7304401fee43) > # ceph tell mon.1 version > ceph version 0.94.5 (9764da52395923e0b32908d83a9f7304401fee43) > # ceph tell mon.2 version > ceph version 0.94.5 (9764da52395923e0b32908d83a9f7304401fee43) Ok, thanks Dan for your answer. If understand well: 1. with `ceph tell mon.* version`, "*" are expanded to the IDs of monitors. 2. But with `ceph tell mon.$thing version`, if $thing is a interger, $thing is interpreted as a rank not as an ID, and if not $thing is interpreted as an ID. Is it correct? If yes, by conclusion : for the monitor ID, it's better to chose an ID which is not an integer (even if it's not very dramatic). -- François Lafont _______________________________________________ ceph-users mailing list ceph-users@xxxxxxxxxxxxxx http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com