Operating System - HP-UX
1752796 Members
5669 Online
108789 Solutions
New Discussion

Moving LVM's from one disk to another in a volume group

 
Mike Whorley
Occasional Advisor

Moving LVM's from one disk to another in a volume group

Hi,

 

I need to retire some MSA storage that is used in a single disk volume group 'vgdata' with 6 lvm's in.

 

I've added a new netapp lun disk to the volume group and hoped to simply move the lvm's from the old disk to the new using pvmove.

 

However when i test the command i get the following error

 

# pvmove -p /dev/disk/disk5 /dev/disk/disk11

pvmove: Not enough free physical extents available.
Logical volume "/dev/vgdata/lvol3" could not be extended.
pvmove: Cannot find a free physical extent for logical extent 4480
of logical volume "/dev/vgdata/lvol3".

 

Is what i'm attempting here possible ? - if so why is it unable to get free extents on the new lun disk when it's empty ?

 

tia,

Mike.

 

 

3 REPLIES 3
Patrick Wallek
Honored Contributor

Re: Moving LVM's from one disk to another in a volume group

Please post the output of:

 

vgdisplay -v /dev/vgdata

 

lvdisplay /dev/vgdatta/lvol3

Mike Whorley
Occasional Advisor

Re: Moving LVM's from one disk to another in a volume group

Hi - thanks you've directed me to the answer which is the difference in PE's between the 2 disks :-

 

[honduras]/> vgdisplay -v /dev/vgdata
--- Volume groups ---
VG Name /dev/vgdata
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 6
Open LV 6
Max PV 16
Cur PV 2
Act PV 2
Max PE per PV 11281
VGDA 4
PE Size (Mbytes) 16
Total PE 17681
Alloc PE 8640
Free PE 9041
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
VG Version 1.0
VG Max Size 2887936m
VG Max Extents 180496

--- Logical volumes ---
LV Name /dev/vgdata/lvol1
LV Status available/syncd
LV Size (Mbytes) 20480
Current LE 1280
Allocated PE 1280
Used PV 1

LV Name /dev/vgdata/lvol2
LV Status available/syncd
LV Size (Mbytes) 10240
Current LE 640
Allocated PE 640
Used PV 1

LV Name /dev/vgdata/lvol3
LV Status available/syncd
LV Size (Mbytes) 76800
Current LE 4800
Allocated PE 4800
Used PV 1

LV Name /dev/vgdata/lvol4
LV Status available/syncd
LV Size (Mbytes) 16384
Current LE 1024
Allocated PE 1024
Used PV 1

LV Name /dev/vgdata/lvproc
LV Status available/syncd
LV Size (Mbytes) 10240
Current LE 640
Allocated PE 640
Used PV 1

LV Name /dev/vgdata/lvkit
LV Status available/syncd
LV Size (Mbytes) 4096
Current LE 256
Allocated PE 256
Used PV 1


--- Physical volumes ---
PV Name /dev/disk/disk5
PV Status available
Total PE 11281
Free PE 2641
Autoswitch On
Proactive Polling On

PV Name /dev/disk/disk11
PV Status available
Total PE 6400
Free PE 6400
Autoswitch On
Proactive Polling On

 

I'll try and increse the number of PE's on /dev/disk/disk11 assuming this is possible

 

 

Patrick Wallek
Honored Contributor

Re: Moving LVM's from one disk to another in a volume group

And that is exactly what I was going to look at as well.