- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- lvextend issues
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2007 11:14 AM
12-13-2007 11:14 AM
I'm trying to increase a logical volume with lvextend but i'm getting the error
# lvextend -L 5632 /dev/vgrns/lvu02ora
lvextend: Not enough free physical extents available.
Logical volume "/dev/vgrns/lvu02ora" could not be extended.
I have three PV mirrored onto another three. The disk that this LV sits on is full but I have plenty of room on the other two. I have tried doing an lvchange -C n on the LV to set the contiguous space allocation but still no luck.
Any ideas
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2007 11:19 AM
12-13-2007 11:19 AM
Re: lvextend issues
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2007 11:22 AM
12-13-2007 11:22 AM
Re: lvextend issues
--- Volume groups ---
VG Name /dev/vgrns
VG Write Access read/write
VG Status available, exclusive
Max LV 255
Cur LV 12
Open LV 12
Max PV 16
Cur PV 6
Act PV 6
Max PE per PV 24000
VGDA 12
PE Size (Mbytes) 4
Total PE 19406
Alloc PE 17430
Free PE 1976
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
--- Logical volumes ---
LV Name /dev/vgrns/lvu01ora
LV Status available/syncd
LV Size (Mbytes) 5000
Current LE 1250
Allocated PE 2500
Used PV 2
LV Name /dev/vgrns/lvbkup02
LV Status available/syncd
LV Size (Mbytes) 5000
Current LE 1250
Allocated PE 2500
Used PV 2
LV Name /dev/vgrns/lvoralogs
LV Status available/syncd
LV Size (Mbytes) 100
Current LE 25
Allocated PE 50
Used PV 2
LV Name /dev/vgrns/lvorabase
LV Status available/syncd
LV Size (Mbytes) 4160
Current LE 1040
Allocated PE 2080
Used PV 2
LV Name /dev/vgrns/lvarch
LV Status available/syncd
LV Size (Mbytes) 2000
Current LE 500
Allocated PE 1000
Used PV 4
LV Name /dev/vgrns/lvbkup03
LV Status available/syncd
LV Size (Mbytes) 2000
Current LE 500
Allocated PE 1000
Used PV 2
LV Name /dev/vgrns/lvu02ora
LV Status available/syncd
LV Size (Mbytes) 5000
Current LE 1250
Allocated PE 2500
Used PV 2
LV Name /dev/vgrns/lvbkup01
LV Status available/syncd
LV Size (Mbytes) 5000
Current LE 1250
Allocated PE 2500
Used PV 2
LV Name /dev/vgrns/lvdbexp
LV Status available/syncd
LV Size (Mbytes) 3500
Current LE 875
Allocated PE 1750
Used PV 2
LV Name /dev/vgrns/lvsgopt
LV Status available/syncd
LV Size (Mbytes) 2000
Current LE 500
Allocated PE 1000
Used PV 3
LV Name /dev/vgrns/lvu03ora
LV Status available/syncd
LV Size (Mbytes) 1000
Current LE 250
Allocated PE 500
Used PV 2
LV Name /dev/vgrns/lvoralogs3
LV Status available/syncd
LV Size (Mbytes) 100
Current LE 25
Allocated PE 50
Used PV 2
--- Physical volumes ---
PV Name /dev/dsk/c4t1d0
PV Status available
Total PE 4340
Free PE 0
Autoswitch On
PV Name /dev/dsk/c4t3d0
PV Status available
Total PE 1023
Free PE 748
Autoswitch On
PV Name /dev/dsk/c4t5d0
PV Status available
Total PE 4340
Free PE 240
Autoswitch On
PV Name /dev/dsk/c6t1d0
PV Status available
Total PE 4340
Free PE 0
Autoswitch On
PV Name /dev/dsk/c6t3d0
PV Status available
Total PE 1023
Free PE 748
Autoswitch On
PV Name /dev/dsk/c6t5d0
PV Status available
Total PE 4340
Free PE 240
Autoswitch On
# lvdisplay /dev/vgrns/lvu02ora
--- Logical volumes ---
LV Name /dev/vgrns/lvu02ora
VG Name /dev/vgrns
LV Permission read/write
LV Status available/syncd
Mirror copies 1
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 5000
Current LE 1250
Allocated PE 2500
Stripes 0
Stripe Size (Kbytes) 0
Bad block on
Allocation PVG-strict
IO Timeout (Seconds) default
thanks!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2007 11:35 AM
12-13-2007 11:35 AM
Re: lvextend issues
But your LV is mirrored - so you need 2816 PE's, but you have **only** 1976 PE's free!
That's why you get
Not enough free physical extents available
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2007 11:39 AM
12-13-2007 11:39 AM
Re: lvextend issues
I want to increase a 5GB file system to by 500MB. I thought there was 1976 4MB extents free.
1976 * 4
7904
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2007 11:48 AM
12-13-2007 11:48 AM
Re: lvextend issues
Your lvdisplay output shows that your allocation policy for the LV is PVG-strict. What PVGs do you have set up for this VG?
The contents of /etc/lvmpvg would be helpful here.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2007 11:51 AM
12-13-2007 11:51 AM
Re: lvextend issues
lvu02ora
LV Size (Mbytes) 5000
Current LE 1250
Allocated PE 2500
new number of PE is 1408 - a difference of 158 (* 2) = 316 (because it is mirrored).
The VG should have enough space, but can post ~5 more lines for
# lvdisplay /dev/vgrns/lvu02ora
How about your /etc/lvmpvg and /etc/lvmtab file?
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2007 11:52 AM
12-13-2007 11:52 AM
Re: lvextend issues
# more /etc/lvmpvg
VG /dev/vg00
PVG vg00_main
/dev/dsk/c2t2d0
PVG vg00_mirror
/dev/dsk/c1t2d0
Looks like the vgrns is isnt in the file
The file systems I'm trying to increase are Service Guard?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2007 11:55 AM
12-13-2007 11:55 AM
Re: lvextend issues
^CM-h^B/dev/vg00
/M-@S?M-^XM-tM--^B/dev/dsk/c2t2d0
/dev/dsk/c1t2d0
/dev/vgrns
^FM-xM-^?S?M-/M-7^A^F/dev/dsk/c4t1d0
/dev/dsk/c4t3d0
/dev/dsk/c4t5d0
/dev/dsk/c6t1d0
/dev/dsk/c6t3d0
/dev/dsk/c6t5d0
It looks a bit corrupted??
# lvdisplay -v /dev/vgrns/lvu02ora |more
--- Logical volumes ---
LV Name /dev/vgrns/lvu02ora
VG Name /dev/vgrns
LV Permission read/write
LV Status available/syncd
Mirror copies 1
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 5000
Current LE 1250
Allocated PE 2500
Stripes 0
Stripe Size (Kbytes) 0
Bad block on
Allocation PVG-strict
IO Timeout (Seconds) default
--- Distribution of logical volume ---
PV Name LE on PV PE on PV
/dev/dsk/c4t5d0 1250 1250
/dev/dsk/c6t5d0 1250 1250
--- Logical extents ---
LE PV1 PE1 Status 1 PV2 PE2 Status 2
00000 /dev/dsk/c4t5d0 00000 current /dev/dsk/c6t5d0 00000 current
00001 /dev/dsk/c4t5d0 00001 current /dev/dsk/c6t5d0 00001 current
00002 /dev/dsk/c4t5d0 00002 current /dev/dsk/c6t5d0 00002 current
00003 /dev/dsk/c4t5d0 00003 current /dev/dsk/c6t5d0 00003 current
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2007 12:00 PM
12-13-2007 12:00 PM
Re: lvextend issues
Use
# strings /etc/lvmtab
....
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2007 12:01 PM
12-13-2007 12:01 PM
Re: lvextend issues
# strings /etc/lvmtab
/dev/vg00
/dev/dsk/c2t2d0
/dev/dsk/c1t2d0
/dev/vgrns
/dev/dsk/c4t1d0
/dev/dsk/c4t3d0
/dev/dsk/c4t5d0
/dev/dsk/c6t1d0
/dev/dsk/c6t3d0
/dev/dsk/c6t5d0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2007 12:09 PM
12-13-2007 12:09 PM
Re: lvextend issues
like this:
# more /etc/lvmpvg
VG /dev/vg00
PVG vg00_main
/dev/dsk/c2t2d0
PVG vg00_mirror
/dev/dsk/c1t2d0
VG /dev/vgrns
PVG vgrns_main
/dev/dsk/c4t1d0
/dev/dsk/c4t3d0
/dev/dsk/c4t5d0
PVG vgrns_mirror
/dev/dsk/c6t1d0
/dev/dsk/c6t3d0
/dev/dsk/c6t5d0
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2007 12:15 PM
12-13-2007 12:15 PM
Re: lvextend issues
# lvchange -s y /dev/vgrns/lvu02ora
This will change the allocation policy to strict, which means mirrors of an LV cannot be on the same PV. See the lvchange man page for more info.
Once you have done that, try your lvextend again. I think it should work.
If you want to control where your extents are allocated from, specify the disk device files on your lvextend command line.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2007 12:20 PM
12-13-2007 12:20 PM
Re: lvextend issues
Thanks For all your help!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2007 12:21 PM
12-13-2007 12:21 PM
SolutionBTW - Welcome to the forums!
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2007 12:35 PM
12-13-2007 12:35 PM
Re: lvextend issues
Just to add this.
If you do the command you did
# lvextend -L 5632 /dev/vgrns/lvu02ora
without PVG-strict and with only strict allocation policy, maybe your LV will extend to 2 disk on the same bus (for example c6t3d0 mirrored to c6t5d0), - that's it and this is not what you want to do.
Without any strict policy and without a specified target LVM could even mirror the LVOL to the **same** disk!
Without PVG-strict you need to say
# lvextend -L 5632 /dev/vgrns/lvu02ora /dev/dsk/c4t3d0 /dev/dsk/c6t3d0
for example, so the conclusion is to use lvmpvg, because this makes all easier and safe.
>> The file systems I'm trying to increase are Service Guard
Now you need to make the other nodes aware of this change.
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!