The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Need Replacement for sed dbsurf Shell Programming and Scripting 0 01-25-2008 02:47 PM
Regarding Replacement rajx UNIX for Dummies Questions & Answers 2 05-22-2007 06:19 AM
Replacement of Delimiter panknil Shell Programming and Scripting 3 05-14-2007 04:35 AM
Replacement using sed handak9 UNIX for Dummies Questions & Answers 5 07-13-2004 08:28 AM
global replacement Babu UNIX for Dummies Questions & Answers 2 07-04-2001 06:02 AM

Closed Thread
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-24-2003
Registered User
 

Join Date: Jul 2003
Posts: 3
cpu replacement. help

very important. can someone tell me the best command to issue on a sun box to bring the system down for a cpu replacement.

i dont know if single user mode is right or completely shuttign down the box as in init 0 or something like that.

and bringing the box back up would involved physically pushing the button the box right??
Forum Sponsor
  #2 (permalink)  
Old 07-24-2003
Registered User
 

Join Date: Jul 2002
Location: new york
Posts: 1,025
yeah uh you do not want to mess with the internals while the system is connected to power at all. use whatever comman you would usually use to halt the system
eg: shutdown -h now

once that happens make sure you unplug it and make sure you are grounded. i have no idea if sun boxen have hot swappable cpus or not. if you cant find out the safest way is to do it while its OFF.
  #3 (permalink)  
Old 07-24-2003
s93366's Avatar
Registered User
 

Join Date: Apr 2002
Location: sweden
Posts: 152
Some of the bigger boxes have hot pluggable cpu's.. what kind of box is it?

/peter
  #4 (permalink)  
Old 07-25-2003
davidg's Avatar
Registered User
 

Join Date: Jul 2003
Location: Holland
Posts: 207
Hi,

For Sun you have multiple solutions to get the box down.
A normal one is "init 0" This brings your server safely in the "ok"prompt. By turning the power switch off you've done the right thing and start doing maintenance.
Normaly you choose for init 0 as you are able to find your machine back. The light is colored orange instead of green blinking and you know you have hit the right system. However if you make a mistake it's easier to bring the system back online by typing boot.

A faster way is "init 5" This will not only bring the system to the ok prompt, but immediatly after will shut down power of the system. You have to manualy power up the system again now. You probably understand why I would not choose for this option when you work in a large datacenter.

When having troubles in getting the machine down as it's hanging due to problems in the OS, there is only one beautifull command that always gets your server in the ok prompt :

uadmin 0 2 (or 2 0, can't remember, one just gives an error)

This will kick the server to the ok-prompt, it only syncs data and than leaves the OS behind
Mind that you use this option only in emergencies !!!


Regs David
Google UNIX.COM
Closed Thread

Thread Tools
Display Modes




All times are GMT -7. The time now is 02:59 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0