Operating System - HP-UX
1833875 Members
1752 Online
110063 Solutions
New Discussion

Nedd help to extend /usr filesystem

 
SOLVED
Go to solution
Vivek Shrivastava_1
Frequent Advisor

Nedd help to extend /usr filesystem

Hi,

I need to extend the size of /usr file system. Could you please help me with step to extend the size of /usr filesystem or verify the following steps?

#1
Boot into single user mode
#2
lvextend /dev/vg00/lvolx
#3
extendfs /dev/vg00/lvolx
#4
reboot the system

When I boot into single user mode, the only filesystem mounted is '/' ( I might be wrong), is it going to be any kind of problem?

Please do reply!

thanks




4 REPLIES 4
Sanjay_6
Honored Contributor
Solution

Re: Nedd help to extend /usr filesystem

Hi,

Looks like you don't have onlineJFS on the server. If you do, you can extend the size of /usr online without a reboot.

If you don't have online jfs, you can proceed like this,

1.) boot into single user mode
hpux -is at the boot prompt after interrupting the boot process
2.) activate the root vg
vgchange -a y /dev/vg00
3.) extend /usr (should be lvol7)
lvextend -L new_size_in_mb /dev/vg00/lvol7
4.) extend the filesystem
extendfs /dev/vg00/lvol7
5.) mount /usr to verify
mount /usr
boot into multiuser mode,
6.) init 3

you do not have to reboot.

Hope this helps.

Regds

Pete Randall
Outstanding Contributor

Re: Nedd help to extend /usr filesystem

There are a couple of ways to go about this. Your steps look correct to me and you're right, / will be the only FS mounted. I would go ahead and do a "mount -a", then "umount /usr" - that way you'll have access to everything you may need.

You could also use Ignite to do a "make_tape_recovery" and enlarge /usr or any other root volume group file systems during the restore process.

Finally, if you have extra room, you can make a new logical volume of the desired size, copy the contents of /usr into it, switch the mount points in /etc/fstab and reboot.


Pete

Pete
Rick Garland
Honored Contributor

Re: Nedd help to extend /usr filesystem

One thing to check for - do have room in vg00?
If so then you can extend the filesystem. Check this by running the vgdisplay -v /dev/vg00 and looking at the 'FREE PE' value.

If the vg00 has no room left then you will need to clean up or ignite the system and reallocate the space in vg00. Check for anyyhing you can clean up 1st.



Vivek Shrivastava_1
Frequent Advisor

Re: Nedd help to extend /usr filesystem

Thanks to all,

Just want to answer quick questions.

#1
Yes, I don't have online JFS.

#2
Yes, I do have lots of space in vg00.


Just want to know one thing from Pete.

Why do I have to activate vg00 when I boot into single user mode? Isnâ t already activated since '/' is already mounted. Please feel free to correct me.

Thank