1830168 Members
5371 Online
109999 Solutions
New Discussion

patch / single user mode

 
Cathy Arora
Frequent Advisor

patch / single user mode

I was installing GOLFQPK11i patche bundle and I was not able due to disk space problem on /var and /usr filesystem
So I did lvextend and when I was trying to extend filesytem I counld not. umount /usr or umount /var
I got a message device busy.
So question is what filesystem must be mounted to do anything.
Also how do I logon as single user mode?
is console mode or single user mode are the same thing?
raj
9 REPLIES 9
John Carr_2
Honored Contributor

Re: patch / single user mode

Hi it is not possible to do this in multiuser mode you need to be in single user mode.

alternatively depending on what your system is and how big you can also use ignite to create a system bootable tape then restore it specifying new filesystem sizes interactively.

:-) John.
Kurt Beyers.
Honored Contributor

Re: patch / single user mode

Cathy,

The increase of /usr and /var is discussed in http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=340167

best regards,

Kurt
John Carr_2
Honored Contributor

Re: patch / single user mode

sorry missed part of your question to get to single user mode

providing you can shut down your machine

etc/shutdown -hy now

power system back on and press space bar to interrupt boot cycle.

type "bo" to restart boot cycle

when asked if you wish to interract with IPL say YES

now type "hpux -is"

at the hash prompt you are logged in as root in single user mode

:-) John.
Pete Randall
Outstanding Contributor

Re: patch / single user mode

Cathy,

In order to extend the file system you must unmount it, as you discovered. In the case of /usr and /var, they are used so much that the only real way to get them unmounted is to reboot in single user mode. This is done by interrupting the boot process at the "10 second" message, interacting with ISL, and entering "hpux -is" at the ISL prompt. When you're done, just reboot the machine.

In the case of /var, it might be a good idea to check if it could be cleaned out to release some space - perhaps in /var/tmp, or use the cleanup command to remove superceded patches.


Pete

Pete
Dave Hutton
Honored Contributor

Re: patch / single user mode

If you have Online JFS you can extend those on the fly as long as they aren't 100% full. Otherwise you would have to go down to single user and extend them that way.
You can check to see if you have it installed by swlist. But it does require a license so even if it's installed you may not be able to extend on the fly if you haven't put the license in yet. You can check to see if its licensed by on 11.11:
alcatraz:root /root # vxlicense -p
vrts:vxlicense: INFO: No valid license installed
alcatraz:root /root #
The other way to tell is after lvextending your lvols you run the fsadm -F vxfs -b bytesize /mountpoint it will say if your licensed also.

You would have to be on the console to be in single user mode since you won't have network connectivity.



Dave
Dave Hutton
Honored Contributor

Re: patch / single user mode

I should add doing the fsadm command if it's not licensed it won't do it and will say that's the reason. It's the actual command to extend it so, if your licensed you'll extend it. So don't throw in some arbitrary numbers since it is an actual command.

Cathy Arora
Frequent Advisor

Re: patch / single user mode

Thanks very much and I apologize for assigning points
raj
Cathy Arora
Frequent Advisor

Re: patch / single user mode

I meant to say I apologize for assigning point late
raj
Tim Sanko
Trusted Contributor

Re: patch / single user mode

Cathy,

What you want to do is also very easy to do if you have Ignite/UX on the system. It is almost always woth the trouble. If you ever need to resize the root volume /dev/vg00/lvol3 you will need to have made an ignite image. Consider HP's Ignite/UX if there is any possibility of further resizing...


Tim