1836590 Members
2448 Online
110102 Solutions
New Discussion

Increasing /var and /usr

 
Darren Cook_2
Occasional Contributor

Increasing /var and /usr

Hi,

I am performing an upgrade to HP11.00 from 10.20, and I need to increase the size of /var and /usr. I am new to all this, so how do I increase the sizes when they won't umount because they are busy. I have shutdown in single user mode and have (i think) managed to increase the size of the logical volumes but how do I increase the fs sizes? Please help. A basic step-by-step guide would be brilliant.
9 REPLIES 9
Christopher McCray_1
Honored Contributor

Re: Increasing /var and /usr

As long as you have increased the size of the lvol:

#lvextend -L /dev/vg??/lvol?

then all you need to do is:

#extendfs -F vxfs /dev/vg??/rlvol?
#init 3 (or 4, depending on your default run level)

Hope this helps, good luck
Chris
It wasn't me!!!!
Thierry Poels_1
Honored Contributor

Re: Increasing /var and /usr

hi,

if you don't have OnlineJFS to correct procedure is:

umount /dev/vg99/lvol9
lvextend -L larger_size /dev/vg99/lvol9
extendfs -F vxfs /dev/vg99/rlvol9
mount /dev/vg99/lvol9 mount_directory

and for some mount-points (/var, ...) you will need to be in single user mode to unmount them successfully.

good luck,
Thierry.
All unix flavours are exactly the same . . . . . . . . . . for end users anyway.
Joseph Chakkery
Valued Contributor

Re: Increasing /var and /usr

Hello,

$/sbin/shutdown -> for single user mode.
$/sbin/mount -> will mount /usr
$/sbin/lvextend ???L newsize /dev/vg00/lvol? -> extend the lvol size
$/sbin/umount /usr -> unmount /usr
$/sbin/extendfs /dev/vg00/rlvol? -> Extend file system size to lvol size
$/sbin/mount /usr -> mount /usr
$/sbin/reboot ???r -> reboots in multiuser mode.

Similarly u can increase the /var also.

Regards
Joe.
Knowledge is wealth
harry d brown jr
Honored Contributor

Re: Increasing /var and /usr

Here is a step by step procedure:

1. Do not upgrade
2. Install 11.00 - cold install (virgin install) the OS.

The reason, is because I know of no one that has ever done this. HP even recommends doing a cold install. Besides, it's faster to do a cold install.

harry

live free or die
Live Free or Die
Christopher McCray_1
Honored Contributor

Re: Increasing /var and /usr

Wait... Rewind!!! I must echo Harry's recommendation above. The steps for increasing a file system stand correct as I and my esteemed collegues have explained, but upgrading from 10.20 to 11.0, I must agree that a cold install would be best. Take a full backup of your data, create an ignite tape(don't think youu'll need though) and print off other informationsuch as:

strings /etc/lvmtab
/etc/fstab
and anything else you want to stay the same after the install and then go for it.

Thanks to Harry for catching what we all seemed to miss.

Good luck
Chris
It wasn't me!!!!
James R. Ferguson
Acclaimed Contributor

Re: Increasing /var and /usr

Hi Darren:

In the absence of Online JFS, particularly with /usr and /var, it is easiest to boot up into single-user mode, and 'lvextend' and 'extendfs' your filesystems.

If you need to find and kill processes that are preventing a filesystem from being unmounted, do:

# fuser -kc /mountpoint

-or-

# fuser -kc /dev/dsk/cXtYdZ

Regards!

...JRF...
Rita C Workman
Honored Contributor

Re: Increasing /var and /usr

Darren,

You have the info for increasing lvols & fs.....Now do yourself a really big favor and do a SEARCH for the pros and cons (and suggestions) on upgrading vs cold install. It will be time well spent.

Here is one to get you started..
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xe24eded2442ed5118fef0090279cd0f9,00.html

..and here's my tip...sit down and map out what you plan to do before you start. It will save you tons of hours trying to regroup later.

Just a thought,
Rita
Sanjay_6
Honored Contributor

Re: Increasing /var and /usr

Wodisch
Honored Contributor

Re: Increasing /var and /usr

Hello Darren,

Harry is right (of course :-) with his steps, but he has omitted the most important step "0)"!
First you get a recent release of "Ignite/UX".
Then you install the "Minimal Runtime" at least.
Third you use "make_tape_recovery " to backup you whole root-and boot-volume group.
Only then you continue with the other steps...

Regards,
Wodisch