Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I need to physically move a server running Solaris to a new location. If I power off the machine and restart it, I would manually need to check if all the required process are running.

Is there any way I can hibernate the machine so that it would just restore its state when I power it on again?

share|improve this question
1  
Sounds like you need to look into a proper monitoring/notification system. –  EEAA Mar 4 '11 at 4:52
    
Out of interest, how are you expecting to figure out if all the services have come out of hibernation correctly, even if it were possible? Perhaps a better bet is to come up with a disaster recovery plan, or the monitering/notification idea above first. –  Decado Mar 4 '11 at 6:04
    
What version of Solaris is this? –  Shaun Dewberry Mar 4 '11 at 13:59
1  
@Shaun: this is Solaris 10. @others: I'm not really a sysadmin. But I think I need to call one :) I was hoping there would be an easy way. Apparently, there isn't. –  Aku Mar 4 '11 at 14:52
1  
Your 'hibernated' server will wake up to find that it's now in a parallel world where none of its assumptions are true anymore. You'll probably delve into a spiral of service restarting activities until they work. It's better to understand your server and the environment and make the necessary changes. It's highly unlikely that this will work without adjustments unless your new environment is exactly the same (which I doubt it is). –  gtirloni Mar 5 '11 at 19:56
show 1 more comment

3 Answers

up vote 2 down vote accepted

Depends on the machine - Solaris on some SPARC systems supports suspend-to-disk via the sys-suspend command, but Solaris on x86/x64 systems does not.

share|improve this answer
add comment

See if you can find the sys-suspend command alanc mentioned above (test it out on another system if possible).

Alternatively a workaround would be to do a 'ps -ef' listing on the currently running processes on the server. Shutdown, move and restart the system and compare the 'ps' output once you've restarted the server to make sure the same set of processes are running once more. (They will obviously be running under different process id's.)

For a more verbose listing of the full commands that are running you could do

/usr/ucb/ps -auxwww

which gives the full process command line with parameters and may be more helpful.

share|improve this answer
add comment

In Solaris you can check any process errors after relocation by looking at console when system booting, plus check the /var/adm/messages file and log files under /var/log for any errors.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.