1849552 Members
6593 Online
104044 Solutions
New Discussion

vgextend

 
SOLVED
Go to solution
Grayh
Trusted Contributor

vgextend

I am trying to extend my filesystem.. the disk has 146 gb cap... and wanted to allocate 100GB

I went through man vgextend.. could only was able the system upto 10 gig...I want to extend it to 100gig

Please advide

# extendfs /dev/vg01/roracle
vxfs extendfs: file system is already at maximum device capacity.
# mount /dev/vg01/oracle /data
# vgdisplay vg01
--- Volume groups ---
VG Name /dev/vg01
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 1
Open LV 1
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 8750
VGDA 2
PE Size (Mbytes) 16
Total PE 8749
Alloc PE 5000
Free PE 3749
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

# lvextend -l 3749 /dev/vg01/oracle
lvextend: "LogicalExtentsNumber" is not bigger than current setting.
7 REPLIES 7
Grayh
Trusted Contributor

Re: vgextend


--- Logical volumes ---
LV Name /dev/vg01/oracle
VG Name /dev/vg01
LV Permission read/write
LV Status available/syncd
Mirror copies 0
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 80000
Current LE 5000
Allocated PE 5000
Stripes 0
Stripe Size (Kbytes) 0
Bad block on
Allocation strict
IO Timeout (Seconds) default

--- Distribution of logical volume ---
PV Name LE on PV PE on PV
/dev/dsk/c0t1d0 5000 5000

--- Logical extents ---
LE PV1 PE1 Status 1
00000 /dev/dsk/c0t1d0 00000 current
Standard input

Re: vgextend

Did it occur to you to actually READ THE man PAGE for lvextend before posting?

from man lvextend:

-l le_number Increase the space allocated to the logical
volume, specified in logical extents.
le_number is a decimal value greater than the
current number of logical extents.

le_number must be at least 1 and no greater
than a volume group version-dependent
maximum; use the lvmadm command to determine
the maximum number of logical extents for the
volume group version.

One, and only one, -l, -L, or -m option must
be supplied.


So you told the command to *extend* the LV to 3749 extents which is smaller than it currently is. Figure out how many extents equals 100GB and use that instead...

Duncan



I am an HPE Employee
Accept or Kudo
Solution

Re: vgextend

or to spell it out for you:

lvextend -l 6400 /dev/vg01/oracle

Please please please stop what your working on and spend some time reading the manuals

Duncan

I am an HPE Employee
Accept or Kudo
Court Campbell
Honored Contributor

Re: vgextend

Try lvextend -L 102400m /dev/vg01/oracle

and then if you have onlinejfs

fsadm -b 102400m /mount_point
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
Grayh
Trusted Contributor

Re: vgextend

Usage: lvextend
[-A Autobackup]
{-l LogicalExtentsNumber |
-L LogicalVolumeSize}
LogicalVolumePath [ PhysicalVolumePath... | PhysicalVolumeGroupName... ]
"LogicalVolumeSize": Must be a value between 1 and 16777216 (16M).
# lvextend -L 16777216 /dev/vg01/oracle
lvextend: "LogicalExtentsNumber" is bigger than the maximum value allowed.
# lvextend -L 167772 /dev/vg01/oracle
Warning: rounding up logical volume size to extent boundary at size "167776" MB.
lvextend: Not enough free physical extents available.
Logical volume "/dev/vg01/oracle" could not be extended.
Failure possibly caused by strict allocation policy
# lvextend -l 167772 /dev/vg01/oracle
Usage: lvextend
[-A Autobackup]
{-l LogicalExtentsNumber |
-L LogicalVolumeSize}
LogicalVolumePath [ PhysicalVolumePath... | PhysicalVolumeGroupName... ]
"LogicalExtentsNumber": Must be a value between 1 and 65535.
# lvextend -l 65535 /dev/vg01/oracle
lvextend: Not enough free physical extents available.
Logical volume "/dev/vg01/oracle" could not be extended.
Failure possibly caused by strict allocation policy
#

Please give me the command for now.... I will research on it after I have given the system
Court Campbell
Honored Contributor

Re: vgextend

I thought

lvextend -L 102400m /dev/vg01/oracle

was pretty explicit.
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
Grayh
Trusted Contributor

Re: vgextend

Thanks a lot Court Campbell.... You saved me...