- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- lvextend error
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
05-27-2009 05:28 AM
05-27-2009 05:28 AM
Thanks,
Steve
#lvextend -L 1024 /dev/vg01/lvol4
Usage: lvextend
[-A Autobackup]
{-l LogicalExtentsNumber |
-L LogicalVolumeSize}
LogicalVolumePath [ PhysicalVolumePath... | PhysicalVolumeGroupName... ]
Program error. Bad usage of options handling routines.
#
#vgdisplay -v vg01
--- Volume groups ---
VG Name /dev/vg01
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 16
Open LV 16
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 4341
VGDA 2
PE Size (Mbytes) 4
Total PE 4340
Alloc PE 2629
Free PE 1711
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
LV Name /dev/vg01/lvol4
LV Status available/syncd
LV Size (Mbytes) 252
Current LE 63
Allocated PE 63
Used PV 1
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2009 05:33 AM
05-27-2009 05:33 AM
Re: lvextend error
Heck, I can't even see it now!!
(You forgot the attachment)
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2009 05:38 AM
05-27-2009 05:38 AM
Re: lvextend error
cmd is issued the response is:
lvextend -L 1024 /dev/vg01/lvol4
Usage: lvextend
[-A Autobackup]
{-l LogicalExtentsNumber |
-L LogicalVolumeSize}
LogicalVolumePath [ PhysicalVolumePath... | PhysicalVolumeGroupName... ]
Program error. Bad usage of options handling routines.
The filesystem is not in use and I can unmount it.
The vgdisplay -v returns:
vgdisplay -v vg01
--- Volume groups ---
VG Name /dev/vg01
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 16
Open LV 16
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 4341
VGDA 2
PE Size (Mbytes) 4
Total PE 4340
Alloc PE 2629
Free PE 1711
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
LV Name /dev/vg01/lvol4
LV Status available/syncd
LV Size (Mbytes) 252
Current LE 63
Allocated PE 63
Used PV 1
So the free space is there and the command syntax is correct.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2009 05:38 AM
05-27-2009 05:38 AM
Re: lvextend error
what if you will try
lvextend -l
will get same error?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2009 05:40 AM
05-27-2009 05:40 AM
Re: lvextend error
swlist -l product | grep -i "LVM commands cumulative patch"
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2009 05:45 AM
05-27-2009 05:45 AM
Re: lvextend error
#lvextend -l 10 /dev/vg01/lvol4
Usage: lvextend
[-A Autobackup]
{-l LogicalExtentsNumber |
-L LogicalVolumeSize}
LogicalVolumePath [ PhysicalVolumePath... | PhysicalVolumeGroupName... ]
The LVM level is:
#swlist -l product | grep -i LVM
LVM B.11.11 LVM
PHCO_35313 1.0 LVM commands cumulative patch
PHKL_30607 1.0 VxVM,EMC,PM,vPar,slpq,KRS,DUMP,LVM,VM,DaS
,IF
PHKL_34986 1.0 LVM Cumulative Patch; LVM OLR; SLVM 16 No
de
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2009 05:53 AM
05-27-2009 05:53 AM
Re: lvextend error
what is lvdisplay /dev/vg01/lvol4 says ?
somebody might create an alias for lvextend command something like
alias lvextend=lvextend -x
or in there could be some white space in the lvol name
just thoughts :-)
can you copy the lvextend binary from some other server and try ??
Johnson
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2009 05:56 AM
05-27-2009 05:56 AM
SolutionPHCO_35955 1.0 LVM commands cumulative patch
So, you may need this patch as I also found this page with the same error message matching what you found out:
http://h50221.www5.hp.com/upassist/itrc_japan/assist2/patchdigest/PHCO_35955.html
(I hope you are fluent in reading katakana alphabet as the page seems to be in Japanese when it comes to explanations. It might have something to do with the internationalization)
Something to consider and since it is a PHCO patch, it does not require downtime and can be applied (unless you are in a tightly restricted environment)
HTH
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2009 05:58 AM
05-27-2009 05:58 AM
Re: lvextend error
# lvdisplay /dev/vg01/lvol4
--- Logical volumes ---
LV Name /dev/vg01/lvol4
VG Name /dev/vg01
LV Permission read/write
LV Status available/syncd
Mirror copies 0
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 252
Current LE 63
Allocated PE 63
Stripes 0
Stripe Size (Kbytes) 0
Bad block on
Allocation strict
IO Timeout (Seconds) default
I thought about updating the patch levels. Its been a while for this server.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2009 06:22 AM
05-27-2009 06:22 AM
Re: lvextend error
This is the english version of the link provided by Mel.
http://www13.itrc.hp.com/service/patch/patchDetail.do?patchid=PHCO_35955&sel={hpux:11.11,}&BC=main|search|
If you have the patch PHCO_35313, then you will get that error. It is a known issue. See this patch notes..
( SR:8606473680 CR:JAGag28309 )
lvextend command can fail on systems running with
PHCO_35313 that also do not have optional MirrorDisk/UX
software (bundle B2491BA), with the following error
message:
Usage: lvextend
[-A Autobackup]
{-l LogicalExtentsNumber |
-L LogicalVolumeSize}
LogicalVolumePath [ PhysicalVolumePath... |
PhysicalVolumeGroupName... ]
Program error. Bad usage of options handling routines.
So the patch PHCO_35955 will fix your issue.
Ganesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2009 06:30 AM
05-27-2009 06:30 AM
Re: lvextend error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2009 06:53 AM
05-27-2009 06:53 AM
Re: lvextend error
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2009 06:55 AM
05-27-2009 06:55 AM
Re: lvextend error
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2009 06:59 AM
05-27-2009 06:59 AM
Re: lvextend error
Yes stephen
u have already enough space in the volume group 1711*4
but u can't extend the logical volume.Normally this issue is mainly due to the patch level.
thanks and regards
sajjad Sahir