From: Jun'ichi Nomura <j-nomura@ce.jp.nec.com>
To: lvm-devel@redhat.com
Subject: [PATCH mirror 0/13] Stacking and collapsing mirror (rev. 2)
Date: Thu, 20 Dec 2007 12:34:52 -0500 [thread overview]
Message-ID: <476AA7BC.9080708@ce.jp.nec.com> (raw)
This set of patches allows mirror addition to mirrored LV.
The patchset is an updated version of this one:
[PATCH mirror 0/13] Add/collapse temporary mirror
https://www.redhat.com/archives/lvm-devel/2007-November/msg00040.html
Changes:
- rebased to the CVS head, which contains most of the latest
pvmove/lvconvert patchset
[ 1/13] Add 'const' for mirror-related functions
[ 2/13] Misc fixes to the 'lvconvert' generalization
[ 3/13] Enable layer specification in remove_layer_from_lv()
[ 4/13] lv_rename() to walk down the stacked LV
[ 5/13] lv_mirror_count() to cope with stacked mirror
[ 6/13] remove_mirror_images() to cope with stacked mirror
[ 7/13] lv_extend() to cope with stacked mirror
[ 8/13] lvconvert to stack a temporary resync mirror on addition
[ 9/13] Add collapsing feature for stacked mirror
[10/13] Add '--collapse' option to lvconvert
[11/13] Add 'lv_mirrors' field to reporting functions
[12/13] Remove hardcoded "_mlog" name from deptree construction
[13/13] Allow disk logs for temporary resync mirror
Comments are welcome.
Overview of the patches
--------------------------
Current LVM2 mirror doesn't allow mirror addition to already
mirrored LV.
It's not possible to simply add mirror image to the existing LV
because it will result in full resync even if existing images are
already in sync.
With this patchset, a temporary mirror layer is inserted.
For example, if we have the mirrored LV below:
testvg-lvol0
|-testvg-lvol0_mimage_1
|-testvg-lvol0_mimage_0
`-testvg-lvol0_mlog0
'lvconvert -m+1' will result in this:
testvg-lvol0
|-testvg-lvol0_mimage_2
|-testvg-lvol0_resync0
| |-testvg-lvol0_mimage_1
| |-testvg-lvol0_mimage_0
| `-testvg-lvol0_mlog0
`-testvg-lvol0_mlog1
"resync0" is a temporary layer to resync "mimage_2".
'lvs -o mirrors testvg/lvol0' will show "3" as a number of mirror images.
After the resync completes, 'lvconvert --collapse testvg/lvol0' will
change the LV to this form:
testvg-lvol0
|-testvg-lvol0_mimage_2
|-testvg-lvol0_mimage_1
|-testvg-lvol0_mimage_0
`-testvg-lvol0_mlog0
Thanks,
--
Jun'ichi Nomura, NEC Corporation of America
next reply other threads:[~2007-12-20 17:34 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-20 17:34 Jun'ichi Nomura [this message]
2007-12-20 18:02 ` [PATCH mirror 1/13] Add 'const' for mirror-related functions Jun'ichi Nomura
2007-12-20 18:02 ` [PATCH mirror 2/13] Misc fixes to the 'lvconvert' generalization Jun'ichi Nomura
2007-12-20 18:02 ` [PATCH mirror 3/13] Enable layer specification in remove_layer_from_lv() Jun'ichi Nomura
2007-12-20 18:03 ` [PATCH mirror 4/13] lv_rename() to walk down the stacked LV Jun'ichi Nomura
2007-12-20 18:03 ` [PATCH mirror 5/13] lv_mirror_count() to cope with stacked mirror Jun'ichi Nomura
2007-12-20 18:03 ` [PATCH mirror 6/13] remove_mirror_images() " Jun'ichi Nomura
2007-12-20 18:03 ` [PATCH mirror 7/13] lv_extend() " Jun'ichi Nomura
2007-12-20 18:03 ` [PATCH mirror 8/13] lvconvert to stack a temporary resync mirror on addition Jun'ichi Nomura
2007-12-20 18:03 ` [PATCH mirror 9/13] Add collapsing feature for stacked mirror Jun'ichi Nomura
2007-12-20 18:03 ` [PATCH mirror 10/13] Add '--collapse' option to lvconvert Jun'ichi Nomura
2007-12-20 18:03 ` [PATCH mirror 11/13] Add 'lv_mirrors' field to reporting functions Jun'ichi Nomura
2007-12-20 18:04 ` [PATCH mirror 12/13] Remove hardcoded "_mlog" name from deptree construction Jun'ichi Nomura
2007-12-20 18:04 ` [PATCH mirror 13/13] Allow disk logs for temporary resync mirror Jun'ichi Nomura
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=476AA7BC.9080708@ce.jp.nec.com \
--to=j-nomura@ce.jp.nec.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.