Vgextend

 
kunjuttan
Super Advisor

Vgextend

Hi all,

One of my Server filesystem,which is in vg00 need to be extended as it is 80% full.

/dev/vg00/lvol15 10485760 8298527 2051877 80% /usr/sap/DBI

And the vgdisplay vg00 output is the following--
VG Name /dev/vg00
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 4465
VGDA 2
PE Size (Mbytes) 64
Total PE 4455
Alloc PE 3146
Free PE 1309
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

Can anyone please share what all steps need to be done for ths to achieve.As root VG is having free PEs,I think I can directly go for an lvextend.Pls help..
7 REPLIES 7
Deepankar Panda
Advisor

Re: Vgextend

lvextend -L /dev/vg00/lvolX

Do you have Online - JFS .? if not

need to go to single user mode do

extendfs -F vxfs /dev/vg00/rlvolx (pelase the Filesystem type )

if u have on-line JFS..then go for fsadm....ie,

fsadm -F vxfs -b .... -o largefiles ..(If ur file is more than 2 GB then we must go for it..)
The -o option cannot be used with the -b option.
hope this helps..
Thanks


Rita C Workman
Honored Contributor

Re: Vgextend

You can not add anymore disk, because the vg was created with the default limit of 16.
Why you have 16 disks in vg00, and what looks like maybe some application loaded in there - IMHO not a good setup.

But, your question is lvextend.
You have a little space left (1309)

lvdisplay -v /dev/vg00/lvol5 |more

I'm going to use the -l option here..and I'm going to say your going from 1000 pe to 1500 pe.
Find your lvol15 and how many physical extents used (pe).
Now if you don't want to specific which disk to use then:
lvextend -l 1500 /dev/vg00/lvol15

To do it specifying disk:
lvextend -l 1500 /dev/vg00/lvol15 /dev/dsk/c1t2d3

If you have online JFS than:
lvdisplay -v /dev/vg00/lvol15 | more
Get the Mb total of lvol15

fsadm -F vxfs -b m /usr/sap/DBI

...and yes that is a small "m" right after the sizeinMB - no space.....

If you have On-lineJFS then you do have umount the file system. Since it looks like maybe it's an appl mountpoint, you might not have to go into single user. However, if it's more /usr, than just /usr/sap...(some application) then you will have to go into single user to extend the old way.

Rita
Rita C Workman
Honored Contributor

Re: Vgextend

oops typo...

If you have OnLineJFS than you don't have to umount the file system.....
P Arumugavel
Respected Contributor

Re: Vgextend

Hi RCW,

Current number of physical volumes in the volume group VG00 is one in vgdispaly output, then why he can't add anymore disk as maximim PV is set for 16.

Hi Kunjuttan,

I think you can go for extending the VG size by adding more PV, if u need. And you can extend your filesystem /usr/sap/DBI size as your VG has currently 1309*64MB size free.

If you dont ahve online JFS:
First, increase the size of the logical volume.
#lvextend -L desired LV size in MB /dev/vg00/lvol15

Unmount the file system.
#umount /dev/vg00/lvol15

Extend the file system to occupy the entire LV size you extended.
#extendfs -F vxfs /dev/vg00/rlvol15

Remount the file system.
#mount /dev/vg00/lvol15 /usr/sap/DBI..

If you have onlie JFS:
First, increase the size of the logical volume.
#lvextend -L desired LV size in MB /dev/vg00/lvol15

Extend the file system to occupy the entire LV size you extended.
#fsadm -F vxfs -b m /usr/sap/DBI....

All the best...
Jestin John Chacko
Regular Advisor

Re: Vgextend

Kunjutta.....

your PE size is 64 and your Free PE is 1309 that means you are having a free space of around 83776 Mb of space.if you requirement will suite inside this space then go for an lvextend

otherwise you need to add an extra disk as your maximum no of pv is 16 and you had used only 1 in that you can add another disk to extend the vg

pls go through this doc

http://staff.ustc.edu.cn/~lywang/handbook/HP_Unix/%C2%DF%BC%AD%BE%ED%B9%DC%C0%ED/swrc16.pdf go through
rariasn
Honored Contributor

Re: Vgextend

Hi kunjuttan,

- Stop app SAP/DBI

# umount /dev/vg00/lvol15

# lvextend -l total_extends_for_fs /dev/vg00/lvol15

# extendfs /dev/vg00/rlvol15

# mount /dev/vg00/lvol15 /usr/sap/DBI

# bdf /usr/sap/DBI

- Start application

rgs,

kunjuttan
Super Advisor

Re: Vgextend

Thanx GURUS....Done..