- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- What to do when you aren't sure a reboot will work...
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
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-07-2008 10:21 AM
01-07-2008 10:21 AM
I've restored what I could from backups, and recreated what I could with many of the lv and vg commands... ioscans yadda yadda...
What I really would like to know (if you have any hints)...is how I can reasonably test if a reboot will work... without rebooting... it's a remote server in an unmanned office and I don't have remote console... just ssh & telnet... which work! Any recommendations on commands to run to kinda test a reboot?
Thanks!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2008 10:29 AM
01-07-2008 10:29 AM
Re: What to do when you aren't sure a reboot will work (*on a remote server)
You really can't be 100% sure everything is solid till you reboot. And then...if you don't have a solid current recovery solution....well....I think you know the rest.
If you don't have a recovery solution, then you need to make fresh exports of all your data vg's and put a copy on another "safe" box. It will save you a ton of work if you choke on reboot. Other thing, any vendor "hook" files or anything unique on that box - copy it over to that "safe" place.
Holler back - folks here love a challenge !
Rgrds,
Rita
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2008 01:51 PM
01-07-2008 01:51 PM
Re: What to do when you aren't sure a reboot will work (*on a remote server)
So far the only solid test if a reboot works is in fact a reboot.
Somebody should be prepared to put the ignite tape into the drive ...
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!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2008 11:26 PM
01-07-2008 11:26 PM
SolutionWith good backups, you should be able to restore a copy of the entire /etc sub-tree to some other location, e.g. /var/tmp/etc and then run "diff -rc /var/tmp/etc /etc" to find the differences. Then review to see which changes are meaningful and/or desirable.
If you cannot do that, someone should prepare to travel to that remote office for a reboot test.
If that is not possible either, you have a lot of careful checking to do, and a high-anxiety-factor reboot after that. I would not recommend this.
In any case, when you do the first real reboot, you should at the very *least* have someone present at the local console who will not be mentally paralyzed by the sight of the command line *and* can reliably relay information and follow instructions to the letter.
This is *not* an exhaustive list, just a few things that come to mind:
1.) /etc/ioconfig - is it OK and does it match /stand/ioconfig? Any problems here might (in worst case) cause a prompt that must be answered on the console.
2.) Does /etc/lvmtab contain all the volume groups and their disks? Although the system *should* be able to complete the reboot with just vg00, it saves some effort to fix this now if necessary.
3.) Is /etc/inittab OK? How about the files it refers to?
With these checks successful, the system at least has a chance to come up to _single user mode_ without complications.
4.) The usual suspects: check the files in /etc/rc.config.d. If you don't have a remote console, be *extremely* careful about network parameters. Also make sure that /etc/rc.config is OK. And don't leave any backup copies or any other junk to /etc/rc.config.d!
5.) Is the PAM configuration OK? (It probably is, because the system allowed you to log in now. Check anyway.)
6.) For network access, check /etc/inetd.conf and the name service configuration files: /etc/nsswitch.conf, /etc/resolv.conf, /etc/hosts. If you use NIS or LDAP, you may have even more things to check here.
7.) The big one: start with /etc/inittab, find any scripts it runs, then examine those scripts to find out what sub-scripts they might call and what files under /etc/ are used. In essence, step through the scripted parts of the HP-UX boot sequence in your head.
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2008 10:55 AM
01-08-2008 10:55 AM
Re: What to do when you aren't sure a reboot will work (*on a remote server)
I've been doing HPUX since version 9.0 - and there *used* to be a little white paper floating around with "50 files you have to have to boot" or something like that (perhaps more catchy) Maybe it was 49 files. I dunno. Was hoping someone remembered and had a copy.
/etc/rc.config.d/netconf was a big one. nsswitch.conf
resolv.conf
fstab
etc... anyway.. thanks for the good tips. No one will be onsite, it will be a white knuckle reboot - hate those.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2008 04:27 PM
01-08-2008 04:27 PM
Re: What to do when you aren't sure a reboot will work (*on a remote server)
Now it's time to try and simulate a reboot as much as possible - well, you sort of can by stepping through all the elements, in reverse order in /sbin/rcX.d.
Assuming you're running at level 3. Keep in mind that services start from the lowest numbers in the /sbin/rcX.d areas, and go up in value. So, We just need to work the problem in reverse - from highest numbered service back down to the lowest.
Go to /sbin/rc3.d and individually, stop and restart every service in the file list that starts with SXXX[someservicename]. Make sure you pick the highest numbered service first. You can issue for example:
./S693[someservicename] status
and if that's OK then
./S693[someservicename] restart
and finally, to leave it down to keep moving back downward through the list
./S693[someservicename] stop
Keep in mind that some services possibly may not have a restart command, so you'd just issue a stop, then a start instead - you get the idea here.
And If that piece bounces up, then you're OK, and then proceed BACKWARDS (HIGHEST NUMBERS FIRST) until you go through all in the list.
If that all works, then it's time to do an
"init 2" and begin working through all the items in run level 2. If that all works, then run "init 1" and repeat for all items in run level 1. If you make it through all that testing its just time to verify that your root is bootable and that / and /stand is there.
Now, verify that each and every file system - one at a time will unmount and remount.
Look at each line in /etc/fstab to get your working list.
For that, the easiest way is just go into "SAM" and create a new bootable kernel. You can do this by choosing "kernel configuration" and then "configurable parameters" - from that menu choose actions and see if you can select "process new kernel" it will probably let you do that without making any changes to the kernel, you'll just get a new one to boot from. If it won't let you without making a change, just change something like "semmns" to one more than it already it is, and then you can generate a new kernel.
If you think any other pieces file systems might have gotten nuked (like /opt, /usr ,etc) - restore those and compare them too. But it sounds like you know where the admin was when the command was issued, so you're probably in better shape than you think.
Now, you'll have verified all of disks, all the contents of /etc that you need, and you definitely have a bootable kernel in place.
If you've passed all this stuff, then you've pretty much covered it all as much as possible, and I think there is an excellent chance that you'd come up fine on reboot, and can't see why not at that point.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2008 04:30 PM
01-08-2008 04:30 PM
Re: What to do when you aren't sure a reboot will work (*on a remote server)
Keep in mind that after doing an "init 2" for the next level of testing - you'd have do a "cd /sbin/rc2.d" - don't just stay in the /sbin/rc3.d directory.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2008 05:56 AM
01-09-2008 05:56 AM
Re: What to do when you aren't sure a reboot will work (*on a remote server)
right?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2008 03:32 PM
01-09-2008 03:32 PM
Re: What to do when you aren't sure a reboot will work (*on a remote server)
So you could get one of those, and send it there, and have them hook one of those up. There are several brands to choose from.
Or, if you can figure out what the network pieces are, just leave them out of the test, and don't init between levels, just bring down everything in lvl 3 you want except anytyhing networking, and then just repeat in level 2 directory. This of course, isn't NEARLY as good a test, so I'd recommend the ssh box strategy.
You might also have laying around some old hardware that HP called "remote console" which was a little box that you'd hook to the serial port, and it had a URL to hit to use the console. It was both slow and unsecured, but it would work if you can believe somehow that you're tunnelling over to the remote site leaves you secure "enough" to recover that box. Alternatively, if you've got a box near that box, you could set up an ssh tunnel with a squid server going to that remote console box, and hit that squid server with your browser (by telling it is using a proxy server). And I've done this before, but it's quite a bit of setup, especially if you've not done it before.
I'm suggesting shipping over a remote ssh secure box to that location already configured by you to work off of that IP address range at that location as the best solution. You should be able to locate a vendor with it in stock and have it overnightted to you, have it figured out at your site in a day, and have it overnighted that evening to the remote site (well I guess it depends on how remote), and have it plugged in and up on the next day. Meaning that you'd be a total of three days out from a test reboot.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2008 05:42 AM
01-10-2008 05:42 AM
Re: What to do when you aren't sure a reboot will work (*on a remote server)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2008 04:23 PM
01-10-2008 04:23 PM
Re: What to do when you aren't sure a reboot will work (*on a remote server)
I'm done. Out of ideas.
Do everything you possibly can to test and then boot that sucker!!! If it totally crashes from the boot, then they HAVE to let you go fix it!
:-)
Where's the box? Maybe it's near me and I can just go fix it for you.
:-)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2008 11:26 AM
01-11-2008 11:26 AM
Re: What to do when you aren't sure a reboot will work (*on a remote server)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2008 11:44 AM
01-11-2008 11:44 AM
Re: What to do when you aren't sure a reboot will work (*on a remote server)
Make an ignite backup of the server (which can be done remotely over to a tape drive near you). Restore that backup onto one of your own servers locally, and see if it starts up.
This method should work for you very well to see if you really can boot, and if not, why not. You could then proceed to fix each item one at a time, both locally and on the remote server until the local one comes up.
When done, get a new ignite backup and replay the whole scenario. When you've got it working here, and all fixes in place over there - you're bound to be up and working fine on your next reboot at the remote site.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2008 11:51 AM
01-11-2008 11:51 AM
Re: What to do when you aren't sure a reboot will work (*on a remote server)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2008 12:12 PM
01-11-2008 12:12 PM
Re: What to do when you aren't sure a reboot will work (*on a remote server)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2008 12:14 PM
01-11-2008 12:14 PM
Re: What to do when you aren't sure a reboot will work (*on a remote server)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2008 12:32 PM
01-11-2008 12:32 PM
Re: What to do when you aren't sure a reboot will work (*on a remote server)
http://www.circlingcycle.com.au/Unix-sources/HP-UX-check-OAT.pl.txt
It's a script from a forum member (here) who had problems going to customer sites and then not knowing whether or not the systems could stand up to patching, rebooting, etc.
So he wrote a script that checks out a wide variety of issues. I've not run it or tested it. But, its goal at least sound similar to your needs, at least at times. Sadly, I snagged the link, but not the guy who posted it's name, and he didn't have it in the script itself (which I was kinda counting on). So, I hate this, but I lost the original poster's name.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2008 01:11 PM
01-11-2008 01:11 PM