Re: Expanding a PV on a hardware RAID

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

 



On Mon, Nov 15, 2004 at 12:47:28PM -0600, Jetkins@austinlogistics.com wrote:
> any way to expand a PV, and therein lies my problem.  It seems that without
> a pvexpand or pvresize command, I have no way of utilizing the additional
> space.
 
LVM1 or LVM2?

> 1)  Am I missing something, or is there currently no way to expand a PV?,

Using LVM2 tools you can pvexpand (offline) by backing up the metadata, 
editing the PV size in it (pe_count), then restoring it.
  new pe_count = 
    floor((new_disk_size_in_512_byte_sectors - pe_start) / extent_size)

> 2)  Would I have been better off creating a partition table and
> pvcreate'ing on /dev/sdb1instead of pvcreate'ing the entire /dev/sdb disk
> initially, given that I could now have created a new partition on the extra
> space and pvreate'd a new PV alongside the old?

That's the supported way.
 
Alasdair
-- 
agk@redhat.com

_______________________________________________
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