System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

Activities to be performed prior/post to HP-UX server reboot

 
SOLVED
Go to solution
AL_3001
Regular Advisor

Activities to be performed prior/post to HP-UX server reboot

Hi Friends,
I have to reboot a server. Can you tell me what actions i need to perform prior to server reboot (e.g o/p of bdf,/etc/fstab). Also, what i need to check post reboot? Thanks in advance.
21 REPLIES
Oviwan
Honored Contributor

Re: Activities to be performed prior/post to HP-UX server reboot

Hey

If there are running any databases, you have to shutdown them before.

Regards
AwadheshPandey
Honored Contributor

Re: Activities to be performed prior/post to HP-UX server reboot

better to take a ignite backup of OS.
Also run nickel script to take backup of system configuration. you can download this from here.
http://h20331.www2.hp.com/Hpsub/cache/286022-0-0-225-121.html
Also visit the thread.
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=586953&admit=-682735245+1189078566618+28353475

After reboot you need to verify server's network availability as well as applications and database availabilty.

Regards,
It's kind of fun to do the impossible
Wim Rombauts
Honored Contributor
Solution

Re: Activities to be performed prior/post to HP-UX server reboot

If your system is set up properly, you don't have to check anything before rebooting, although it may be wise to stop all 3rd party software gracefully before rebooting.
Also, reboot with the "shutdown -r" command, not with reboot.
After rebooting, it is allways wise to check /etc/rc.log (or follow the output on the console) to check that there were nor errors or failures.
Also, check if your 3rd party software is succesfully started.

If your system has all the correct system shutdown and starup scripts, you can just "shutdown -r" and be quite certain it will come up fully functional again without worrying.
Bill Hassell
Honored Contributor

Re: Activities to be performed prior/post to HP-UX server reboot

If the server has never been rebooted, you should run an Ignite backup (not tar, cpio, etc). make_tape_recovery should be run at least monthly if not weekly. Review the file /etc/rc.log.old which shows the last shutdown results. /etc/rc.log shows the most recent bootup results. Fix any errors before shutdown. You can test fstab with mount -a.

You must connect a logging device to the real console -- a PC running a smart terminal emulator (not hyperterminal) or similar. This will allow capturing all activities including hardware selftests. Once rebooted, review all the console messages and look at the new /etc/rc.log and /etc/rc.log.old files.

Naturally, you should check the operation of your applications. A good sysadmin plan is to have a standard set of tests designed for the applications to make sure all resources are working. Note that many changes may have been made while the system was running but the root user never added these changes to the shutdown and startup code.


Bill Hassell, sysadmin
Wim Rombauts
Honored Contributor

Re: Activities to be performed prior/post to HP-UX server reboot

If you are REALLY suspicious about your system configuration, and it's ability to boot, you can try some commands like this to verify your boot configuration :
lvlnboot -v
efi_ls /dev/dsk/s1 EFI (Itanium only)

There are probably some more commands like this to check some initial boot capability of your system. As soon as your system is able to load the kernel, you are able to boot to single-user mode and further fix your system configuration if necessary.

Amit Parui
Valued Contributor

Re: Activities to be performed prior/post to HP-UX server reboot

Hi Ashish,

If your system is running fine, nothing much is needed to be done before reboot, only when you aren't familiar about the server better you can take a snippet of bdf (especially for nfs fs), also look out for any 3rd party application like SAP, Oracle etc. and shut them down properly.

Post Reboot - You can again check the bdf and check the syslog.log and dmesg for any errors.

Else i suppose evrything should go fine.
If Life gives u a ROCK, its upto u to build a BRIDGE or a WALL !!!
Amit Parui
Valued Contributor

Re: Activities to be performed prior/post to HP-UX server reboot

Hey Ashish,

If you are really not sure, then best is to take an output of cfg2html (chk out cfg2html man page) befor and chk the difference between the prior and post.

You can best find out the difference there..
If Life gives u a ROCK, its upto u to build a BRIDGE or a WALL !!!
Amit Parui
Valued Contributor

Re: Activities to be performed prior/post to HP-UX server reboot

If you have Ignite installed, you can use the print_manifest command.

And also, you can use the following command:

# echo "map selall info;wait infolog" | cstm > /tmp/cstm.txt

then by viewing cstm.txt, u will get all the info abt the system h/w.
If Life gives u a ROCK, its upto u to build a BRIDGE or a WALL !!!
AL_3001
Regular Advisor

Re: Activities to be performed prior/post to HP-UX server reboot

Hi Amit,
I have taken the output of print_manifest. However, cfg2html does not work.
Steven E. Protter
Exalted Contributor

Re: Activities to be performed prior/post to HP-UX server reboot

Shalom,

If you have done nothing to the server, eg, install software,patches and such, you need to do nothing prior to reboot.

A bdf is nice but if your system is stable, get a cup of coffee and enjoy the reboot.

If you have made changes, than an Ignite make_tape_recovery or make_net_recovery is a good idea.

Long ago, I divorced Ignite backups from changes or reboots. I do them once a week, even if nothing has changed. That saves me the trouble of doing a special one before a patch install.

For a simple reboot my checklist is simple:
1) Make sure I know where the last Ignite backup is.
2) Allow myself a cup of coffee (since hpux is so reliable this limits my caffiene intake even with hundreds of servers to support).
3) Enjoy it.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
AL_3001
Regular Advisor

Re: Activities to be performed prior/post to HP-UX server reboot

Steven,
The server has been up for 533 days and the SAP team wants a reboot as it has been a long time since the server was last rebooted. We have SAP and Dataprotector running on the server, SAP will be shutdown by the SAP team prior to the reboot and we will shutdown data protector daemons (omnisv stop).

I think once that is done we can go ahead and reboot the server?
Steven E. Protter
Exalted Contributor

Re: Activities to be performed prior/post to HP-UX server reboot

Shalom again,

Wow 533 days, that is impressive.

That means you are nearly two years behind in bi-annual and security patches. This is something that needs to be dealt with.

For now, make sure you have a current backup of the SAP data and a good ignite make_tape_recovery or make_net_recovery

Try and schedule this box some downtime for bi-annual patching, also proceeded by an Ignite backup. If you use oracle as a back end db server, relink it after patching.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Pete Randall
Outstanding Contributor

Re: Activities to be performed prior/post to HP-UX server reboot

Normally Data Protector will have an automatic shutdown script: /sbin/init.d/omni. This should have been set up when DP was installed. I would expect that SAP would also have automatic start/stop scripts set up in /sbin/init.d but you should definitely check to make sure.

If those are the only two applications running on this machine, then you should be ready to reboot ("shutdown -r") once you are sure they have been shutdown or will be gracefully halted during the shutdown process.


Pete

Pete
Wim Rombauts
Honored Contributor

Re: Activities to be performed prior/post to HP-UX server reboot

Yes, you can go ahead.

Unless someone has messed with the boot configuration, (quickly check file /stand/bootconf and the output of lvlnboot -v for the correct listing of your boot disks) you can enjoy the cup of coffee :-)
Wim Rombauts
Honored Contributor

Re: Activities to be performed prior/post to HP-UX server reboot

Het Steven, relinking Oracle is no longer an issue since 8i, since it uses dynamic libraries from that release on.
Steven E. Protter
Exalted Contributor

Re: Activities to be performed prior/post to HP-UX server reboot

I beg to disagree. An Oracle relink is necessary if any of the patches touch the compilers that Oracle uses to build its binaries.

If you are two years behind on patching, its likely that is the case. I'd like to see a doc that contradicts this practice which my DBA's continue to use with Oracle 10G.

Always happy to be proven wrong.

:-)

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Wim Rombauts
Honored Contributor

Re: Activities to be performed prior/post to HP-UX server reboot

Hmmm, it's beside the point for this thread, but maybe I should take a closer look at your statement.
Until now, I have never relinked my Oracle (9iR2, 10gR2), whatever patches I installed. Maybe I have not yet installed that specific patch that breaks my Oracle (sounds unlikely), or maybe, by not relinking, I am not using the new fixes and features that come with the new patches ? I am going to take a look at this.
AL_3001
Regular Advisor

Re: Activities to be performed prior/post to HP-UX server reboot

Hi,
There are no scripts in /sbin/init.d/ to process SAP or Oracle, since the SAP team do not wish to have automated application shutdown or startup at server boot time. They will be getting the SAP down manually before the reboot. The reboot will be done tomorrow, will keep you guys updated :-)

You all have been fantastic. Thanks a million.
Dennis Handly
Acclaimed Contributor

Re: Activities to be performed prior/post to HP-UX server reboot

>SEP: I beg to disagree. An Oracle relink is necessary if any of the patches touch the compilers that Oracle uses to build its binaries.

I would disagree your statement. Patching compilers isn't going to make a difference on a relink, since the objects didn't change.

>Wim: I have never relinked my Oracle, whatever patches I installed.

Since HP-UX is binary compatible, there is no reason to relink. Especially if Oracle doesn't tell you to do this.

>I am not using the new fixes and features that come with the new patches?

If you don't have an Oracle patch, it seems that you shouldn't need to relink.
AL_3001
Regular Advisor

Re: Activities to be performed prior/post to HP-UX server reboot

Hello Oviwan, Awadhesh, Wim, Bill, Amit, Steven and Pete,

The server was rebooted this
evening and it is was successful...

Thank You each and everyone of you for your excellent inputs :-)

Cheers,
Ashish
AL_3001
Regular Advisor

Re: Activities to be performed prior/post to HP-UX server reboot

Thanks gurus :)