Sun Microsystems, Inc.  Sun System Handbook - ISO 4.1 October 2012 Internal/Partner Edition
   Home | Current Systems | Former STK Products | EOL Systems | Components | General Info | Search | Feedback

Asset ID: 1-72-1001923.1
Update Date:2012-01-18
Keywords:

Solution Type  Problem Resolution Sure

Solution  1001923.1 :   Sun Fire[TM] 12K/15K/E20K/E25K: smsconnectsc command gives "Unable to obtain a lock." errors  


Related Items
  • Sun Fire E25K Server
  •  
  • Sun Fire E20K Server
  •  
  • Sun Fire 12K Server
  •  
  • Sun Fire 15K Server
  •  
Related Categories
  • PLA-Support>Sun Systems>SPARC>Enterprise>SN-SPARC: SF-Exxk
  •  
  • .Old GCS Categories>Sun Microsystems>Servers>High-End Servers
  •  

PreviouslyPublishedAs
202678


Applies to:

Sun Fire 12K Server
Sun Fire 15K Server
Sun Fire E20K Server
Sun Fire E25K Server
All Platforms

Symptoms

From one System Controller (SC), a user issues the command smsconnectsc in order to obtain console access to the other SC. The command errors as shown below:
sc0:sms-svc> smsconnectsc
Unable to obtain a lock.
sc0:sms-svc>

Cause

From the smsconnectsc man page:
smsconnectsc enables the bit that connects the local SC's
port B to the remote SC's RS-232 port A when you are logged
in to the local SC.
This means that the SC you are issuing the command from uses it's port B to connect to the remote port A. There is only one allowable console connection of this type allowed. The man page continues to state:
smsconnectsc works in the absence of an external connection
to the remote SC. If the remote SC has an active external
connection to port A, then smsconnectsc fails and the
session usually hangs.
Not stated in the man page is that multiple smsconnectsc connections will also fail (although this information should be intuitive). Since only a single pathway of local port B to remote port A exists, there can only be one console session to an SC active at a single time.

So an SC can have either a single active remote console connection via the external serial port, or a single active internal smsconnectsc connection.

Solution

From the SC which got the "Unable to obtain a lock." error, do the following:
sc0:sms-svc> ps -ef | grep smsconnectsc
sms-svc  5314  5271  0 16:59:04 pts/5    0:00 smsconnectsc

If there is an smsconnectsc process, try using that console connection if possible. If for some reason that console connection is unusable, try exiting it gracefully by entering ~. in the smsconnectsc session. If it is not possible to exit that connection gracefully kill the process and retry the smsconnectsc again.

If no such process currently exists, an external serial port console connection must exist. If so try to use that connection if possible, or exit that session to allow the ports to be free to smsconnectsc.


Product
Sun Fire 12K Server
Sun Fire 15K Server
Sun Fire E25K Server
Sun Fire E20K Server

Keywords: smsconnectsc, SC, System Controller, console, SMS


Previously Published As 74479



Attachments
This solution has no attachment
  Copyright © 2012 Sun Microsystems, Inc.  All rights reserved.
 Feedback