linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] Is this possible with LVM?
@ 2007-08-15 20:03 Lothar Werzinger
  2007-08-15 20:18 ` Bryn M. Reeves
  0 siblings, 1 reply; 3+ messages in thread
From: Lothar Werzinger @ 2007-08-15 20:03 UTC (permalink / raw)
  To: linux-lvm

Hi,

I have a Lenovo Thinkpad T61 with a second disk drive for the Ultrabay.

I created one PV on the internal and external (Ultrabay) each
I created a VG with these two PVs.
I created a LV (LV1) that uses exclusively PV intern
I created a LV (LV2) that uses both PVs in striped mode.

So far everything works fine.

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.

Thanks in advance!

Lothar

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [linux-lvm] Is this possible with LVM?
  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
  0 siblings, 1 reply; 3+ messages in thread
From: Bryn M. Reeves @ 2007-08-15 20:18 UTC (permalink / raw)
  To: LVM general discussion and development

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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.

Kind regards,
Bryn.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFGw1+a6YSQoMYUY94RAgq8AJ4ohWRaQxAdni4wIa0g9lIpb3SNawCfRMzG
1bn1nBr9GtnN0CWfN1l7oTE=
=5Ff4
-----END PGP SIGNATURE-----

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [linux-lvm] Is this possible with LVM?
  2007-08-15 20:18 ` Bryn M. Reeves
@ 2007-08-15 20:36   ` Lothar Werzinger
  0 siblings, 0 replies; 3+ messages in thread
From: Lothar Werzinger @ 2007-08-15 20:36 UTC (permalink / raw)
  To: LVM general discussion and development

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-08-15 20:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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).