Operating System - HP-UX
1752398 Members
5670 Online
108788 Solutions
New Discussion юеВ

increase the /usr volume size

 
Patrick Carey
New Member

increase the /usr volume size

how do I increase the /usr volume size? It won't let me through SAM.
4 REPLIES 4
James R. Ferguson
Acclaimed Contributor

Re: increase the /usr volume size

Paula J Frazer-Campbell
Honored Contributor

Re: increase the /usr volume size

Hi
Check out
http://my1.itrc.hp.com/cm/QuestionAnswer/1,1150,0xd5677e990647d4118fee0090279cd0f9!1,00.html

It should help.

Paula
If you can spell SysAdmin then you is one - anon
Shannon Petry
Honored Contributor

Re: increase the /usr volume size

This is a multiple step process. I am sure the links point to the same. First, you must know whether or not you have any free space you can allocate from your volume group containing /usr. Usually vg00.
It is pretty easy to use SAM to see if there is any un=allocated space. If so, you can extend the space. If not, you have to get another disk in the system and add it to vg00, which is a different process all together. Also, look at your logical volumes in SAM, or at /etc/fstab to find what logical volume "/usr" is mounted from.
Assuming you have enough space, you must boot into single user mode.
To get to single user mode, reboot the system, and interrupt the boot process. At the prompt, type "boot pri". When asked if you want to interact with IPL type "y". At the ISL prompt, type "hpux -is".
In single user mode, activate your volume group. "vgchange -a y vg00".
Next, you need to extend the space for the logical volume. "lvextend -L $$$ /dev/vg00/lvol?" where "$$$" is the new size in megabytes, and lvol? is the logical volume of "/usr"[ usually volume 6].
I.E. for a new size of 528Megs,
lvextend -L 528 /dev/vg00/lvol6.
Next extend the file system.
extendfs /dev/vg00/lvol6.

mount the filesystem and see if the space is there.
mountall or mount /usr will work, then bdf.

Have fun :)
Shannon
Microsoft. When do you want a virus today?
Tyrone Kimp
New Member

Re: increase the /usr volume size

I hope you have found the answer before this message reaches you, but if not here are the steps.

1. you must first boot to single user mode.
boot into ISL prompt. type hpux -is
this will boot you into single user. none
of the other filesystems are mounted at this point.
2. Find the filessystem you have root on by looking at your /etc/fstab.
3. type lvextend -L size /dev/vg00/lvol2
this will extend the size of the logical volume of the volume group. NOTE: replace the size with a number and the path with a patch
of your own.
4. extendfs /dev/vg00/rvol2
this is to format the new blocks added to the logical volume.
5. mount /usr
6. df -k
to check the new size.

tkimp@allstate.com
STK9840 fiber drives