AIX 7安装11.2.0.4 RAC-(主机名大写坑)

前端之家收集整理的这篇文章主要介绍了AIX 7安装11.2.0.4 RAC-(主机名大写坑)前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

在我们安装Oracle RAC的时候,要求操作系统的主机名都要小写,8个字符以内,不要使用下划线,不然我们在配置互信验证的时候是无法通过的,在配置EMCC的时候也可能有问题。

AIX + 11G RAC 手动配置互信

  1. 分别在grid用户oracle用户 执行
  2.  
  3. $ ./sshsetup/sshUserSetup.sh -user grid -hosts "test1a test1b" -advanced -noPromptPassphrase
  4. The output of this script is also logged into /tmp/sshUserSetup_2018-03-20-22-42-12.log
  5. Hosts are test1a test1b
  6. user is grid
  7. Platform:- AIX
  8. Checking if the remote hosts are reachable
  9. PING test1a: (20.1.1.3): 56 data bytes
  10. 64 bytes from 20.1.1.3: icmp_seq=0 ttl=255 time=0 ms
  11. 64 bytes from 20.1.1.3: icmp_seq=1 ttl=255 time=0 ms
  12. 64 bytes from 20.1.1.3: icmp_seq=2 ttl=255 time=0 ms
  13. 64 bytes from 20.1.1.3: icmp_seq=3 ttl=255 time=0 ms
  14. 64 bytes from 20.1.1.3: icmp_seq=4 ttl=255 time=0 ms
  15.  
  16. --- test1a ping statistics ---
  17. 5 packets transmitted,5 packets received,0% packet loss
  18. round-trip min/avg/max = 0/0/0 ms
  19. PING test1b: (20.1.1.4): 56 data bytes
  20. 64 bytes from 20.1.1.4: icmp_seq=0 ttl=255 time=0 ms
  21. 64 bytes from 20.1.1.4: icmp_seq=1 ttl=255 time=0 ms
  22. 64 bytes from 20.1.1.4: icmp_seq=2 ttl=255 time=0 ms
  23. 64 bytes from 20.1.1.4: icmp_seq=3 ttl=255 time=0 ms
  24. 64 bytes from 20.1.1.4: icmp_seq=4 ttl=255 time=0 ms
  25.  
  26. --- test1b ping statistics ---
  27. 5 packets transmitted,0% packet loss
  28. round-trip min/avg/max = 0/0/0 ms
  29. Remote host reachability check succeeded.
  30. The following hosts are reachable: test1a test1b.
  31. The following hosts are not reachable: .
  32. All hosts are reachable. Proceeding further...
  33. firsthost test1a
  34. numhosts 2
  35. The script will setup SSH connectivity from the host test1a to all
  36. the remote hosts. After the script is executed,the user can use SSH to run
  37. commands on the remote hosts or copy files between this host test1a
  38. and the remote hosts without being prompted for passwords or confirmations.
  39.  
  40. NOTE 1:
  41. As part of the setup procedure,this script will use ssh and scp to copy
  42. files between the local host and the remote hosts. Since the script does not
  43. store passwords,you may be prompted for the passwords during the execution of
  44. the script whenever ssh or scp is invoked.
  45.  
  46. NOTE 2:
  47. AS PER SSH REQUIREMENTS,THIS SCRIPT WILL SECURE THE USER HOME DIRECTORY
  48. AND THE .ssh DIRECTORY BY REVOKING GROUP AND WORLD WRITE PRIVILEDGES TO THESE
  49. directories.
  50.  
  51. Do you want to continue and let the script make the above mentioned changes (yes/no)?
  52. yes
  53.  
  54. The user chose yes
  55. User chose to skip passphrase related questions.
  56. Creating .ssh directory on local host,if not present already
  57. Creating authorized_keys file on local host
  58. Changing permissions on authorized_keys to 644 on local host
  59. Creating known_hosts file on local host
  60. Changing permissions on known_hosts to 644 on local host
  61. Creating config file on local host
  62. If a config file exists already at /home/grid/.ssh/config,it would be backed up to /home/grid/.ssh/config.backup.
  63. Removing old private/public keys on local host
  64. Running SSH keygen on local host with empty passphrase
  65. Generating public/private rsa key pair.
  66. Your identification has been saved in /home/grid/.ssh/id_rsa.
  67. Your public key has been saved in /home/grid/.ssh/id_rsa.pub.
  68. The key fingerprint is:
  69. SHA256:EF3sifhL3fQcDNDryrwYFuLS54euDwn6K75GJewXQMY grid@test1a
  70. The key's randomart image is:
  71. +---[RSA 1024]----+
  72. | oo .. ooo |
  73. | .E .. . o |
  74. | . . .. o . + |
  75. | o o ... o o o |
  76. | . o....S. + o . |
  77. | o..+ oo.. o o |
  78. | .... =.+= . |
  79. | o. . =oo= |
  80. | oooo..+=... |
  81. +----[SHA256]-----+
  82. Creating .ssh directory and setting permissions on remote host test1a
  83. THE SCRIPT WOULD ALSO BE REVOKING WRITE PERMISSIONS FOR group AND others ON THE HOME DIRECTORY FOR grid. THIS IS AN SSH REQUIREMENT.
  84. The script would create /home/grid/.ssh/config file on remote host test1a. If a config file exists already at /home/grid/.ssh/config,it would be backed up to /home/grid/.ssh/config.backup.
  85. The user may be prompted for a password here since the script would be running SSH on host test1a.
  86. Warning: Permanently added 'test1a,20.1.1.3' (ECDSA) to the list of known hosts.
  87. grid@test1a's password:
  88. Done with creating .ssh directory and setting permissions on remote host test1a.
  89. Creating .ssh directory and setting permissions on remote host test1b
  90. THE SCRIPT WOULD ALSO BE REVOKING WRITE PERMISSIONS FOR group AND others ON THE HOME DIRECTORY FOR grid. THIS IS AN SSH REQUIREMENT.
  91. The script would create /home/grid/.ssh/config file on remote host test1b. If a config file exists already at /home/grid/.ssh/config,it would be backed up to /home/grid/.ssh/config.backup.
  92. The user may be prompted for a password here since the script would be running SSH on host test1b.
  93. Warning: Permanently added 'test1b,20.1.1.4' (ECDSA) to the list of known hosts.
  94. grid@test1b's password:
  95. Done with creating .ssh directory and setting permissions on remote host test1b.
  96. Copying local host public key to the remote host test1a
  97. The user may be prompted for a password or passphrase here since the script would be using SCP for host test1a.
  98. grid@test1a's password:
  99. Done copying local host public key to the remote host test1a
  100. Copying local host public key to the remote host test1b
  101. The user may be prompted for a password or passphrase here since the script would be using SCP for host test1b.
  102. grid@test1b's password:
  103. Done copying local host public key to the remote host test1b
  104. Creating keys on remote host test1a if they do not exist already. This is required to setup SSH on host test1a.
  105.  
  106. Creating keys on remote host test1b if they do not exist already. This is required to setup SSH on host test1b.
  107. Generating public/private rsa key pair.
  108. Your identification has been saved in .ssh/id_rsa.
  109. Your public key has been saved in .ssh/id_rsa.pub.
  110. The key fingerprint is:
  111. SHA256:hcmrstSGW5DnyeR2jCZHXpIhZXO5yL9oUMYuhji+auw grid@test1b
  112. The key's randomart image is:
  113. +---[RSA 1024]----+
  114. | + .. |
  115. | o +.o |
  116. | .o..+.. |
  117. | o*o.o |
  118. | . .o+*.S |
  119. |o . +%.B. |
  120. |o. .=o/.o. |
  121. | + . @o.. |
  122. |=E. o. |
  123. +----[SHA256]-----+
  124. Updating authorized_keys file on remote host test1a
  125. Updating known_hosts file on remote host test1a
  126. Updating authorized_keys file on remote host test1b
  127. Updating known_hosts file on remote host test1b
  128. cat: 0652-050 Cannot open /home/grid/.ssh/known_hosts.tmp.
  129. cat: 0652-050 Cannot open /home/grid/.ssh/authorized_keys.tmp.
  130. SSH setup is complete.
  131.  
  132. ------------------------------------------------------------------------
  133. Verifying SSH setup
  134. ===================
  135. The script will now run the date command on the remote nodes using ssh
  136. to verify if ssh is setup correctly. IF THE SETUP IS CORRECTLY SETUP,THERE SHOULD BE NO OUTPUT OTHER THAN THE DATE AND SSH SHOULD NOT ASK FOR
  137. PASSWORDS. If you see any output other than date or are prompted for the
  138. password,ssh is not setup correctly and you will need to resolve the
  139. issue and set up ssh again.
  140. The possible causes for failure could be:
  141. 1. The server settings in /etc/ssh/sshd_config file do not allow ssh
  142. for user grid.
  143. 2. The server may have disabled public key based authentication.
  144. 3. The client public key on the server may be outdated.
  145. 4. /home/grid or /home/grid/.ssh on the remote host may not be owned by grid.
  146. 5. User may not have passed -shared option for shared remote users or
  147. may be passing the -shared option for non-shared remote users.
  148. 6. If there is output in addition to the date,but no password is asked,it may be a security alert shown as part of company policy. Append the
  149. additional text to the <OMS HOME>/sysman/prov/resources/ignoreMessages.txt file.
  150. ------------------------------------------------------------------------
  151. --test1a:--
  152. Running /usr/bin/ssh -x -l grid test1a date to verify SSH connectivity has been setup from local host to test1a.
  153. IF YOU SEE ANY OTHER OUTPUT BESIDES THE OUTPUT OF THE DATE COMMAND OR IF YOU ARE PROMPTED FOR A PASSWORD HERE,IT MEANS SSH SETUP HAS NOT BEEN SUCCESSFUL. Please note that being prompted for a passphrase may be OK but being prompted for a password is ERROR.
  154. Tue Mar 20 22:42:37 CST 2018
  155. ------------------------------------------------------------------------
  156. --test1b:--
  157. Running /usr/bin/ssh -x -l grid test1b date to verify SSH connectivity has been setup from local host to test1b.
  158. IF YOU SEE ANY OTHER OUTPUT BESIDES THE OUTPUT OF THE DATE COMMAND OR IF YOU ARE PROMPTED FOR A PASSWORD HERE,IT MEANS SSH SETUP HAS NOT BEEN SUCCESSFUL. Please note that being prompted for a passphrase may be OK but being prompted for a password is ERROR.
  159. Tue Mar 20 08:41:35 CST 2018
  160. ------------------------------------------------------------------------
  161. ------------------------------------------------------------------------
  162. Verifying SSH connectivity has been setup from test1a to test1a
  163. IF YOU SEE ANY OTHER OUTPUT BESIDES THE OUTPUT OF THE DATE COMMAND OR IF YOU ARE PROMPTED FOR A PASSWORD HERE,IT MEANS SSH SETUP HAS NOT BEEN SUCCESSFUL.
  164. Tue Mar 20 22:42:38 CST 2018
  165. ------------------------------------------------------------------------
  166. ------------------------------------------------------------------------
  167. Verifying SSH connectivity has been setup from test1a to test1b
  168. IF YOU SEE ANY OTHER OUTPUT BESIDES THE OUTPUT OF THE DATE COMMAND OR IF YOU ARE PROMPTED FOR A PASSWORD HERE,IT MEANS SSH SETUP HAS NOT BEEN SUCCESSFUL.
  169. Tue Mar 20 08:41:37 CST 2018
  170. ------------------------------------------------------------------------
  171. -Verification from complete-
  172. SSH verification complete.
  173. $ hostanme
  174. ksh: hostanme: not found.
  175. $ hostname
  176. test1a
  177. $ ssh test1b
  178. Last unsuccessful login: Tue Mar 20 08:36:55 CST 2018 on ssh from 20.1.1.3
  179. Last login: Tue Mar 20 08:41:37 CST 2018 on ssh from 20.1.1.3
  180. *******************************************************************************
  181. * *
  182. * *
  183. * Welcome to AIX Version 7.1! *
  184. * *
  185. * *
  186. * Please see the README file in /usr/lpp/bos for information pertinent to *
  187. * this release of the AIX Operating System. *
  188. * *
  189. * *
  190. *******************************************************************************
  191. $ ssh test1a
  192. Last unsuccessful login: Tue Mar 20 22:37:46 CST 2018 on ssh from 20.1.1.3
  193. Last login: Tue Mar 20 22:42:38 CST 2018 on ssh from 20.1.1.3
  194. *******************************************************************************
  195. * *
  196. * *
  197. * Welcome to AIX Version 7.1! *
  198. * *
  199. * *
  200. * Please see the README file in /usr/lpp/bos for information pertinent to *
  201. * this release of the AIX Operating System. *
  202. * *
  203. * *
  204. *******************************************************************************
  205. $
  206.  
  207. 输入一次yes,四次密码
  208. 验证方法
  209. date;ssh 远端主机名 date

猜你在找的Oracle相关文章