Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Increasing disk size

Status
Not open for further replies.

joeythelips

IS-IT--Management
Aug 1, 2001
305
IE
Hi,

I recently checked the disk free space on my test HP-UX 11 server.

/u03 was 99% full.

i cleaned it down to 97% full by deleting some log and tmp files and also a core dump.

However, i need more space.

What i want to do is increase the size of /u03. Being relatively new to unix, i don't know how to do this.

Could someone please help me?

Thanks,

Joe
 
Hi

/u03 is mount point.

First of all you need to find out which logical volume is mounted on that mount point. Use

#bdf

Make a note of the volume group name that the logical volume that is mounted on /u03 belongs to

Then you need to check if there is space available in the volume group to extend the logical volume. To check the volume group use

vgdisplay -v vg**

replacing vg** with the volume group name from earlier.

The vgdisplay output will show you the available space left in the volume group that can be used to lvextend the logical volume.

All the above can be done by using SAM and if you are not confident, first of all spend time understanding the concepts of volume groups, logical volumes, mirrors and filesystems. I would recommend that you use SAM until you are fully confident.


 
Hi,

/u03 is mounted on vg00

i tried vgdisplay - v vg00 but got an error saying 'vgdisplay not found'

I am using HP-UX 11. Could this be the source of the error?

Joe
 
Don't think so..

The full path to vgdisplay is /usr/sbin/vgdisplay.

Is /usr/sbin in your PATH?

Doing the following:

echo $PATH

will tell you that. Alternatively you could just try:
/usr/sbin/vgdisplay -v vg00

(Tested on a HP-UX 11.11 system)


stephen.wales@riotinto.com
 
vgdisplay is in /etc and /etc might not be in your PATH statement. Do an echo $PATH to check. To add /etc to your path, do this:

PATH=$PATH:/etc
export PATH

You can make /etc a permanent part of your PATH by adding it to the PATH statement in your .profile. You have to be root to run vgdisplay.
 
In case you're confused by the two differing opinions above, on my system they are both true. The vgdisplay binary is in /usr/sbin and there's a symlink to it in /etc

stephen.wales@riotinto.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top