![]() | Oracle System Handbook - ISO 7.0 May 2018 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 Server - Version All Versions and laterSun Fire 15K Server - Version All Versions and later Sun Fire E20K Server - Version All Versions and later Sun Fire E25K Server - Version All Versions and later All Platforms ***Checked for relevance on 13-JUL-2014*** 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. $ setkeyswitch -d a on From 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. $ fuser /var/opt/SUNWSMS/.lock/A/setkeyswitchIf there was no setkeyswitch operation 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. 18054: open("/var/opt/SUNWSMS/SMS1.4.1/.lock/A/setkeyswitch", O_WRONLY|O_SYNC|O_CREAT|O_EXCL, 0666) Err#2 ENOENT The 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.
NOTE: smsbackup does NOT backup the setkeyswitch directories. tar cvfp lock.tar ./SMS/.lock ================================================ tar xvfp lock.tar 7. Create the .lock symbolic link, for example: ln -s ./SMS/.lock .lock 8. Make the SC with the problem the main SC Additional InformationNote: While this is a reasonable means of remediation, the questions that should be asked are:
If these questions cannot be answered, and it is uncertain what else may have been impacted, then perhaps the best solution would be to remove and re-install the SMS software, then complete the configuration from the beginning. Attachments This solution has no attachment |
||||||||||||
|