My Oracle Support Banner

Sun Fire[TM] 12K/15K E20K/E25K servers: Can't setkeyswitch domains. POST aborts with ecode=2 (Doc ID 1007966.1)

Last updated on JANUARY 30, 2022

Applies to:

Sun Fire 12K Server - Version All Versions and later
Sun 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

Symptoms

The 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 on
[50000] file open failed: file=/var/opt/SUNWSMS/SMS1.4.1/.lock/A/setkeyswitch, ecode=2
[50002] file unlink failed: file=/var/opt/SUNWSMS/SMS1.4.1/.lock/A/setkeyswitch, ecode=2
[5311] setkeyswitch lock acquisition failed: ecode=2

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 sc01 setkeyswitch[9467]-A(): [50000 64834661870356 ERR setKeyswitchLock.cc 74] file open failed:
file=/var/opt/SUNWSMS/SMS1.4.1/.lock/A/setkeyswitch, ecode=2
May 31 10:44:23 2005 sc01 setkeyswitch[9467]-A(): [50002 64834674914132 ERR setKeyswitchLock.cc 75] file unlink failed:
file=/var/opt/SUNWSMS/SMS1.4.1/.lock/A/setkeyswitch, ecode=2
May 31 10:44:23 2005 sc01 setkeyswitch[9467]-A(): [5311 64834675904421 ERR setKeyswitchLock.cc 76] setkeyswitch lock acquisition failed: ecode=2

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.

Changes

Manual intervention.

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.