- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Would you do this? - Script in Single User Mod...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2003 11:57 AM
01-23-2003 11:57 AM
-Server: D270 - HP-UX 11.00
-No Online JFS
-No Web Console
-No local I/T or technical peope of any kind
Here's what I need to do:
-Install latest patches by EOM
Here's the problem:
-Analysis failed becuase both /var and /usr need to be increased.
What seems more risky, trying to walk a steel mill employee over the phone how to boot to single user mode and increase these filesystem, or, try to write a script for a steel mill employee to run once in single user mode to increase the filesystems?
Is it even possible to write a script to increase /var and /usr?
Thanks again,
Greg
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2003 12:02 PM
01-23-2003 12:02 PM
Re: Would you do this? - Script in Single User Mode
If you're really, really lucky and have some spare room available in vg00, create a /newvar and /newusr (perhaps one at a time), copy the contents of /var into /newvar and the contents of /usr into /newusr, switch the /etc/fstab entries and reboot.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2003 12:03 PM
01-23-2003 12:03 PM
Re: Would you do this? - Script in Single User Mode
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2003 12:04 PM
01-23-2003 12:04 PM
SolutionOnce you verified the LVOL's that you wish to extend, all you need are lvextend and extendfs - both of which are in /sbin. You obviously can only run /sbin/sh and you need to make certain that you install your script in /.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2003 12:04 PM
01-23-2003 12:04 PM
Re: Would you do this? - Script in Single User Mode
- Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2003 12:10 PM
01-23-2003 12:10 PM
Re: Would you do this? - Script in Single User Mode
First thing I'd do is determine:
1) Why /var & /usr are so full.
2) If so, what can be done to "clean" them up.
You could catch a break & find "junk" in there that can be removed. Even find that logs can be trimmed, cleanup can be run to commit old patches, etc.
You may not *need* to extend these at all.
Sure would be much easier than extensions.
My 2 cents,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2003 12:26 PM
01-23-2003 12:26 PM
Re: Would you do this? - Script in Single User Mode
1.) run cleanup -c 1 (hey with limmited space, rolling back patches is a luxury only)
2.) install as many patches as it will let you before you run out of space maybe 1/2 or 1/4 or even 1/10 of the total patches ..at worst 1 patch at a time
reboot and repeat till all patches are done
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2003 12:35 PM
01-23-2003 12:35 PM
Re: Would you do this? - Script in Single User Mode
1. lvextend the logical volumes while they're still mounted. (Yes, you can do this.)
2. Edit /etc/lvmrc to do an extendfs of the filesystems during boot just after the volume groups are activated.
3. Reboot the host and pray.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2003 01:13 PM
01-23-2003 01:13 PM
Re: Would you do this? - Script in Single User Mode
no web console ?
So a real console ?
Set a a local RS232 Modem for suport at your site, test it carefully and fly it down.
Let Mr. steel mill unplug Console and Plug in Modem, Dial in and do it on your own.
Check for special HP-Cables, they allow to stay connected while the system boots, so the port reset will not result in a modem reset.
You can even do ctrl-b and manage the IPL remote ! HP had Multitech Modems for remotesupport to do this in my Computer childhood.
Should work
Volker
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2003 01:36 PM
01-23-2003 01:36 PM
Re: Would you do this? - Script in Single User Mode
If you do it via scripting, the only way to be sure it will work is try it out on a playaround server at your locatoin.
You mention steel mill. We have lots of steel mills near here. If its near Chicago, my time can be bought!!!!
P
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2003 07:20 AM
01-24-2003 07:20 AM
Re: Would you do this? - Script in Single User Mode
It??s to hard to configure!
A web-console from HP works on the console port exactly as on a N-Class Server.
Roland
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2003 07:35 AM
01-24-2003 07:35 AM
Re: Would you do this? - Script in Single User Mode
I agree ... scripting is dangerous, but non technical people can be even worse. Some time ago, I got this script to do an extendfs at reboot. I kept it ... and I can now give it back !
Regards.
In fact it's a text file to be splitted in some files, but really easy to understand.