Operating System - HP-UX
1847587 Members
3323 Online
110265 Solutions
New Discussion

extend /var from 500MB to 700MB

 
SOLVED
Go to solution
Teck Sim
Frequent Advisor

extend /var from 500MB to 700MB

What are the steps to lvextend /var and /stand?

I did the following:

#lvextend -L 700 /dev/vg00/lvol8

and when I did a bdf, the size of /var remains at 500MB. Did I miss out some of the steps?

I am at HP-UX11
Thanks in advance.
18 REPLIES 18
Helen French
Honored Contributor

Re: extend /var from 500MB to 700MB

You need to do extendfs too:

# man extendfs
# man fsadm

For changing /stand, the best way is to create a recovery tape and reconfigure the size from that.
Life is a promise, fulfill it!
A. Clay Stephenson
Acclaimed Contributor

Re: extend /var from 500MB to 700MB

So far you have only extended the lvol; you need to run fsadm or extendfs on the filesystem. The command depends upon the type of filesystem.

The short answer for /stand is that you can't extend it because /stand (and /) must be contigious. The only real answer in that case is to do a make_tape_recovery and re-install the OS using Ignite.
If it ain't broke, I can fix that.
Martin Johnson
Honored Contributor

Re: extend /var from 500MB to 700MB

If /var is an hfs file system you will need to umount it. Unfortunately, you will need to bring the system down and come up in single user mode to do this.

HTH
Marty
Sanjay_6
Honored Contributor
Solution

Re: extend /var from 500MB to 700MB

Hi Teck,

The steps are,

# umount /dev/vg00/lvol8
#lvextend -L 700 /dev/vg00/lvol8
# extendfs /dev/vg00/rlvol8
# mount /dev/vg00/lvol8 /var
# bdf

You may have to do this in single user mode.

Hope this helps.

Regds
Joseph C. Denman
Honored Contributor

Re: extend /var from 500MB to 700MB

Teck,

You need to run extendfs on the rlvol.

As far as /stand goes, see Clay's input.

...jcd...
If I had only read the instructions first??
steven Burgess_2
Honored Contributor

Re: extend /var from 500MB to 700MB

Teck

Have a look at the attached mate

HTH

Steve
take your time and think things through
Victor_5
Trusted Contributor

Re: extend /var from 500MB to 700MB

If you do it online, after lvextend, you need to run fsadm

#fsadm -F vxfs -b 700000 /var

James R. Ferguson
Acclaimed Contributor

Re: extend /var from 500MB to 700MB

Hi Teck:

I respectfully suggest that you take some time and read chapter-6 ("Managing Disks and Files") in "Managing Systems and Workgroups: A Guide for HP-UX System Administrators":

http://docs.hp.com/hpux/onlinedocs/B2355-90742/B2355-90742.html

This material will help you now, and next time.

Regards!

..JRF...
MANOJ SRIVASTAVA
Honored Contributor

Re: extend /var from 500MB to 700MB

Hi Teck


I understand that you ahve got ONLINE JFS installed , all yuo need to do is
extendfs /dev/vg00/rlvol8 and you are good to go.

Manoj Srivastava
Hai Nguyen_1
Honored Contributor

Re: extend /var from 500MB to 700MB

Teck,

In all cases, you must not expand /stand. Normally, this filesystem holds the current kernel /stand/vmunix and a previous kernel /stan/vmunix.prev which occupy 90-95% of the used space in this file system. You may have some extra vmunix.*. If so, you should clean them up.

Hai
Hai Nguyen_1
Honored Contributor

Re: extend /var from 500MB to 700MB

Teck,

Another point I'd like to make is all you need to do now for /stand is to run the only command:

# extendfs /dev/vg00/rlvol8

which can be safely run in multi-user mode without unmounting it first.

Hai
T G Manikandan
Honored Contributor

Re: extend /var from 500MB to 700MB

If you are using Online JFS then check this support document

http://support1.itrc.hp.com/service/cki/docDisplay.do?docId=200000046785431
Victor_5
Trusted Contributor

Re: extend /var from 500MB to 700MB

TG:

Without online JFS or with online JFS? What is the correct link? Thanks.

Teck Sim
Frequent Advisor

Re: extend /var from 500MB to 700MB

The steps I took:

# /sbin/shutdown
# umount /dev/vg00/lvol8
umount: cannot unmount /var: Device busy.
What's that mean?

Thanks.
Victor_5
Trusted Contributor

Re: extend /var from 500MB to 700MB

Try fuser -cu /var, if you sure nobody use it, try fuser -ku /var.

Man fuser for more.
Helen French
Honored Contributor

Re: extend /var from 500MB to 700MB

Again, as anyway you brought the system to single user mode (shutdown), I would restart the system (shutdown -y -r 0) and will bring the system to single user mode (ISL> hpux -is).

There will be still processes running on the file system and that's the reason you are getting a Device busy error. If you reboot the system in single user mode, you won't get any of these issues. Once extended, you can boot in normal mode.
Life is a promise, fulfill it!
Fragon
Trusted Contributor

Re: extend /var from 500MB to 700MB

How about this:
#shutdown -ry 0
Go into single user mode then extend your /var file system.

live as you wish
ux
Hai Nguyen_1
Honored Contributor

Re: extend /var from 500MB to 700MB

Teck,

I may not be able to stress enough that you do NOT have to bring your system to single-user mode nor unmount the filesystem in order to extend it.

Hai