1833835 Members
2537 Online
110063 Solutions
New Discussion

Extending /usr and /var

 
SOLVED
Go to solution
ktodorovflagtelecom.com
Occasional Contributor

Extending /usr and /var

We are having an HP Unix 11 server and trying to extend /var and /usr volumes. We've placed the server in single user mode but when tring to umount /var gives as reply that the device is busy.
We've tried to kill the processes that are using the device by using
fuser -ku
but it did not help.

Could you advise us on a solution for our problem?
6 REPLIES 6
Sridhar Bhaskarla
Honored Contributor
Solution

Re: Extending /usr and /var

Hi,

A better way is to cleanly "boot" it into single user mode.

Reboot the box while you are in single user mode, interact with ISL and then get into single user mode.

ISL>hpux -is

At this time, you will not have any file system other than / and /stand mounted.

Then you can use /sbin/ commands to extend the filesystems.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Martin Johnson
Honored Contributor

Re: Extending /usr and /var

You need to shutdown -h, then boot into single user mode.

Also, you may need to "mount /usr; umount /usr" to be able to extend it. I don't know why, but it happened to me a couple of times. The mount/umount fixed the problem.

HTH
Marty
Uday_S_Ankolekar
Honored Contributor

Re: Extending /usr and /var

1. Restart the system to single user mode:
# shutdown -ry 0

When prompted, press any key to interrupt boot
sequence, boot from the primary device, and invoke
ISL interaction as follows:

# boot pri

interact with IPL? YES

# hpux -is (boots into single user mode)


2. Extend the logical volume that holds the file system:

# lvextend -L /dev/vg00/lvoln

3. Extend the file system, (example is for vxfs):

# extendfs -F hfs /dev/vg00/rlvol4

4. Mount all file systems and check:

# mount -a; bdf

5. Restart system to multi-user mode:

# shutdown -ry 0

6. Do a final check to ensure that the file system was
extended:

# bdf

-USA..
Good Luck..
James R. Ferguson
Acclaimed Contributor

Re: Extending /usr and /var

Hi:

In all probability you won't be able to unmount '/var'. Instead, bootup into single user mode; perform your maintenance; and reboot to return normal user mode (or do 'init 3').

Regards!

...JRF...
Wilfred Chau_1
Respected Contributor

Re: Extending /usr and /var

Do you have online JFS installed? If you do, you can use the following:

lvextend -L /dev/vg00/lvusr

fsadm -F vxfs -b /usr

or

You will need to following Uday's instruction. Make sure only / is mounted and use lvextend, extendfs in /sbin to extend the file systems.

Good lick.
Spike Burkhardt
Frequent Advisor

Re: Extending /usr and /var

Uday & all,

Thanks for such a detailed answer. In it you give an example using vxfs. Is this the LVM or JFS? Thanks for the help!

spike

Hey, I've got three teenage boys!