Re: Encapsulate existing partition / Moving logical volumes

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

 



On Mon, 5 Mar 2007, Vern Kyle wrote:

> First, is there a method to encapsulate an existing disk partition
> into a logical volume?  (I can copy all of the data manually, but I'm
> thinking there is an eloquent way to accomplish this.)

Since the LVM metadata takes up room, and is stored at the beginning, 
I don't see how a partition could be "converted" easily.  You could 

1) shrink the fs
2) use a special copy to move up the fs enough blocks to make room for
   metadata (by starting at the end and working towards the beginning
   of the partition).
3) create the PV metadata and allocate the LV without zeroing the
   beginning.

However, by that time, you might as well have copied the data.  The
only utility would be if there was no room - and it would be highly
dangerous.

-- 
	      Stuart D. Gathman <stuart@bmsi.com>
    Business Management Systems Inc.  Phone: 703 591-0911 Fax: 703 591-6154
"Confutatis maledictis, flammis acribus addictis" - background song for
a Microsoft sponsored "Where do you want to go from here?" commercial.

_______________________________________________
linux-lvm mailing list
linux-lvm@redhat.com
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

[Index of Archives]     [Gluster Users]     [Kernel Development]     [Linux Clusters]     [Device Mapper]     [Security]     [Bugtraq]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]

  Powered by Linux