Operating System - HP-UX
1826279 Members
4185 Online
109692 Solutions
New Discussion

Re: extendfs on /var and /tmp

 
SOLVED
Go to solution
Vince Klingler
Occasional Contributor

extendfs on /var and /tmp

I have extended the lv but I can not umount
/var or /tmp they are busy so I can't extend
the file system.
6 REPLIES 6
Pete Randall
Outstanding Contributor

Re: extendfs on /var and /tmp

Vince,

You'll need to do this in single user mode. Reboot, interrupt the process and enter "hpux -is" at the ISL prompt.


Pete

Pete
Steven E. Protter
Exalted Contributor
Solution

Re: extendfs on /var and /tmp

This needs to be done in single user mode.

At the console

Boot the box

shutdown -ry now

Interupt at the 10 second prompt

bo

Y Interact with the ISL Yes

hpux -is

Now you can run extendfs on those volumes.

the shell is different, and it might be easier if you run mount /usr first, but thats how you extend /var and /tmp

If you have OnlineJFS you can extend without this procedure, but it would seem you don't have this paid add in product.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
A. Clay Stephenson
Acclaimed Contributor

Re: extendfs on /var and /tmp

Your only real option is to shutdown and boot in single-user mode (i.e. hpux -is) which IS NOT the same as an init 1 (or s). The extendfs command is in /sbin so only the root filesystem will be needed.
If it ain't broke, I can fix that.
Todd McDaniel_1
Honored Contributor

Re: extendfs on /var and /tmp

Vince,

Although you may be able to extend those filesystems, you dont necessarily have to umount the filesystems...

If you have JFS Online loaded, you can merely run

fsadm -F vxfs -b MB

Do a swlist -l patch |grep -i JFS to check
Unix, the other white meat.
Todd McDaniel_1
Honored Contributor

Re: extendfs on /var and /tmp

Just to follow up I did this with /usr on several boxes to make room for a new application to be loaded. So, I know it works for /usr.

no points on this post...
Unix, the other white meat.
SALVATORI Ludovic
Occasional Contributor

Re: extendfs on /var and /tmp

I know two ways.

The first way, using OnLineJFS which is a not free HP software. It provides a way to extend File Systems online. You don't have to umount it before the extend.

The second way consits in booting the server in single user mode.
This can be done usign the command shutdown (ie : shutdown -r -y -g0)

You will be asked to interrupt the boot sequence by striking a key :
"Press any key within 10 seconds"

You will have a command line (MAIN MENU>)

You've to enter BO PRI

Next you're asked to interact. Enter Y to specify the mode of boot sequence you want to use.

Interact with the ISL Y/[N] : Y

You use Init Single by entering : hpux -is

At the end of the boot sequence, you can use lvextend en then extendfs to extend /var or /tmp. When done just type init 3, for exemple to start the multi-user mode.
Lps