Operating System - HP-UX
1754885 Members
3821 Online
108827 Solutions
New Discussion

NOt able to extend Logical volume

 
krissh89
Occasional Advisor

NOt able to extend Logical volume

 

vgdisplay output :
---------------------

--- Volume groups ---
VG Name /dev/vgtest
VG Write Access read/write
VG Status available
Max LV 2047
Cur LV 6
Open LV 6
Cur Snapshot LV 0
Max PV 2048
Cur PV 4
Act PV 4
Max PE per PV 524288
VGDA 8
PE Size (Mbytes) 8
Unshare unit size (Kbytes) 1024
Total PE 511986
Alloc PE 478990
Current pre-allocated PE 0
Free PE 32996
Total PVG 2
Total Spare PVs 0
Total Spare PVs in use 0
VG Version 2.2
VG Max Size 4t
VG Max Extents 524288
Cur Snapshot Capacity 0p
Max Snapshot Capacity 4t

LV Name /dev/vgtest/lvol1
LV Status available/syncd
LV Size (Mbytes) 662112
Current LE 82764
Allocated PE 165528
Used PV 4


Lvdisplay output:

-------------------------------------------------
--- Logical volumes ---
LV Name /dev/vgtest/lvol1
VG Name /dev/vgtest
LV Permission read/write
LV Status available/syncd
Mirror copies 1
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 662112
Current LE 82764
Allocated PE 165528
Stripes 0
Stripe Size (Kbytes) 0
Bad block NONE
Allocation PVG-strict
IO Timeout (Seconds) default
Number of Snapshots 0

--- Distribution of logical volume ---
PV Name LE on PV PE on PV
/dev/disk/disk94 56872 56872
/dev/disk/disk108 56872 56872
/dev/disk/disk88 25892 25892
/dev/disk/disk150 25892 25892

--- Logical extents ---
LE PV1 PE1 Status 1 PV2 PE2 Status 2
00000000 /dev/disk/disk94 00071125 current /dev/disk/disk108 00071125 current
00000001 /dev/disk/disk94 00071126 current /dev/disk/disk108 00071126 current
00000002 /dev/disk/disk94 00071127 current /dev/disk/disk108 00071127 current
00000003 /dev/disk/disk94 00071128 current /dev/disk/disk108 00071128 current
00000004 /dev/disk/disk94 00071129 current /dev/disk/disk108 00071129 current
00000005 /dev/disk/disk94 00071130 current /dev/disk/disk108 00071130 current
00000006 /dev/disk/disk94 00071131 current /dev/disk/disk108 00071131 current
00000007 /dev/disk/disk94 00071132 current /dev/disk/disk108 00071132 current
00000008 /dev/disk/disk94 00071133 current /dev/disk/disk108 00071133 current
00000009 /dev/disk/disk94 00071134 current /dev/disk/disk108 00071134 current
00000010 /dev/disk/disk94 00071135 current /dev/disk/disk108 00071135 current
00000011 /dev/disk/disk94 00071136 current /dev/disk/disk108 00071136 current
00000012 /dev/disk/disk94 00071137 current /dev/disk/disk108 00071137 current
00000013 /dev/disk/disk94 00071138 current /dev/disk/disk108 00071138 current
00000014 /dev/disk/disk94 00071139 current /dev/disk/disk108 00071139 current
00000015 /dev/disk/disk94 00071140 current /dev/disk/disk108 00071140 current
00000016 /dev/disk/disk94 00071141 current /dev/disk/disk108 00071141 current
00000017 /dev/disk/disk94 00071142 current /dev/disk/disk108 00071142 current
00000018 /dev/disk/disk94 00071143 current /dev/disk/disk108 00071143 current
00000019 /dev/disk/disk94 00071144 current /dev/disk/disk108 00071144 current
00000020 /dev/disk/disk94 00071145 current /dev/disk/disk108 00071145 current
00000021 /dev/disk/disk94 00071146 current /dev/disk/disk108 00071146 current
00000022 /dev/disk/disk94 00071147 current /dev/disk/disk108 00071147 current

 

When I try to extend 40 GB ,I am getting the below error.


# lvextend -L 703072 /dev/vgtest/lvol5
lvextend: Not enough free physical extents available.
Logical volume "/dev/vgtest/lvol5" could not be extended.
Failure possibly caused by PVG-Strict allocation policy.

Even though I have a free space why I am not able to extend the File system.

4 REPLIES 4
Patrick Wallek
Honored Contributor

Re: NOt able to extend Logical volume

Please post the contents of the /etc/lvmpvg file.

krissh89
Occasional Advisor

Re: NOt able to extend Logical volume

VG /dev/vgtest
PVG pvg01
/dev/disk/disk94
/dev/disk/disk88
PVG pvg02
/dev/disk/disk108
/dev/disk/disk150

Patrick Wallek
Honored Contributor

Re: NOt able to extend Logical volume

Your logical volume is only allowed to expand to /dev/disk/disk88, /dev/disk/disk94, /dev/disk/disk108 and /dev/disk/disk150.

 

According to your /etc/lvmpvg file disk88 and disk94 are in pvg01 and disk108 and disk150 in pvg02.  You LV is mirrored so one copy of mirror will be on PVG01 and the other on PVG02.

 

Now, if you do not have any available disk space on those particular disks, then you won't be able to extend this LV.

 

# vgdisplay -v /dev/vgtest

 

will show us how much space is availabe, if any, on these disks.

 

You may need to either add more disks to the VG or add disks that are already in the VG to the PVG01 and PVG02 physical volume groups.

krissh89
Occasional Advisor

Re: NOt able to extend Logical volume

1.So I need to get new two disk from different controller and add one disk to pvg01 and another disk to pvg02 by editing the /etc/lvmpvg file  .

2.after that How can i add those disk to VG.

can you give me the commands .