From: Lothar Werzinger <lothar@tradescape.biz>
To: LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] Is this possible with LVM?
Date: Wed, 15 Aug 2007 13:36:10 -0700 [thread overview]
Message-ID: <200708151336.11249.lothar@tradescape.biz> (raw)
In-Reply-To: <46C35F9A.60604@redhat.com>
On Wednesday 15 August 2007 13:18, Bryn M. Reeves wrote:
> Lothar Werzinger wrote:
> > What I would like to do is to unmount LV2 and be able to remove the
> > external disk from the Ultrabay to replace it with a DVD drive while
> > still be able to acess the filesystem on LV1 (which uses only space on
> > the internal disk). I would like to do this to backup data from LV1 to
> > DVD-RW.
> >
> > Is this possible with LVM? How would I go and prepare the external disk
> > for removal? How would I reconnect if I insert the disk again.
>
> It is possible, but not with both PVs in the same VG (well, not unless
> you want to be doing a lot of manual tweaking and fiddling as you
> plug/unplug the external drive and even then you would need to be
> extremely careful when changing/resizing LVs - basically, don't! :).
>
> If you put LV2 in its own VG then you can achieve exactly what you
> describe via:
>
> umount /path/to/LV2
> vgchange -an VG2
>
> Then remove the external disk. Optionally, you could mark the VG as
> exported with vgexport if you wanted to move it between different hosts.
>
> To re-activate it, plug it back in and re-activate it:
>
> vgchange -ay VG2
>
> Preceding that with a vgimport if you did choose to export the VG.
>
> Depending on the versions of the tools you are using and they way you
> configured the physical volumes when you set them up you can probably
> break the VG up using vgsplit.
I read the manpage to vgsplit and I am lost :-(
Can two VGs use the same PV? How do they know how to share the space?
can you give an example on how I might use vgsplit?
Here's the version I used:
vgcreate --version
LVM version: 2.02.26 (2007-06-15)
Library version: 1.02.20 (2007-06-15)
Driver version: 4.11.0
> Kind regards,
> Bryn.
Lothar
prev parent reply other threads:[~2007-08-15 20:36 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-15 20:03 [linux-lvm] Is this possible with LVM? Lothar Werzinger
2007-08-15 20:18 ` Bryn M. Reeves
2007-08-15 20:36 ` Lothar Werzinger [this message]
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=200708151336.11249.lothar@tradescape.biz \
--to=lothar@tradescape.biz \
--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).