Operating System - HP-UX
1833772 Members
2248 Online
110063 Solutions
New Discussion

Re: how to umount and extend /usr

 
Susan W Roden
Contributor

how to umount and extend /usr

I have shut the system down to single user and am still unable to umount /usr. I need to extend /usr so I can update from 10.20 to 11.0. How do I unmount the /usr filesystem?

11 REPLIES 11
Albert Smith_1
Regular Advisor

Re: how to umount and extend /usr

Susan,

I am assuming when you are talking that you brough it into single user mode you did a init S . Unfortunatly this does not bring the system into a "true" single user mode. You will need to reset the system. Interrupt the boot process. Interact with the ISL and do a hpux -is .

This will bring the box into a true single user mode were the only that is mounted is your / and the possibly the kernel.

Since lvextend and extendfs are in /sbin you should have no problem at this point extending /usr .

After you extend it do a init 3 (or whatever our default runlevel is) and you will be back in business.

Al Smith
Sr. HP-UX Adminstrator
Quest Diagnostics
Madhu Sudhan_1
Respected Contributor

Re: how to umount and extend /usr

Susan Roden :
Restart the system and at ISL> hpux -is takes you to single user mode.
There on hope this URL helps you.
http://my1.itrc.hp.com/cm/QuestionAnswer/1,1150,0x74bc119c3420d411b66300108302854d,00.html

Enjoy !

......Madhu
Think Positive
frank beall_1
Occasional Advisor

Re: how to umount and extend /usr

Make an ignite image of your root volume group. reinstall it while expanding /usr.


you should make an ignite image anyway before
installing 11.x.

Also,I think it's better to do a cold install of 11.x. ( that's just my opinion)
yow
Deepak Seth_1
Regular Advisor

Re: how to umount and extend /usr

boot it in a single user mode - hpux -is
This is example of increasing /usr by 1 Gig
/sbin/lvextend -L 1000 /dev/vg00/lvolxx
/sbin/extendfs /dev/vg00/rlvolxx
/sbin/mount /usr

Albert Smith_1
Regular Advisor

Re: how to umount and extend /usr

If you have online jfs installed and this is a jfs filesystem perform the following:

fsadm_vxfs -F vxfs -b insert new size here logical volume.

if you want to make a lvol4 in vg00 20mg then do this

fsadm_vxfs -F vxfs -b 20480 /dev/vg00/lvol4
harry d brown jr
Honored Contributor

Re: how to umount and extend /usr

Please don't try to upgrade from 10.20 to 11.00! Do yourself a favor and do a make_recovery first (under 10.20). Take a few extra backups of the non-root stuff. Then do a cold install of 11.00.
Live Free or Die
Torsten.
Acclaimed Contributor

Re: how to umount and extend /usr

Susan,

try this:

- boot to LVM maintanance mode
ISL> hpux -lm
- extend /usr
- reboot!

HTH
Torsten

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Sridhar Bhaskarla
Honored Contributor

Re: how to umount and extend /usr

1. Shutting "down" to single user mode will not unmount /usr,/var etc.,
2. Bringing "up" the system to single user mode will do.

Boot through ISL>hpux -is


This will bring up the system into single user mode. Then you can use /sbin/lv* commands to extend the file system.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Albert Smith_1
Regular Advisor

Re: how to umount and extend /usr

Ignore the last message I sent...
Joseph C. Denman
Honored Contributor

Re: how to umount and extend /usr

Follow Deepaks examples for extending the fs.

One more thing. If by chance /usr is not of the root vg. You may need to activate the vg.

vgchange -a y vg01

...jcd...
If I had only read the instructions first??
Michael Tully
Honored Contributor

Re: how to umount and extend /usr

Hi Susan,

There has been many postings made into the
forum in regards to 10.20 to 11.00 upgrades.
You will find that it is a very difficult
upgrade and in nearly all cases has not
worked at all. The majority of people in
here do advise that a cold install will
work much better if the right precautions
are taken. From personal experience we have
had around 20 attempts and no success.

Make at least two copies of your vg00
volume group. To do this make sure you
have ignite installed. If you haven't got
it you can install it from CORE OS CD,
applications CD or download it from:
http://www.software.hp.com/products/IUX/download.html
To make the ignite tapes:
/opt/ignite/bin/make_recovery -ACvd /dev/rmt/0mn
(it is important to use the no-rewind device
or the image to tape will fail.)
Make normal backups of the other volume groups.
Take an export image of each of the other volume groups by running this for each group. (replace the volume group with your vg name)
vgexport -m vg01.mapfile -p -v -s /dev/vg01
Copy these files to another system for safe
keeping. There are obviously other files that
you will need to make a copy of, but they will
be on your ignite tape anyway.
Do your cold install of HP-UX 11 and then using
the map files from the vgexport import the
remainder of your volume groups and you are
basically finished. Your existing applications
should run without any problems on HPUX 11, but
will run in 32 bit mode, even if you install the 64 bit version.

Good Luck
-Michael
Anyone for a Mutiny ?