Hi, I am not sure about cephadm but if you were to use the ceph-dashboard, in its host creation form you can enter a pattern like ceph[01-19] should add ceph01...ceph19. Regards, Nizam On Fri, Jan 27, 2023, 23:52 E Taka <0etaka0@xxxxxxxxx> wrote: > Thanks, Ulrich, but: > > # ceph orch host ls --host_pattern="^ceph(0[1-9])|(1[0-9])$" > 0 hosts in cluster whose hostname matched "^ceph(0[1-9])|(1[0-9])$" > > Bash pattern are not accepted. (I tried it in numerous other combinations). > But, as I said, not really a problem - just wondering what the regex might > be. > > Am Fr., 27. Jan. 2023 um 19:09 Uhr schrieb Ulrich Klein < > Ulrich.Klein@xxxxxxxxxxxxxx>: > > > I use something like "^ceph(0[1-9])|(1[0-9])$", but in a script that > > checks a parameter for a "correct" ceph node name like in: > > > > wantNum=$1 > > if [[ $wantNum =~ ^ceph(0[2-9]|1[0-9])$ ]] ; then > > wantNum=${BASH_REMATCH[1]} > > > > Which gives me the number, if it is in the range 02-19 > > > > Dunno, if that helps :) > > > > Ciao, Uli > > > > > On 27. Jan 2023, at 18:17, E Taka <0etaka0@xxxxxxxxx> wrote: > > > > > > Hi, > > > > > > I wonder if it is possible to define a host pattern, which includes the > > > host names > > > ceph01…ceph19, but no other hosts, especially not ceph00. That means, > > this > > > pattern is wrong: ceph[01][0-9] , since it includes ceph00. > > > > > > Not really a problem, but it seems that the "“host-pattern” is a regex > > that > > > matches against hostnames and returns only matching hosts"¹ is not > > defined > > > more precisely in the docs. > > > > > > 1) https://docs.ceph.com/en/latest/cephadm/host-management/ > > > _______________________________________________ > > > ceph-users mailing list -- ceph-users@xxxxxxx > > > To unsubscribe send an email to ceph-users-leave@xxxxxxx > > > > > _______________________________________________ > ceph-users mailing list -- ceph-users@xxxxxxx > To unsubscribe send an email to ceph-users-leave@xxxxxxx > _______________________________________________ ceph-users mailing list -- ceph-users@xxxxxxx To unsubscribe send an email to ceph-users-leave@xxxxxxx