Sun System Handbook - ISO 3.4 June 2011 Internal/Partner Edition | |||
|
|
Solution Type Problem Resolution Sure Solution 1007966.1 : Sun Fire[TM] 12K/15K E20K/E25K servers: Can't setkeyswitch domains. POST aborts with ecode=2
PreviouslyPublishedAs 210986
Applies to:Sun Fire 12K ServerSun Fire 15K Server Sun Fire E20K Server Sun Fire E25K Server All Platforms SymptomsThe System Management Services (SMS) setkeyswitch command fails to change the domain state to standby, off, or on, instead aborting the POST process with ecode=2.Example of setkeyswitch command-line output: $ setkeyswitch -d a onFrom the file /var/opt/SUNWSMS/adm/<domain_id>/messages, after trying to execute the setkeyswitch command over a specific domain: May 31 10:44:23 2005 nscssc01 setkeyswitch[9467]-A(): [50000 64834661870356 ERR setKeyswitchLock.cc 74] file open failed:The regular hpost file will not be generated in the domain directory, as hpost has not started at this point. The error appears in the terminal where the setkeyswitch command was executed or in the /var/opt/SUNWSMS/adm/<domain_id>/messages file. ChangesManual intervention.CauseWithin the structure of the SMS directories, under /var/opt/SUNWSMS, the symbolic link /var/opt/SUNWSMS/.lock points to the directory /var/opt/SUNWSMS/SMS/.lock. In the .lock directory, there is a directory entry for each domain, that is: A, B, C, through to R.If a domain has ever been keyswitched on, its domain directory (A through R) has a file in it, named setkeyswitch. This file is opened by the setkeyswitch process at the time of a setkeyswitch operation, as a means of knowing that a keyswitch operation is in progress. This can be observed by using fuser. For example: With a keyswitch operation running for domain "A" In the case that prompted the creation of this document, the /var/opt/SUNWSMS/.lock link was broken, and the /var/opt/SUNWSMS/SMS/.lock directory was empty, i.e. it had none of the domain directories, A through R.$ fuser /var/opt/SUNWSMS/.lock/A/setkeyswitchIf there was no setkeyswitch operation The setkeyswitch operation was unable to create (or open) its lockfile, as the directory where it wanted to open it did not exist. The setkeyswitch code is not designed to expect this, and fails. The only attempts made to open or create the file, are on the file itself: 18054: open("/var/opt/SUNWSMS/SMS1.4.1/.lock/A/setkeyswitch", O_WRONLY|O_SYNC|O_CREAT|O_EXCL, 0666) Err#2 ENOENTThe only known way for this to happen, is for someone to remove components of the SMS directory structure. SolutionThe fix for this issue, is a little difficult, as the directories in /var/opt/SUNWSMS/.lock have ACL's (Access Control Lists), and these ACL's form a part of the SMS security mechanism.The directories cannot simply be re-created. The directories and their ACL's/permissions, need to be recovered from somewhere. Essentially, there are only 2 places the directories could come from:
To recover from the files available on the spare SC: 1. Log in to the spare SC 2. Move to the directory /var/opt/SUNWSMS 3. Tar the directory ./SMS/.lock, for example: tar cvfp lock.tar ./SMS/.lock================================================ Now, move to the the SC with the problem, and... ================================================ 4. Using ftp or some other remote copying program, copy the the lock.tar from the spare SC to the main SC and into the directory /var/opt/SUNWSMS 5. cd to the directory /var/opt/SUNWSMS 6. Untar the file lock.tar, for example: tar xvfp lock.tar7. Create the .lock symbolic link, for example: ln -s ./SMS/.lock .lock8. Make the SC with the problem the main SC 9. Test the setkeyswitch command to ensure complete functionality. If there are continuing issues, please engage a Oracle Service representative to help resolve the issue. Additional InformationNote: While this is a reasonable means of remediation, the questions that should be asked are:
See also "Sun Fire[TM] 12K/15K/E20K/E25K: Incorrect permission(s) on SMS Directories" Doc ID 1006613.1, which discusses other potential causes of the ecode=2 error. Attachments This solution has no attachment |
||||||||||||
|