[ceph-users] Re: How to determine if a filesystem is allow_standby_replay = true

2022-10-20 Thread Dhairya Parmar
Hi Wesley,

It's 17.0.0-14319-ga686eb80799 (a686eb80799dc503a45002f4b9181f4573e8e0b3)
quincy (dev)

On Fri, Oct 21, 2022 at 3:29 AM Wesley Dillingham 
wrote:

> Thanks Dhairya, what version are you using? I am 16.2.10
>
> [root@alma3-4 ~]# ceph fs dump | grep -i replay
> dumped fsmap epoch 90
> [mds.alma3-6{0:10340349} state up:standby-replay seq 1 addr [v2:
> 10.0.24.6:6803/937383171,v1:10.0.24.6:6818/937383171] compat
> {c=[1],r=[1],i=[7ff]}]
>
> as you can see i have a MDS in replay mode and standby replay is enabled
> but my output is different from yours.
>
> Respectfully,
>
> *Wes Dillingham*
> w...@wesdillingham.com
> LinkedIn 
>
>
> On Thu, Oct 20, 2022 at 2:43 PM Dhairya Parmar  wrote:
>
>> Hi Wesley,
>>
>> You can find if the `allow_standby_replay` is turned on or off by looking
>> at the fs dump,
>> run `ceph fs dump | grep allow_standby_replay` and if it is turned on you
>> will find something like:
>>
>> $ ./bin/ceph fs dump | grep allow_standby_replay
>> *** DEVELOPER MODE: setting PATH, PYTHONPATH and LD_LIBRARY_PATH ***
>> 2022-10-21T00:06:14.656+0530 7fbed4fc3640 -1 WARNING: all dangerous and
>> experimental features are enabled.
>> 2022-10-21T00:06:14.663+0530 7fbed4fc3640 -1 WARNING: all dangerous and
>> experimental features are enabled.
>> dumped fsmap epoch 8
>> flags 32 joinable allow_snaps allow_multimds_snaps *allow_standby_replay*
>>
>> turn it to false and it will be gone:
>>
>> $ ./bin/ceph fs set a allow_standby_replay false
>> *** DEVELOPER MODE: setting PATH, PYTHONPATH and LD_LIBRARY_PATH ***
>> 2022-10-21T00:10:38.668+0530 7f68b66f0640 -1 WARNING: all dangerous and
>> experimental features are enabled.
>> 2022-10-21T00:10:38.675+0530 7f68b66f0640 -1 WARNING: all dangerous and
>> experimental features are enabled.
>> $ ./bin/ceph fs dump | grep allow_standby_replay
>> *** DEVELOPER MODE: setting PATH, PYTHONPATH and LD_LIBRARY_PATH ***
>> 2022-10-21T00:10:43.938+0530 7fe6b3e7a640 -1 WARNING: all dangerous and
>> experimental features are enabled.
>> 2022-10-21T00:10:43.945+0530 7fe6b3e7a640 -1 WARNING: all dangerous and
>> experimental features are enabled.
>> dumped fsmap epoch 15
>>
>> Hope it helps.
>>
>>
>> On Thu, Oct 20, 2022 at 11:09 PM Wesley Dillingham 
>> wrote:
>>
>>> I am building some automation for version upgrades of MDS and part of the
>>> process I would like to determine if a filesystem has
>>> allow_standby_replay
>>> set to true and if so then disable it. Granted I could just issue: "ceph
>>> fs
>>> set MyFS allow_standby_replay false" and be done with it but Its got me
>>> curious that there is not the equivalent command: "ceph fs get MyFS
>>> allow_standby_replay" to check this information. So where can an operator
>>> determine this?
>>>
>>> I tried a diff of "ceph fs get MyFS" with this configurable in both true
>>> and false and found:
>>>
>>> diff /tmp/true /tmp/false
>>> 3,4c3,4
>>> < epoch 66
>>> < flags 32
>>> ---
>>> > epoch 67
>>> > flags 12
>>>
>>> and Im guessing this information is encoded  in the "flags" field. I am
>>> working with 16.2.10. Thanks.
>>>
>>> Respectfully,
>>>
>>> *Wes Dillingham*
>>> w...@wesdillingham.com
>>> LinkedIn 
>>> ___
>>> ceph-users mailing list -- ceph-users@ceph.io
>>> To unsubscribe send an email to ceph-users-le...@ceph.io
>>>
>>>
>>
>> --
>> *Dhairya Parmar*
>>
>> He/Him/His
>>
>> Associate Software Engineer, CephFS
>>
>> Red Hat Inc. 
>>
>> dpar...@redhat.com
>> 
>>
>

-- 
*Dhairya Parmar*

He/Him/His

Associate Software Engineer, CephFS

Red Hat Inc. 

dpar...@redhat.com

___
ceph-users mailing list -- ceph-users@ceph.io
To unsubscribe send an email to ceph-users-le...@ceph.io


[ceph-users] Re: How to determine if a filesystem is allow_standby_replay = true

2022-10-20 Thread Xiubo Li

Hi Wesley,

You can also just run:

$ ceph fs get MyFS|grep flags
flags    32 joinable allow_snaps allow_multimds_snaps allow_standby_replay

And if you can see "allow_standby_replay" flag as above that means it's 
enabled, or disabled already.


- Xiubo


On 21/10/2022 05:58, Wesley Dillingham wrote:

Thanks Dhairya, what version are you using? I am 16.2.10

[root@alma3-4 ~]# ceph fs dump | grep -i replay
dumped fsmap epoch 90
[mds.alma3-6{0:10340349} state up:standby-replay seq 1 addr [v2:
10.0.24.6:6803/937383171,v1:10.0.24.6:6818/937383171] compat
{c=[1],r=[1],i=[7ff]}]

as you can see i have a MDS in replay mode and standby replay is enabled
but my output is different from yours.

Respectfully,

*Wes Dillingham*
w...@wesdillingham.com
LinkedIn 


On Thu, Oct 20, 2022 at 2:43 PM Dhairya Parmar  wrote:


Hi Wesley,

You can find if the `allow_standby_replay` is turned on or off by looking
at the fs dump,
run `ceph fs dump | grep allow_standby_replay` and if it is turned on you
will find something like:

$ ./bin/ceph fs dump | grep allow_standby_replay
*** DEVELOPER MODE: setting PATH, PYTHONPATH and LD_LIBRARY_PATH ***
2022-10-21T00:06:14.656+0530 7fbed4fc3640 -1 WARNING: all dangerous and
experimental features are enabled.
2022-10-21T00:06:14.663+0530 7fbed4fc3640 -1 WARNING: all dangerous and
experimental features are enabled.
dumped fsmap epoch 8
flags 32 joinable allow_snaps allow_multimds_snaps *allow_standby_replay*

turn it to false and it will be gone:

$ ./bin/ceph fs set a allow_standby_replay false
*** DEVELOPER MODE: setting PATH, PYTHONPATH and LD_LIBRARY_PATH ***
2022-10-21T00:10:38.668+0530 7f68b66f0640 -1 WARNING: all dangerous and
experimental features are enabled.
2022-10-21T00:10:38.675+0530 7f68b66f0640 -1 WARNING: all dangerous and
experimental features are enabled.
$ ./bin/ceph fs dump | grep allow_standby_replay
*** DEVELOPER MODE: setting PATH, PYTHONPATH and LD_LIBRARY_PATH ***
2022-10-21T00:10:43.938+0530 7fe6b3e7a640 -1 WARNING: all dangerous and
experimental features are enabled.
2022-10-21T00:10:43.945+0530 7fe6b3e7a640 -1 WARNING: all dangerous and
experimental features are enabled.
dumped fsmap epoch 15

Hope it helps.


On Thu, Oct 20, 2022 at 11:09 PM Wesley Dillingham 
wrote:


I am building some automation for version upgrades of MDS and part of the
process I would like to determine if a filesystem has allow_standby_replay
set to true and if so then disable it. Granted I could just issue: "ceph
fs
set MyFS allow_standby_replay false" and be done with it but Its got me
curious that there is not the equivalent command: "ceph fs get MyFS
allow_standby_replay" to check this information. So where can an operator
determine this?

I tried a diff of "ceph fs get MyFS" with this configurable in both true
and false and found:

diff /tmp/true /tmp/false
3,4c3,4
< epoch 66
< flags 32
---

epoch 67
flags 12

and Im guessing this information is encoded  in the "flags" field. I am
working with 16.2.10. Thanks.

Respectfully,

*Wes Dillingham*
w...@wesdillingham.com
LinkedIn 
___
ceph-users mailing list -- ceph-users@ceph.io
To unsubscribe send an email to ceph-users-le...@ceph.io



--
*Dhairya Parmar*

He/Him/His

Associate Software Engineer, CephFS

Red Hat Inc. 

dpar...@redhat.com



___
ceph-users mailing list -- ceph-users@ceph.io
To unsubscribe send an email to ceph-users-le...@ceph.io



___
ceph-users mailing list -- ceph-users@ceph.io
To unsubscribe send an email to ceph-users-le...@ceph.io


[ceph-users] Re: How to determine if a filesystem is allow_standby_replay = true

2022-10-20 Thread Wesley Dillingham
Thanks Dhairya, what version are you using? I am 16.2.10

[root@alma3-4 ~]# ceph fs dump | grep -i replay
dumped fsmap epoch 90
[mds.alma3-6{0:10340349} state up:standby-replay seq 1 addr [v2:
10.0.24.6:6803/937383171,v1:10.0.24.6:6818/937383171] compat
{c=[1],r=[1],i=[7ff]}]

as you can see i have a MDS in replay mode and standby replay is enabled
but my output is different from yours.

Respectfully,

*Wes Dillingham*
w...@wesdillingham.com
LinkedIn 


On Thu, Oct 20, 2022 at 2:43 PM Dhairya Parmar  wrote:

> Hi Wesley,
>
> You can find if the `allow_standby_replay` is turned on or off by looking
> at the fs dump,
> run `ceph fs dump | grep allow_standby_replay` and if it is turned on you
> will find something like:
>
> $ ./bin/ceph fs dump | grep allow_standby_replay
> *** DEVELOPER MODE: setting PATH, PYTHONPATH and LD_LIBRARY_PATH ***
> 2022-10-21T00:06:14.656+0530 7fbed4fc3640 -1 WARNING: all dangerous and
> experimental features are enabled.
> 2022-10-21T00:06:14.663+0530 7fbed4fc3640 -1 WARNING: all dangerous and
> experimental features are enabled.
> dumped fsmap epoch 8
> flags 32 joinable allow_snaps allow_multimds_snaps *allow_standby_replay*
>
> turn it to false and it will be gone:
>
> $ ./bin/ceph fs set a allow_standby_replay false
> *** DEVELOPER MODE: setting PATH, PYTHONPATH and LD_LIBRARY_PATH ***
> 2022-10-21T00:10:38.668+0530 7f68b66f0640 -1 WARNING: all dangerous and
> experimental features are enabled.
> 2022-10-21T00:10:38.675+0530 7f68b66f0640 -1 WARNING: all dangerous and
> experimental features are enabled.
> $ ./bin/ceph fs dump | grep allow_standby_replay
> *** DEVELOPER MODE: setting PATH, PYTHONPATH and LD_LIBRARY_PATH ***
> 2022-10-21T00:10:43.938+0530 7fe6b3e7a640 -1 WARNING: all dangerous and
> experimental features are enabled.
> 2022-10-21T00:10:43.945+0530 7fe6b3e7a640 -1 WARNING: all dangerous and
> experimental features are enabled.
> dumped fsmap epoch 15
>
> Hope it helps.
>
>
> On Thu, Oct 20, 2022 at 11:09 PM Wesley Dillingham 
> wrote:
>
>> I am building some automation for version upgrades of MDS and part of the
>> process I would like to determine if a filesystem has allow_standby_replay
>> set to true and if so then disable it. Granted I could just issue: "ceph
>> fs
>> set MyFS allow_standby_replay false" and be done with it but Its got me
>> curious that there is not the equivalent command: "ceph fs get MyFS
>> allow_standby_replay" to check this information. So where can an operator
>> determine this?
>>
>> I tried a diff of "ceph fs get MyFS" with this configurable in both true
>> and false and found:
>>
>> diff /tmp/true /tmp/false
>> 3,4c3,4
>> < epoch 66
>> < flags 32
>> ---
>> > epoch 67
>> > flags 12
>>
>> and Im guessing this information is encoded  in the "flags" field. I am
>> working with 16.2.10. Thanks.
>>
>> Respectfully,
>>
>> *Wes Dillingham*
>> w...@wesdillingham.com
>> LinkedIn 
>> ___
>> ceph-users mailing list -- ceph-users@ceph.io
>> To unsubscribe send an email to ceph-users-le...@ceph.io
>>
>>
>
> --
> *Dhairya Parmar*
>
> He/Him/His
>
> Associate Software Engineer, CephFS
>
> Red Hat Inc. 
>
> dpar...@redhat.com
> 
>
___
ceph-users mailing list -- ceph-users@ceph.io
To unsubscribe send an email to ceph-users-le...@ceph.io


[ceph-users] Re: How to determine if a filesystem is allow_standby_replay = true

2022-10-20 Thread Dhairya Parmar
Hi Wesley,

You can find if the `allow_standby_replay` is turned on or off by looking
at the fs dump,
run `ceph fs dump | grep allow_standby_replay` and if it is turned on you
will find something like:

$ ./bin/ceph fs dump | grep allow_standby_replay
*** DEVELOPER MODE: setting PATH, PYTHONPATH and LD_LIBRARY_PATH ***
2022-10-21T00:06:14.656+0530 7fbed4fc3640 -1 WARNING: all dangerous and
experimental features are enabled.
2022-10-21T00:06:14.663+0530 7fbed4fc3640 -1 WARNING: all dangerous and
experimental features are enabled.
dumped fsmap epoch 8
flags 32 joinable allow_snaps allow_multimds_snaps *allow_standby_replay*

turn it to false and it will be gone:

$ ./bin/ceph fs set a allow_standby_replay false
*** DEVELOPER MODE: setting PATH, PYTHONPATH and LD_LIBRARY_PATH ***
2022-10-21T00:10:38.668+0530 7f68b66f0640 -1 WARNING: all dangerous and
experimental features are enabled.
2022-10-21T00:10:38.675+0530 7f68b66f0640 -1 WARNING: all dangerous and
experimental features are enabled.
$ ./bin/ceph fs dump | grep allow_standby_replay
*** DEVELOPER MODE: setting PATH, PYTHONPATH and LD_LIBRARY_PATH ***
2022-10-21T00:10:43.938+0530 7fe6b3e7a640 -1 WARNING: all dangerous and
experimental features are enabled.
2022-10-21T00:10:43.945+0530 7fe6b3e7a640 -1 WARNING: all dangerous and
experimental features are enabled.
dumped fsmap epoch 15

Hope it helps.


On Thu, Oct 20, 2022 at 11:09 PM Wesley Dillingham 
wrote:

> I am building some automation for version upgrades of MDS and part of the
> process I would like to determine if a filesystem has allow_standby_replay
> set to true and if so then disable it. Granted I could just issue: "ceph fs
> set MyFS allow_standby_replay false" and be done with it but Its got me
> curious that there is not the equivalent command: "ceph fs get MyFS
> allow_standby_replay" to check this information. So where can an operator
> determine this?
>
> I tried a diff of "ceph fs get MyFS" with this configurable in both true
> and false and found:
>
> diff /tmp/true /tmp/false
> 3,4c3,4
> < epoch 66
> < flags 32
> ---
> > epoch 67
> > flags 12
>
> and Im guessing this information is encoded  in the "flags" field. I am
> working with 16.2.10. Thanks.
>
> Respectfully,
>
> *Wes Dillingham*
> w...@wesdillingham.com
> LinkedIn 
> ___
> ceph-users mailing list -- ceph-users@ceph.io
> To unsubscribe send an email to ceph-users-le...@ceph.io
>
>

-- 
*Dhairya Parmar*

He/Him/His

Associate Software Engineer, CephFS

Red Hat Inc. 

dpar...@redhat.com

___
ceph-users mailing list -- ceph-users@ceph.io
To unsubscribe send an email to ceph-users-le...@ceph.io