1825961 Members
2908 Online
109690 Solutions
New Discussion

lvextend error

 
SOLVED
Go to solution
Stephen Grecni
Advisor

lvextend error

When extending a volume I get the following attached error. Also the vg seem to have enough free space and I get the same error using SAM. Has anyonse seen this before and have a solution ?

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
13 REPLIES 13
Pete Randall
Outstanding Contributor

Re: lvextend error

>> Has anyonse seen this before

Heck, I can't even see it now!!

(You forgot the attachment)


Pete

Pete
Stephen Grecni
Advisor

Re: lvextend error

The wording was misleading, the error and display is within the posting. When the lvexend
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.
avizen9
Esteemed Contributor

Re: lvextend error

hello steve
what if you will try
lvextend -l

will get same error?
Mel Burslan
Honored Contributor

Re: lvextend error

what is your LVM patch level ?

swlist -l product | grep -i "LVM commands cumulative patch"

________________________________
UNIX because I majored in cryptology...
Stephen Grecni
Advisor

Re: lvextend error

using the -i option produces the same result
#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
johnsonpk
Honored Contributor

Re: lvextend error

I never saw this error,Your command is 101% correct
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
Mel Burslan
Honored Contributor
Solution

Re: lvextend error

Well, my server I just checked was patched few months ago and I have

PHCO_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...
Stephen Grecni
Advisor

Re: lvextend error

The results of the cmd is:

# 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.
Ganesan R
Honored Contributor

Re: lvextend error

Hi,

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.
Best wishes,

Ganesh.
Stephen Grecni
Advisor

Re: lvextend error

Sure looks like it. Thanks for the help. Let me get it installed and see if it works.

Stephen Grecni
Advisor

Re: lvextend error

The patch fixed the issue. Thanks for all of the help.

Steve
Stephen Grecni
Advisor

Re: lvextend error

Thre patch corrected the isuse. Thank you for the help.

Steve
Sajjad Sahir
Honored Contributor

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