- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Extending a mirrored logical volume
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
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
08-18-2005 09:34 PM
08-18-2005 09:34 PM
Please help to get through a stupid LVM error.
I use mirrored LVM volume group with strict/contigious alloaction, it is located on two physycal volumes.
I'd like to extend one of logical volumes using free space on these two disks. lvol5 is followed by some other logical volumes, then
there is contigious free space.
I've already checked Document id: KBAN00000084 Document description: lvextend: Not enough free physical extents available.
# lvextend -L 750 /dev/vg00/lvol5
Warning: rounding up logical volume size to extent boundary at size "752" MB.
lvextend: Not enough free physical extents available.
Logical volume "/dev/vg00/lvol5" could not be extended.
Failure possibly caused by contiguous allocation policy.
Failure possibly caused by strict allocation policy
# vgdisplay -v
--- Volume groups ---
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 9
Open LV 9
Max PV 16
Cur PV 2
Act PV 2
Max PE per PV 4350
VGDA 4
PE Size (Mbytes) 4
Total PE 8680
Alloc PE 4312
Free PE 4368
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
...
LV Name /dev/vg00/lvol5
LV Status available/syncd
LV Size (Mbytes) 700
Current LE 175
Allocated PE 350
Used PV 2
.................
--- Physical volumes ---
PV Name /dev/dsk/c2t6d0
PV Status available
Total PE 4340
Free PE 2184
Autoswitch On
PV Name /dev/dsk/c1t6d0
PV Status available
Total PE 4340
Free PE 2184
Autoswitch On
Thanks and points in advance!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2005 09:50 PM
08-18-2005 09:50 PM
Re: Extending a mirrored logical volume
From vgdisplay o/p, I see there is enough free space available in vg00. 2184*4MB space available for the mirrored logical volume.
I think the reason for lvextend failure is continuous Logical Extends are not available to extend the vg (even though you have free space at the end of disk). You can confirm this by:
lvdisplay -v /dev/vg00/lvol5
lvdisplay -v /dev/vg00/lvol6
note the end and start extend number for lvol5 and lvol6.
If this is your root volume, suggested method is to take ignite backup and during restore you can resize the lvol.
Sudeesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2005 10:06 PM
08-18-2005 10:06 PM
SolutionYou can't simple extend contiguous LV followed by other LVs.
The first way out is to change allocation policy using lvchange(1m).
# lvchange -C n /dev/vg00/lvol5
The second one is to brake the mirror, create new VG structure on one of the PVs, move data from previous VG to new created and then restore the mirror. This requires reboot and a lot of configuration work.
The third on is to create ignite tape with whole vg00, boot from it into interractive restore and enter desired sizes of LVs. After restore you also need to recreate the mirror.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2005 10:07 PM
08-18-2005 10:07 PM
Re: Extending a mirrored logical volume
I think there is no contiguous space avaible for lvol5 to extend and since it is strict/contigoud it won't extend.
You can confirm this by lookign at:
# lvdisplay -v /dev/vg00/lvol5
See where your last LE point to which PE.
Note the next PE number. Then look at other lv's also to confirm whether any of thgem point to this PE.
Also have a look at:
# pvdisplay -v /dev/dsk/cxtydx
Hope that helps.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2005 10:39 PM
08-18-2005 10:39 PM
Re: Extending a mirrored logical volume
lvdisplay -v /dev/vg00/lvol5
LE PV1 PE1 Status 1 PV2 PE2 Status 2
00000 /dev/dsk/c1t6d0 00256 current /dev/dsk/c2t6d0 00256 current
00001 /dev/dsk/c1t6d0 00257 current /dev/dsk/c2t6d0 00257 current
....
00174 /dev/dsk/c1t6d0 00430 current /dev/dsk/c2t6d0 00430 current
lvdisplay -v /dev/vg00/lvol6
00000 /dev/dsk/c1t6d0 00431 current /dev/dsk/c2t6d0 00431 current
...
00499 /dev/dsk/c1t6d0 00930 current /dev/dsk/c2t6d0 00930 current
pvdisplay -v /dev/dsk/c1t6d0
pvdisplay -v /dev/dsk/c2t6d0
...
0430 current /dev/vg00/lvol5 0174
0431 current /dev/vg00/lvol6 0000
...
2155 current /dev/vg00/lvol9 0767
2156 free 0000
...
4339 free
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2005 12:04 AM
08-19-2005 12:04 AM
Re: Extending a mirrored logical volume
That's true, you don't have contiguous free PE to extend lvol5.
Is lvol5 you /tmp? I don't see any need to have it contiguous, you can change policy to non contigous and then extend lvol:
#lvchange -C n /dev/vg00/lvol5
#lvextend -L 750 /dev/vg00/lvol5
Enjoy :)
Pedro
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2005 02:24 AM
08-19-2005 02:24 AM
Re: Extending a mirrored logical volume
Congratulations to Artyom! My points raised him to the next hat.