Operating System - HP-UX
1748139 Members
3887 Online
108758 Solutions
New Discussion юеВ

Re: 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 21
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.