Operating System - HP-UX
1754372 Members
3302 Online
108813 Solutions
New Discussion юеВ

Re: increase space on vgs

 
rajendran
Occasional Advisor

increase space on vgs

Hi,
I have two hardisk total of 18GB.That is vg00
and vg01.Vg00 have spare space of 5GB and vg01
is running out of space.I need to increase the space into vg01 at /u01 or /u02. I have attached below the bdf file system below.Can you please mail to me how do it step by step.
Thanks
rajen
see world is wonderfull
5 REPLIES 5
Michael Tully
Honored Contributor

Re: increase space on vgs

Hi,

First you will need to see if you have
available unused disk space under vg01.
To do this run this command.
# /usr/sbin/vgdisplay /dev/vg01
In the column that reads "Free PE" x 4
is the total in Mb which is available to
you. So providing you have this number to
at least 256 Free PE's you can increase
either of /u01 or /u02 by 1Gb as required
okay to increase you will need to unmount
the filesystem if you don't have on-line
JFS product.

# umount /u01
# vgextend -L 1024 /dev/vg01/lvol9
# extendfs /dev/vg01/rlvol9
# mount /dev/vg01/lvol9 /u01

If you have on-line JFS let us know.
To find out use
# swlist -l product | grep -i jfs

HTH
-Michael
Anyone for a Mutiny ?
Deshpande Prashant
Honored Contributor

Re: increase space on vgs

Hi
As per your "bdf" output you only have 2 lvols occupying 8GB and as per your post the disk is 18GB, so there should be free space in VG.
Check for free space in VG using "#vgdisplay /dev/vg01" and look for "Free PE"
If you do not have Online JFS, you will have to unmount the file system -
#umount /u01
#lvextend -L /dev/vg01/lvol9
#extendfs /dev/vg01/rlvol9
#mount /dev/vg01/lvol9 /u01

You also could use SAM to do this.

Thanks.
Prashant.
Take it as it comes.
Michael Tully
Honored Contributor

Re: increase space on vgs

Hi,

I should have checked the size to to be specified.
In the output of vgdisplay add 1024 to the
existing size, so assuming the existing size is
in Mb is 5Gb (5120Mb) use this
# vgextend -L 6144 /dev/vg01/lvol9

it might help if I can add properly :^))

-Michael
Anyone for a Mutiny ?
Ravi_8
Honored Contributor

Re: increase space on vgs

Hi,
your bdf shows vg01 has occupied only 8.7 GB of total 18 GB. so still you have 9.3 GB in vg01 which you can use as specified by previous answers
never give up
Darrell Allen
Honored Contributor

Re: increase space on vgs

Hello,

I read your question to mean that both your disks together total 18GB. I presume that you have 2 disks of 9GB each. If you are running out of space in vg01 you have a couple of choices:

1. Move some directories from vg01 to vg00 and change your applications to use the new directory structure.

2. If you are not able to simply move directories (or do not desire to) you may be able to move the directories to vg00 and create symbolic links to them in vg01.

3. You should have more flexability in allocating space if you placed both disks in vg00. I wouldn't normally put anything else in vg00 but in this case it may help.

4. Add more disks or replace the one(s) you have.

Option 4 would be my choice.

Darrell
"What, Me Worry?" - Alfred E. Neuman (Mad Magazine)