[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: LVM: combining two logical volumes, how?



On 26/05/11 17:38, Alan Chandler wrote:
On 26/05/11 17:23, Ken Heard wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

In a box with Squeeze I have one volume group (VG1) with only one (at
the moment) physical volume (/dev/md1). Two of the six current logical
volumes (LV) in VG1 are are /dev/VG1/root (/) and /dev/VG1/usr. I want
to (1) enlarge /dev/VG1/root, (2) transfer the contents of /dev/VG1/usr
to it, and (3) remove /dev/VG1/usr.

Enlarging /dev/VG1/root is easy (I think) using the lvextend command,
and so is removing /dev/VG1/usr using the lvremove command. What I
cannot find is any command or information to do the second step,
transfer the entire contents of one LV to another. Is it possible to do
what I want to do?

Regards, Ken Heard


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEUEARECAAYFAk3efoQACgkQlNlJzOkJmTdQ2gCfcm2uLRAxIvw4KSKVTO4ZFHBK
UFYAl1QzdLnRFfo3zyljE6loTHUByXc=
=wv3O
-----END PGP SIGNATURE-----



Mount the /dev/VG1/usr somewhere other than its normal mount point and
then user rsync to copy data from this alternative mount point into a
directory (not mounted) where it would have been


Sorry, didn't mean to reply directly - should have copied the list
--
Alan Chandler
http://www.chandlerfamily.org.uk


Reply to: