![]() | Oracle System Handbook - ISO 7.0 May 2018 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 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 SymptomsSymptoms Causesee resolution SolutionSymptoms
-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 Permission denied details which '.postrc' has the wrong access rights. for b) Unable to open .postrc file ./.postrc Permission denied 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/ - /etc/opt/SUNWSMS/config/platform 2) There exist different users with different UIDs: /etc/passwd <strong>sms-dsmd</strong> :x: <strong>12</strong> :20:SMS Domain Status Monitoring Daemon:: <strong>sms-svc</strong> :x: <strong>6</strong> :10:SMS Service User:/export/home/sms-svc:/bin/csh 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.
Attachments This solution has no attachment |
||||||||||||
|