From: Wido den Hollander <wido@42on.com>
To: Sebastien Han <sebastien.han@enovance.com>,
Sage Weil <sage@newdream.net>
Cc: Yehuda Sadeh <yehuda@redhat.com>,
"ceph-devel@vger.kernel.org" <ceph-devel@vger.kernel.org>
Subject: Re: 'Immutable bit' on pools to prevent deletion
Date: Fri, 16 Jan 2015 11:55:55 +0100 [thread overview]
Message-ID: <54B8EE3B.70506@42on.com> (raw)
In-Reply-To: <101AEAEE-F428-4425-87CE-A20B3030FF55@enovance.com>
On 01/16/2015 10:50 AM, Sebastien Han wrote:
> Hum if I understand correctly you’re all more in favour of a conf setting in the ceph.conf;
> The problem for me is that this will apply to all the pools by default and I’ll have to inject an arg to change this.
> Injecting the arg will remove this “lock" and then all of the sudden all the pools become deletable through the lib again (who knows what users can do simultaneously)
>
No, from what I understand it's easier to implement, not the better way.
> I’m more in favour of a new flag to set to the pool, something like:
>
> ceph osd pool set foo protect true
> ceph osd pool delete foo foo —yes….
> ERROR: pool foo is protected against deletion
>
> ceph osd pool delete foo protect false
> ceph osd pool delete foo foo —yes….
> Pool successfully deleted
>
Something like that per pool seems better to me as well. But I'd then
opt for a 'feature' which can be set on a pool.
ceph osd pool set foo nodelete
ceph osd pool set foo nopgchange
ceph osd pool set foo nosizechange
> The good thing with that is that owners of the pool (or admin), will be able to set this flag or remove it.
> We stick with the "ceph osd pool delete foo foo —yes….” command as well, so we don’t change too much things.
>
> Moreover we can also make use of a config option to protect all new created pools by default:
>
> mon protect pool default = true
>
> This automatically set the protected flag to a new pool.
>
> What do you think?
>
Setting a nodelete flag or something like that by default is fine with
me. Like Sage mentioned earlier, almost nobody will have ephemeral pools
in their cluster. You don't want to loose data because you accidentally
removed a pool.
Wido
>> On 15 Jan 2015, at 18:24, Sage Weil <sage@newdream.net> wrote:
>>
>> Then secondary question is whether the cluster should implicitly clear the
>> allow-delete after some time period (maybe 'pending-delete' would make
>> more sense in that case), or whether we deny IO during that period. Seems
>> perhaps too complicated.
>
>
> Cheers.
> ––––
> Sébastien Han
> Cloud Architect
>
> "Always give 100%. Unless you're giving blood."
>
> Phone: +33 (0)1 49 70 99 72
> Mail: sebastien.han@enovance.com
> Address : 11 bis, rue Roquépine - 75008 Paris
> Web : www.enovance.com - Twitter : @enovance
>
--
Wido den Hollander
42on B.V.
Ceph trainer and consultant
Phone: +31 (0)20 700 9902
Skype: contact42on
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2015-01-16 10:55 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-15 14:46 'Immutable bit' on pools to prevent deletion Wido den Hollander
2015-01-15 15:39 ` Dan Van Der Ster
2015-01-15 15:52 ` Wido den Hollander
2015-01-15 15:45 ` Mike Dawson
2015-01-15 15:58 ` Yehuda Sadeh
2015-01-15 17:24 ` Sage Weil
2015-01-15 17:44 ` Sage Weil
2015-01-15 17:55 ` Gregory Farnum
2015-01-15 18:07 ` Sage Weil
2015-01-15 18:45 ` Gregory Farnum
2015-01-15 19:02 ` John Spray
2015-01-15 19:07 ` Sage Weil
2015-01-15 22:02 ` John Spray
2015-01-16 7:55 ` Wido den Hollander
2015-01-16 9:50 ` Sebastien Han
2015-01-16 10:55 ` Wido den Hollander [this message]
2015-01-16 14:46 ` Sage Weil
2015-01-19 19:32 ` Mykola Golub
2015-01-19 20:28 ` Sage Weil
[not found] ` <597309080.14312.1421421468640.open-xchange@websrv>
2015-01-16 20:45 ` Wido den Hollander
2015-01-17 2:31 ` Alex Elsayed
2015-01-17 13:11 ` Wido den Hollander
2015-01-17 16:24 ` Sage Weil
2015-01-17 19:09 ` Alex Elsayed
2015-01-17 23:28 ` David Zafman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=54B8EE3B.70506@42on.com \
--to=wido@42on.com \
--cc=ceph-devel@vger.kernel.org \
--cc=sage@newdream.net \
--cc=sebastien.han@enovance.com \
--cc=yehuda@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.