linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
From: Alasdair G Kergon <agk@redhat.com>
To: LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] pvresize patch pending
Date: Sat, 29 Oct 2005 02:02:17 +0100	[thread overview]
Message-ID: <20051029010217.GA22575@agk.surrey.redhat.com> (raw)
In-Reply-To: <1130546247.4362c447c3718@webmail.volumehost.com>

On Fri, Oct 28, 2005 at 07:37:27PM -0500, Zac Slade wrote:
> I think that to get this part write might take a fundemental shift in the way
> pv_write() and _pv_write() behave.  What would be nice is to make pv_write()
> distinguish between a pv_create calling it and a pv_resize.  Then have _pv_write
> only write the pv mda to the disk.  By doing this _pv_write becomes generic and
> allows for further extension.  Also then we can probably implement atomicity for
> pv updates (though updating a pv was not initially engineered into lvm it can
> become very handy).
  
I'm reluctant to extend pv_write - long term I want to get rid of it
(and pv_read also) as PV operations are always awkward and getting in the way.
Everything should be done with (new-style) VGs and LVs.

pvcreate is also superfluous - I want to absorb it into vgcreate/vgextend etc.
So every labelled volume will always belong to a VG - with enhanced
vgsplit/vgmerge & allocation facilities.
CVS now lets you create PVs on LVs - another step towards eliminating
PVs. 


> Actually there is no need to use process_each_pv

If you don't use it, you have to duplicate the logic in it as you have
already done - incompletely (e.g. tag support is missing).

> necessary or even wise to support resizing more than one pv at a time.  

If ppl want to do that, why stop them?


> Can't we just borrow the code from pvcreate to manipulate the metadatacopies? 

Not yet.  That problem needs solving as part of a general mda-manipulating  
feature.  No point in doing it first for a rarely-used case.

Alasdair
-- 
agk@redhat.com

  reply	other threads:[~2005-10-29  1:02 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-28 16:59 [linux-lvm] pvresize patch pending Zac Slade
2005-10-28 17:01 ` Alasdair G Kergon
2005-10-28 17:17   ` Zac Slade
2005-10-28 17:55     ` Zac Slade
2005-10-28 19:27       ` Alasdair G Kergon
2005-10-28 20:14         ` Zak Kipling
2005-10-28 21:21           ` Alasdair G Kergon
2005-10-29  0:37             ` Zac Slade
2005-10-29  1:02               ` Alasdair G Kergon [this message]
2005-10-29 20:08                 ` Alasdair G Kergon
2005-11-04  1:53                 ` Zac Slade
2005-10-31  2:42           ` Alasdair G Kergon

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=20051029010217.GA22575@agk.surrey.redhat.com \
    --to=agk@redhat.com \
    --cc=linux-lvm@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).