Operating System - HP-UX
1834081 Members
2247 Online
110063 Solutions
New Discussion

HP 11.0 configuration question (/var, /usr)

 
SOLVED
Go to solution
Cindy Wolford
Frequent Advisor

HP 11.0 configuration question (/var, /usr)

Hi There,

We have a clean install of HP11.0. We have our root on 1 hard drive with this configuration:

/ 143360 30225 106110 22%
/stand 91669 35403 47099 43%
/var 532480 253387 262474 49%
/usr 532480 443967 83029 84%
/tmp 204800 47139 147905 24%
/opt 512000 150079 339389 31%
/home 102400 7420 89104 8%
plus swap....

I have about 3Gb of disk space free on this disk.

When I tried to install Dec 2002 Quality Pack, I get the error that I do not have enough disk space to install the selected patches.

It says that I additioanl MB for:
/var needs 17Mb
/usr needs 150Mb

Is there anything wrong with taking advantage of my 3Gb disk space and expanding these file systems to a large disk size?

I'm thinking of expanding:
/var 200Mb more for a total of 720Mb
/usr 250Mb more for a total of 770Mb

Is there any danger in doing this?
TIA,
Me

6 REPLIES 6
Pete Randall
Outstanding Contributor

Re: HP 11.0 configuration question (/var, /usr)

Cindy,

No danger at all. I always deliberately oversize my root VG lvols to avoid problems later on - particularly /var for installing patches.

Pete

Pete
Pete Randall
Outstanding Contributor

Re: HP 11.0 configuration question (/var, /usr)

As a matter of fact:

Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol4 204800 86389 111091 44% /
/dev/vg00/lvol1 127573 45019 69796 39% /stand
/dev/vg00/lvol9 1024000 266809 714659 27% /var
/dev/vg00/lvol8 1576960 803133 726502 53% /usr
/dev/vg00/lvol7 65536 3660 58074 6% /tmp
/dev/vg00/lvol6 1024000 474196 515477 48% /opt
/dev/vg00/lvol5 1024000 710557 294271 71% /home


I'm probably overly generous but it sure makes life easier down the road.

Pete

Pete
Paul Sperry
Honored Contributor

Re: HP 11.0 configuration question (/var, /usr)

no Dangers in doing this
If you dont need the 3GB for anything else
increase both expecially /var for patch
purposes
Helen French
Honored Contributor

Re: HP 11.0 configuration question (/var, /usr)

No problem for doing that. I would consider it to increase little bit more (about 1500MB) to avoid future lvextends.

Plan your future updates, installs and then add extra space needed.
Life is a promise, fulfill it!
Paul Sperry
Honored Contributor

Re: HP 11.0 configuration question (/var, /usr)

Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 204800 50648 152984 25% /
/dev/vg00/lvol1 295024 33216 232304 13% /stand
/dev/vg00/lvol9 1019904 770346 234109 77% /var
/dev/vg00/lvol8 2048000 1085097 902727 55% /usr
/dev/vg00/lvol7 9216000 2262410 6736296 25% /u01
/dev/vg00/lvol4 204800 20656 183448 10% /tmp
/dev/vg00/lvol6 778240 542032 235528 70% /opt
/dev/vg00/lvol10 9216000 36996 8892678 0% /ifas
/dev/vg00/lvol5 20480 13712 6768 67% /home
/dev/dsk/c3t2d0 2457600 2457600 0 100% /cdrom
James R. Ferguson
Acclaimed Contributor
Solution

Re: HP 11.0 configuration question (/var, /usr)

Hi:

There is absolutely no problem with extending filesystems like '/usr' and '/var'.

If you have Online JFS licensed, you can do this without unmounting. If you don't have Online JFS, boot into single user mode and perform your filesystem maintenance using the binary's in '/sbin'. Then reboot to restart.

In any case, first 'lventend' your filesystem. Then, if you don't have Online JFS, use 'extendfs' to enlarge the filesystem. If you have Online JFS, use 'fsadm' to complete the resize.

Some good cookbook guidelines can be found here in the Software Recovery Handbook's LVM chapter:

http://www2.itrc.hp.com/service/iv/node.do?node=prod%2FWW_Start%2FN1%7C16%7C11

To ascertain whether or not you have Online JFS, do:

# swlist | grep -i onlinejfs

To regain additional space in '/var' use 'cleanup to commit superseded patches before you start your patch installation.

# cleanup -c 1

Remember, its always good insurance make a current Ignite recovery tape before patching:

# make_tape_recovery -x inc_entire=vg00 -I -v -a /dev/rmt/0mn

Not only will this server as insurance, but remember that it can also be leverage to re-install and therefore resize vg00 filesystems. This is particularly useful should you need to expand the root filesystem.

If you don't have a current version of Ignite, download one and install it with 'swinstall'. No reboot is required.

http://www.software.hp.com/products/IUX/index.html

Regards!

...JRF...