[linux-lvm] Is this possible with LVM?
Bryn M. Reeves
breeves at redhat.com
Wed Aug 15 20:18:34 UTC 2007
-----BEGIN PGP SIGNED MESSAGE-----
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
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.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
More information about the linux-lvm