[linux-lvm] lvm2, extending a physical volume

Jan Dittmer j.dittmer at portrix.net
Sun Jul 13 03:17:02 UTC 2003


Heinz J . Mauelshagen wrote:
> On Sat, Jul 12, 2003 at 11:09:13PM +0200, Jan Dittmer wrote:
> 
>>Hi,
>>
>>would this be a reasonable course of action?
>>
>>vgcfgbackup myraid
>>pvcreate -yff -u wZQg66-cWrF-VDi5-GcRN-aYVg-RQQ3-PPm5K5 /dev/md0
>>`take the size pvcreate reports and change the backup file accordingly`
>>vgcfgrestore myraid
> 
> 
> Yes, this is the workaround.
> (vgcfgbackup shouldn't be necessary though)
>

Being on the careful side here (don't want to restore 300GB of data).
pvdisplay reports (after pvcreate):
--- NEW Physical volume ---
   PV Name               /dev/md0
   VG Name
   PV Size               447.15 GB
   Allocatable           NO
   PE Size (KByte)       0
   Total PE              0
   Free PE               0
   Allocated PE          0
   PV UUID               wZQg66-cWrF-VDi5-GcRN-aYVg-RQQ3-PPm5K5

So how do I get the PEs? Can I also create a new Volumegroup without damaging 
anything? Or is there another way to get the total/free PEs?

Thanks for the insight,

Jan



-- 
Linux rubicon 2.5.75-mm1-jd10 #1 SMP Sat Jul 12 19:40:28 CEST 2003 i686





More information about the linux-lvm mailing list