From: dwysocha@redhat.com <dwysocha@redhat.com>
To: lvm-devel@redhat.com
Subject: [PATCH vgsplit 0/4] bz#251990: Move logical volume from one VG to another
Date: Mon, 24 Mar 2008 16:23:43 -0400 [thread overview]
Message-ID: <20080324202343.627758622@redhat.com> (raw)
The following patches update vgsplit to allow LVs on the cmdline.
Original vgsplit code only allowed PVs on the cmdline, and would fail with
an error message in many cases indicating that the split could not occur
because it would violate an internal LVM rule of splitting a LV across a
volume group.
This code enhances vgsplit in the following ways:
1) Allow LVs on the commandline. This should be very useful as the user does
not have to figure out which PVs to move.
2) Figures out underlying dependencies and queries the user if more volumes
would be moved than specified on the commandline. This seemed to be a natural
progression once LVs were considered. There are many scenarios where moving
one LV would result in moving other LVs/PVs as a result of the internal LVM
rules where an LV/PV must be contained within a single VG.
3) No longer fails with error messages indicating we can't split a PV/LV
across volume groups
The following patches should also allow a simple fix to another bz:
https://bugzilla.redhat.com/show_bug.cgi?id=252041
"vgsplit an active VG where the split involves only inactive LVs"
I am not entirely happy with the code and there are some shortcomings but I
figured it is close enough to post. Comments welcome.
--
next reply other threads:[~2008-03-24 20:23 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-24 20:23 dwysocha [this message]
2008-03-24 20:23 ` [PATCH vgsplit 1/4] Add is_reserved_name() helper function dwysocha
2008-03-25 1:18 ` Jun'ichi Nomura
2008-03-24 20:23 ` [PATCH vgsplit 2/4] Update vgsplit to allow a list of LVs or PVs on the commandline dwysocha
2008-03-25 1:11 ` Jun'ichi Nomura
2008-03-24 20:23 ` [PATCH vgsplit 3/4] Update vgsplit man page to allow LVs or PVs on the cmdline dwysocha
2008-03-24 20:23 ` [PATCH vgsplit 4/4] Update vgsplit tests to cover LVs " dwysocha
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=20080324202343.627758622@redhat.com \
--to=dwysocha@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.