[ceph-users] Re: Edit crush rule

2021-10-08 Thread ceph-users
Excellent - thank you!


From: Konstantin Shalygin 'k0ste at k0ste.ru' 

Sent: 07 October 2021 10:10
To: ceph-us...@hovr.anonaddy.com 
Subject: Re: [ceph-users] Edit crush rule

Hi,

On 7 Oct 2021, at 11:03, 
ceph-us...@hovr.anonaddy.com wrote:

Following on this, are there any restriction or issues with setting a new rule 
on a pool, except for the resulting backfilling?

Nope


I can't see anything specific about it in the documentation, just the command 
ceph osd pool set {pool-name} crush_rule with the description


crush_rule

Description

The rule to use for mapping object placement in the cluster.

Type

String

Does it work equally (well) for replicated and ec, changing m/k values, etc?

For EC changing crush rule is not trival - you can't change EC profile after 
pool deployment. For replicated pool - in any time



k




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


[ceph-users] Re: Edit crush rule

2021-10-07 Thread ceph-users
Hi,

Following on this, are there any restriction or issues with setting a new rule 
on a pool, except for the resulting backfilling?

I can't see anything specific about it in the documentation, just the command 
ceph osd pool set {pool-name} crush_rule with the description


crush_rule

Description

The rule to use for mapping object placement in the cluster.

Type

String

Does it work equally (well) for replicated and ec, changing m/k values, etc?

Many thanks!


From: Konstantin Shalygin 'k0ste at k0ste.ru' 
<7ba335c6-fb20-4041-8c18-1b00efb7824c+k0ste=k0ste...@anonaddy.me>
Sent: 08 September 2021 17:35
To: 7ba335c6-fb20-4041-8c18-1b00efb78...@anonaddy.me 
<7ba335c6-fb20-4041-8c18-1b00efb78...@anonaddy.me>
Subject: [ceph-users] Re: Edit crush rule

Just create new one with your failure domain and switch the pool rule. Then 
delete old rule


k

Sent from my iPhone

> On 8 Sep 2021, at 01:11, Budai Laszlo  wrote:
>
> Thank you for your answers. Yes, I'm aware of this option, but this is not 
> changing the failure domain of an existing rule. I was wondering whether the 
> CLI would permit that change. It looks like it doesn't.

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



-

This email was sent to 7ba335c6-fb20-4041-8c18-1b00efb78...@anonaddy.me (ceph 
user) from k0...@k0ste.ru and has been forwarded by AnonAddy.
To deactivate this alias copy and paste the url below into your web browser.

https://app.anonaddy.com/deactivate/7ba335c6-fb20-4041-8c18-1b00efb7824c?signature=bac13a3b3016883e2bb0736418346fb1fed5f22615ec0c87dfe8d8f903e4eb3d


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


[ceph-users] Re: Edit crush rule

2021-10-07 Thread Konstantin Shalygin
Hi,

> On 7 Oct 2021, at 11:03, ceph-us...@hovr.anonaddy.com wrote:
> 
> Following on this, are there any restriction or issues with setting a new 
> rule on a pool, except for the resulting backfilling?

Nope

> 
> I can't see anything specific about it in the documentation, just the command 
> ceph osd pool set {pool-name} crush_rule with the description
> 
> 
> crush_rule
> 
> Description
> 
> The rule to use for mapping object placement in the cluster.
> 
> Type
> 
> String
> 
> Does it work equally (well) for replicated and ec, changing m/k values, etc?

For EC changing crush rule is not trival - you can't change EC profile after 
pool deployment. For replicated pool - in any time



k


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


[ceph-users] Re: Edit crush rule

2021-09-08 Thread Konstantin Shalygin
Just create new one with your failure domain and switch the pool rule. Then 
delete old rule


k

Sent from my iPhone

> On 8 Sep 2021, at 01:11, Budai Laszlo  wrote:
> 
> Thank you for your answers. Yes, I'm aware of this option, but this is not 
> changing the failure domain of an existing rule. I was wondering whether the 
> CLI would permit that change. It looks like it doesn't.

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


[ceph-users] Re: Edit crush rule

2021-09-07 Thread Budai Laszlo
Hi Rich, Nathan,

Thank you for your answers. Yes, I'm aware of this option, but this is not 
changing the failure domain of an existing rule. I was wondering whether the 
CLI would permit that change. It looks like it doesn't.

Thanks again for your time!
Laszlo

On 9/8/21 12:42 AM, Richard Bade wrote:
> Hi Budai,
> I agree with Nathan, just switch the crush rule. I've recently done
> this on one of our clusters.
> Create a new crush rule the same as your old one except with different
> failure domain.
> Then use: ceph osd pool set {pool_name} crush_rule {new_rule_name}
> Very easy.
> This may kick off some backfill so I'd suggest setting norebalance
> before doing this.
>
> Rich
>
> On Wed, 8 Sept 2021 at 07:51, Nathan Fish  wrote:
>> I believe you would create a new rule and switch?
>>
>> On Tue, Sep 7, 2021 at 3:46 PM Budai Laszlo  wrote:
>>> Dear all,
>>>
>>> is there a way to change the failure domain of a CRUSH rule using the CLI?
>>>
>>> I know I can do that by editing the crush map. I'm curious if there is a 
>>> "CLI way"?
>>>
>>> Thank you,
>>> Laszlo
>>>
>>> ___
>>> 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 mailing list -- ceph-users@ceph.io
To unsubscribe send an email to ceph-users-le...@ceph.io


[ceph-users] Re: Edit crush rule

2021-09-07 Thread Richard Bade
Hi Budai,
I agree with Nathan, just switch the crush rule. I've recently done
this on one of our clusters.
Create a new crush rule the same as your old one except with different
failure domain.
Then use: ceph osd pool set {pool_name} crush_rule {new_rule_name}
Very easy.
This may kick off some backfill so I'd suggest setting norebalance
before doing this.

Rich

On Wed, 8 Sept 2021 at 07:51, Nathan Fish  wrote:
>
> I believe you would create a new rule and switch?
>
> On Tue, Sep 7, 2021 at 3:46 PM Budai Laszlo  wrote:
> >
> > Dear all,
> >
> > is there a way to change the failure domain of a CRUSH rule using the CLI?
> >
> > I know I can do that by editing the crush map. I'm curious if there is a 
> > "CLI way"?
> >
> > Thank you,
> > Laszlo
> >
> > ___
> > 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 mailing list -- ceph-users@ceph.io
To unsubscribe send an email to ceph-users-le...@ceph.io


[ceph-users] Re: Edit crush rule

2021-09-07 Thread Nathan Fish
I believe you would create a new rule and switch?

On Tue, Sep 7, 2021 at 3:46 PM Budai Laszlo  wrote:
>
> Dear all,
>
> is there a way to change the failure domain of a CRUSH rule using the CLI?
>
> I know I can do that by editing the crush map. I'm curious if there is a "CLI 
> way"?
>
> Thank you,
> Laszlo
>
> ___
> 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