All of lore.kernel.org
 help / color / mirror / Atom feed
From: Milan Broz <mbroz@redhat.com>
To: lvm-devel@redhat.com
Subject: [PATCH 2/7] Never set mirror log and images directly visible in metadata.
Date: Tue, 12 May 2009 14:34:19 +0200	[thread overview]
Message-ID: <4A096CCB.8070308@redhat.com> (raw)
In-Reply-To: <20090511015448.GC7680@agk-dp.fab.redhat.com>

Alasdair G Kergon wrote:
> On Wed, May 06, 2009 at 04:42:59PM +0200, Milan Broz wrote:
>> This can violate VG max_lv restriction on LV.
> 
> I'm not bothered if the code exceeds max_lv temporarily.

It is not temporarily, it is stored in metadata on disk in this case.

That's why I do not want to store VISIBLE flag there.
Even without mentioning max_lv, the proper solution should be properly
revert these invisible volumes if operation fails in the middle.


> I mean, does anyone have a real-world use case for that parameter?
That parameter is mistake for text metadata format IMHO. 

The only real use is to downconvert to lvm1 format (which has limited LVs)

But we have it documented, "supported" so removing it is probably not good way.

> (Perhaps make it so VGs exceeding that limit can still be manipulated
> internally, but users cannot add new LVs until it drops below the
> limit i.e. a soft limit enforced on the user.)

What the internally means here? Not stored in persistent metadata?
Or stored with an internal/temporary flag?

> This comes back to whether we actually need the distinction between
> TOPLEVEL (nothing in lvm uses the LV) and VISIBLE (it's for users/tools
> to open) or not, a distinction we've been eliminating I think.

Which will probably re-complicate again when replicator & crypto segments/LVs
are introduced...

> (If we got automatic clean-up of incomplete multi-step operations
> wouldn't the problem go away?  Might be as simple as flagging LVs as
> temporary/uncommitted in the metadata and having them deleted next time
> the VG lock is taken in the same way as we deal with multiple metadata
> sequence numbers in different VG mdas.)

Is this possible without breaking compatibility with old versions?
(new LV flag?)

Milan



  reply	other threads:[~2009-05-12 12:34 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-06 14:42 [PATCH 0/7] Fix lv_count & max_lv problems in lvm2 Milan Broz
2009-05-06 14:42 ` [PATCH 1/7] Fix snapshot segment import to not use duplicate segments & replace Milan Broz
2009-05-11  6:27   ` Petr Rockai
2009-05-11 11:29     ` Alasdair G Kergon
2009-05-06 14:42 ` [PATCH 2/7] Never set mirror log and images directly visible in metadata Milan Broz
2009-05-10 18:33   ` Petr Rockai
2009-05-10 18:42     ` Milan Broz
2009-05-10 19:24       ` Petr Rockai
2009-05-11  1:30         ` Alasdair G Kergon
2009-05-11  1:39     ` Alasdair G Kergon
2009-05-11  1:54   ` Alasdair G Kergon
2009-05-12 12:34     ` Milan Broz [this message]
2009-05-06 14:43 ` [PATCH 3/7] Remove snapshot_count from VG and use function instead Milan Broz
2009-05-10 18:41   ` Petr Rockai
2009-05-11 11:48     ` Alasdair G Kergon
2009-05-11 11:42   ` Alasdair G Kergon
2009-05-06 14:43 ` [PATCH 4/7] Introduce vg_add_lc and vg_remove_lv functions Milan Broz
2009-05-10 19:06   ` Petr Rockai
2009-05-12 13:37     ` Milan Broz
2009-05-06 14:43 ` [PATCH 5/7] Introduce lv_set_visible & lv_set_hidden and use lv_is_visible always Milan Broz
2009-05-10 19:23   ` Petr Rockai
2009-05-12 15:12     ` Milan Broz
2009-05-06 14:43 ` [PATCH 6/7] Merge lv_is_displayable and lv_is_visible Milan Broz
2009-05-11  6:09   ` Petr Rockai
2009-05-06 14:43 ` [PATCH 7/7] Remove import paramater from lv_create_empty Milan Broz
2009-05-11  6:15   ` Petr Rockai

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=4A096CCB.8070308@redhat.com \
    --to=mbroz@redhat.com \
    --cc=lvm-devel@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.