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/
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@gmail.com> 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@ceph.io To unsubscribe send an email to ceph-users-leave@ceph.io
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@ulrichklein.de>:
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@gmail.com> 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@ceph.io To unsubscribe send an email to ceph-users-leave@ceph.io
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@gmail.com> 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@ulrichklein.de>:
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@gmail.com> 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@ceph.io To unsubscribe send an email to ceph-users-leave@ceph.io
_______________________________________________ ceph-users mailing list -- ceph-users@ceph.io To unsubscribe send an email to ceph-users-leave@ceph.io
Everybody has apparatuses at home and some of the time they breakdown. I prescribe you to https://serviceservotech.com/appliance-repair/ utilize a help that can rapidly and proficiently fix them so you don't need to purchase another one. I have been to this help oftentimes previously and they have consistently given me quality assistance.
participants (4)
-
E Taka
-
mored1948@jourrapide.com
-
Nizamudeen A
-
Ulrich Klein