Re: combining two vg's into one

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

 



>On Thu, Jan 29, 2004 at 12:30:13AM -0600, Christopher Mark Conn wrote:

>> Thanks Ken, that's one thing I was wondering, is it 
>> better to keep one vg per pv. Sounds like I'm already
>> set up the way I need to be.

Patrick Caulfield wrote:

>I don't think so. One of the major points of LVM is that volumes can span
>physical disks and you can transparently add disks to the systems and grow
>existing LVs over them.

That is true, but LVM must be configured to the user's desires.  In this
case, Chris Conn wants / on one physical volume (actually a whole disk)
and /usr, /var and /tmp on another physical volume (again a whole disk).
The easiest way to ensure that these four logical volumes never span the
two disks is to define one volume group per disk.  Ideally one would
define a single volume group, but then one would have to use pvmove(8)
to keep each logical volume on a physical volume.

If Chris needs more flexibility, he can use vgmerge(8), pvmove(8) and
optionally vgsplit(8) to get logical volumes where he wants them. 

>To merge two Volume Groups, try the "vgmerge" command. The only
>prerequisite is that they have the same PE size (which is set at
>vgcreate time).

The sum of the attributes of the two volume groups must also be within
the limits of the destination volume group.  If any limit is exceeded,
vgmerge should refuse to do the merge.  Has this requirement changed?

Sincerely,

Ken Fuchs <kfuchs@winternet.com>

_______________________________________________
linux-lvm mailing list
linux-lvm@sistina.com
http://lists.sistina.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