Operating System - HP-UX
1752414 Members
6069 Online
108788 Solutions
New Discussion юеВ

How to increase the size of a existing volume group

 
Randy Durden
Frequent Advisor

How to increase the size of a existing volume group

What is the best way to increase the size of a volume group.

12 REPLIES 12
Avinash20
Honored Contributor

Re: How to increase the size of a existing volume group

Best way is to attach a disk :_
>> Attach the disk
insf -eC disk
pvcreate /dev/dsk/cxtxdx
vgextend /dev/ /dev/dsk/cxtxdx
vgdisplay /dev/
"Light travels faster than sound. That's why some people appear bright until you hear them speak."
James R. Ferguson
Acclaimed Contributor

Re: How to increase the size of a existing volume group

Hi Randy:

Use the commandline.

Regards!

...JRF...
Bijeesh
Respected Contributor

Re: How to increase the size of a existing volume group

hi
See the attachment for more things about lvm
James R. Ferguson
Acclaimed Contributor

Re: How to increase the size of a existing volume group

Hi (again) Randy:

This is a good guide/overview:

http://docs.hp.com/en/B2355-90950/ch06.html

Regards!

...JRF...
avizen9
Esteemed Contributor

Re: How to increase the size of a existing volume group

Hello Randy

to extend size for vg you can either use vgextend command at command prompt or

you can use SAM > Disk & file system > Volume Group > Click on Action > create or extend specify unused disk there will extend your current vg.

before that you need to verify in your server should have one or more free disk extend vg.

if you dont have space you can add new HDD and add that HDD in existing vg.

if you can tell me your requirement we can guide you accordingly.
R.K. #
Honored Contributor

Re: How to increase the size of a existing volume group

Hi Randy,

As indicated in previous answers, the best way is to execute following commands:

1. Find a free disk from following commands:
# strings /etc/lvmtab <---- Dont use disks present in this o/p as they are already a part of some VGs
# ioscan -fnC disk <---- look for CLAIMED disks and disks other than that present in /etc/lvmtab

Adding the disk:
2. # pvcreate /dev/rdsk/cxtxdx
3. # vgextend vg_name /dev/dsk/cxtxdx

Checking:
# vgdisplay -v vg_name <---- look for new disk name and Free PE (it will be increased)
OR
# strings /etc/lvmtab <--- you wills see a new disk here

Hope this helps !!

- R.K.#
Don't fix what ain't broke
Suraj K Sankari
Honored Contributor

Re: How to increase the size of a existing volume group

Hi,

Check, the free space in vg00:
# vgdisplay vg00

Look for ├в PE Size (Mbytes)├в and ├в Free PE├в and multiply them.
The result is the free space in MB in vg00.
Extend the logical volume:
# lvextend ├в L /dev/vg00/lvolx

Extend the filesystem
# fsadm -F vxfs -b /mountpoint

NOTE: You need to add M directly to the lv_size MB value.

Suraj
subodhbagade
Regular Advisor

Re: How to increase the size of a existing volume group

Hi,
steps are:-----

(1)ioscan -fnC disk-- check the path of new disk by comparing with /etc/strings.

(2)check the current free space of vg by PE size*free PE in vgdisplay -v /dev/vgname o/p

(3)pvcreate /dev/rdsk/cxtxdx new path of pv
or pvcreate -f /dev/rdsk/cxtxdx (forcefully)

(4)vgextend /dev/vgname /dev/dsk/cxtxdx
(5) check the size of free PE as mention in (2)

for hpux 11iv3 you can use #vgmodimy to extend the vg.

Regards,
Subodh
Randy Durden
Frequent Advisor

Re: How to increase the size of a existing volume group

can you remove entries in the /etc/lvmtab file?