![]() | Sun System Handbook - ISO 4.1 October 2012 Internal/Partner Edition | ||
|
|
![]() |
||||||||||||
Solution Type Problem Resolution Sure Solution 1010600.1 : Sun Fire[TM] 12K/15K/E20K/E25K: "Domain failed by hpost: ecode=39"
PreviouslyPublishedAs 214583
Applies to:Sun Fire 12K ServerSun Fire 15K Server Sun Fire E20K Server Sun Fire E25K Server All Platforms SymptomsSymptomsDomain fails to reboot using `reboot`, `init 6`, `setkeyswitch off/on`. There exist 2 scenarios named 'Scenario A' and 'Scenario B' which exhibit these symptoms. (domain C is used in the examples provided). Causesee resolutionSolutionSymptomsDomain fails to reboot using `reboot`, `init 6`, `setkeyswitch off/on`.
Resolution The corresponding '.postrc' file must be world readable and should have the access rights '644' ( the owner must not necessarily be 'sms-svc') -rw-r--r-- 1 sms-svc staff 9 Mar 19 09:32 .postrc The corresponding '.postrc' file can be determined by the log data as described in the above scenarios. for a) Unable to open .postrc file /etc/opt/SUNWSMS/config/C/.postrc for b) Describes that in the directory where the 'setkeyswitch' command is run ( the current working directory) the '.postrc' file has the wrong access rights. In both cases changing the access rights of the corresponding '.postrc' file to '644' is the solution. - Technical background:
1) When post is run on the SC, it looks for the '.postrc'
file in three locations. The first one it finds, is the one it will
use. The order is: -
./ (current working directory; for dsmd /var/tmp is its
current working directory.) -
/etc/opt/SUNWSMS/config/ 2) There exist different users with different UIDs: /etc/passwd user dsmd-svc id==12 user sms-svc id==6 3) Given Scenario A, when a 'reboot / init 6' command is used, hpost is run by user 'sms-dsmd'. If the used [see 1) ] '.postrc' has the following access rights set: -rw------- 1 sms-svc staff 9 Mar 19 09:32 .postrc user 'sms-dsmd' cannot read the file and you run in problem a). Given Scenario B, when the 'setkeyswitch -d C on' command is run by user 'sms-svc', hpost is run by user 'sms-svc'. If the used [see 1) ] '.postrc' has the following access rights set: -rw------- 1 sms-dsmd staff 9 Mar 19 09:32 .postrc user 'sms-svc' cannot read the file and you run in problem b). 3c) If the used [see 1) ] '.postrc' has the following access rights set: -rw------- 1 root staff 9 Mar 19 09:32 .postrc You will run into problem a) and b) because neither user 'sms-dsmd' nor user 'sms-svc' can read the file. - Avoiding such a situation: 1. Verify that all '.postrc' files are world readable. Even if the platform '.postrc' file is world readable and the domain_id is not, post will fail because the domain_id '.postrc' file will be used first. 2) Verify that there exist only wanted/needed '.postrc' files and no random/test instances. e.g.: When a 'reboot / init 6' command is used, hpost is run by user 'sms-dsmd'. This user (like all of the other user daemons for SMS) has a home directory of /var/tmp. Since hpost is run by this user, this user's home directory is considered to be "./ (current working directory)". Verify that there is not a copy of .postrc in /var/tmp. If there is, there will be a /var/tmp/post directory created with the post logs from the reboot. Product Sun Fire 15K Server Sun Fire 12K Server Sun Fire E25K Server Sun Fire E20K Server Internal Comments For the internal use of Sun Employee's. Related Bugs: Bug ID: 4827345 Desire an API to make .postrc files readable Bug ID: 4858798 Canonical .postrc files should always be readable From the Bugs: A fix should be implemented in SMS 1.4 12k, 15k, Starcat, reboot, init6, setkeyswitch, fail, domain, hpost, ecode=39, .postrc Previously Published As 52234 Attachments This solution has no attachment |
||||||||||||
|