1837090 Members
2307 Online
110112 Solutions
New Discussion

Extending /usr

 
SOLVED
Go to solution
Warren griggs
Frequent Advisor

Extending /usr

Hi,

I am trying to extend /usr.

Unfortunatly I don't have OnlineJFS on this server so i cannot do it online. I have tried unmounting /usr in single user mode but it say's that it is busy (which makes sense). Is there a way of extending it without rebuilding?

Thanks in advance.

Regards,

Colin.
9 REPLIES 9
Martin Johnson
Honored Contributor

Re: Extending /usr

You have to do "shutddown -h", then boot into signle user mode.

If you still have problems, do

"mount /usr"
"umount /usr"

You should then be able to lvextend and extendfs.

HTH
Marty
James R. Ferguson
Acclaimed Contributor

Re: Extending /usr

Hi Colin:

The easiest thing to do is boot up into single-user mode in which /usr isn't mounted.

Do you LVM maintenace using the commands in /sbin (...that's why they're there!...) and when done, reboot.

Regards!

...JRF...
BFA6
Respected Contributor

Re: Extending /usr

Hi,

I didn't think the file systems were mounted when you reboot into single user mode ?

Did you reboot or use init to go down the run levels ?

Normally I would reboot, interrrupt the boot sequence, bo pri, interact with IPL, hpux -is

Allow the machine to boot into single user mode, then extend the logical volume & file system

Regards,

Hilary
Arockia Jegan
Trusted Contributor

Re: Extending /usr

PIYUSH D. PATEL
Honored Contributor

Re: Extending /usr

Hi,

Best is to go to single user mode and run any lvm commands for extending the filesystems.

Piyush
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: Extending /usr

Your most straightforward method to to shutdown and reboot is single-user mode by interrupting the normal boot process and
boot pri
Interact with ISL? Y
hpux -is

/usr will not be mounted but lvextend and extendfs are in /sbin so you can do the operations. I assume that you have some free space in vg00.

By the way, OnlineJFS (and generally Mirror/UX) are things that no HP-UX server should be without.



If it ain't broke, I can fix that.
MANOJ SRIVASTAVA
Honored Contributor

Re: Extending /usr

Hi Colin


Either you can take a ignite back up and reinstall OS with bigger size of /usr or boot in single user mode and then do lvextend -L Size /dev/vg00/lvol7 and then extendfs.


Manoj Srivastava
Sanjay_6
Honored Contributor

Re: Extending /usr

someone_4
Honored Contributor

Re: Extending /usr

This is for /var but you can use it for /usr too. Just make sure you use the the right paths and verify them with the comands.

interrupting the boot process, entering

boot pri ISL

from the menu prompt,
and typing

hpux -is

from the ISL prompt.

/var is usually uses /dev/vg00/lvol7

This can be verified by doing a cat /etc/fstab

# /sbin/lvdisplay /dev/vg00/lvol7
This will return the size in MB that /var currently is.
# /sbin/lvextend -L /dev/vg00/lvol7

/var is vxfs but this can be checked by doing the
following
# /sbin/fstyp /dev/vg00/lvol7

!!Note the return value for the next command.!!

#/sbin/extendfs -F /dev/vg00/rlvol7

#mount -a
#bdf
shutdown -ry 0