TEXT   68

cluster.txt

Guest on 29th July 2021 12:39:23 AM

  1. This tool will work for Solaris 2.6, 7 & 8. Not sure about versions <2.6.
  2. To implement and use the Sun Cluster Console tool:
  3.  
  4. 1. Transfer the scripts.jar file to your favorite install dir (I like to use
  5. /var/tmp/download) on your admin server of choice.
  6.  
  7. 2. Extract the jar file:
  8. # jar -xvf scripts.jar
  9. (works just like tar command - see man pages for more info)
  10.  
  11. 3. Install the cluster tool packages:
  12. # cd scripts
  13. # pkgadd -d .
  14. Install both SUNWccon and SUNWscsdb packages. The SUNWccon package installs
  15. the /opt/SUNWcluster directory, while the SUNWscsdb installs the cluster
  16. names database and 'name to serial port' database. These are actually files
  17. called /etc/clusters & /etc/serialports respectively. (You can do a "man
  18. clusters" and "man serialports" after completing step 5).
  19.  
  20. 4. Edit the database files:
  21. a) If you intend to use the telnet/rlogin feature of the cluster console
  22. tool ONLY:
  23. # mv /etc/serialports /etc/serialports.template
  24. # vi /etc/clusters
  25. Add an entry with the hostnames you want to telnet/rlogin to. The
  26. "clustername" in the first field can be any name you want to give it (ie.,
  27. sunhosts). The hostnames must be space delimited.
  28. b) If you intend to use the telnet/rlogin AND console features of the tool:
  29. NOTE: In this scenario you must already have a terminal server installed w/
  30. it's own hostname & IP and the desired hosts connected to the terminal
  31. server. If you have previously renamed the serialports file, rename it back
  32. to it's original filename.
  33. # vi /etc/clusters
  34. Edit the clusters file in same manner as described in step 4(a) above.
  35. # vi /etc/serialports
  36. Add one line for each host. These will be the same hostnames you specified
  37. in the /etc/clusters file. For the 2nd field in the /etc/serialports file,
  38. enter your terminal server hostname- the file identifies it as a 'terminal
  39. concentrator'. The file entry format is <hostname> <terminal concentrator>
  40. <serial_port>. The serial port numbers are somewhat arbitrary, just don't
  41. use a number already in /etc/services or one you know is already in use. I
  42. started at 5001 as the sample entry suggests.
  43.  
  44. 5. Environment variables:
  45. Add /opt/SUNWcluster/bin to your PATH.
  46. Add /opt/SUNWcluster/man to your MANPATH
  47. The binaries are of course in /opt/SUNWcluster/bin.
  48.  
  49. 6. Invoking the sun cluster console tool:
  50. Prerequisites-
  51. - Make sure the above variables are set.
  52. - Make sure your DISPLAY is set to your local host.
  53. - Make sure your local access control is disabled (xhost).
  54. # ctelnet <clustername>
  55. or
  56. # crlogin <clustername>
  57. The cluster console window as well as telnet/rlogin windows for each host
  58. will be displayed. Place your cursor in the cluster console window. Each
  59. command you type will then be SIMULTANEOUSLY displayed in each telnet/rlogin
  60. window. Note: Make sure you keep your cursor in the cluster console window
  61. at ALL times to maintain this functionality.
  62.  
  63. If your using a terminal server and want a console prompt for each of the
  64. respective hosts:
  65. # cconsole <clustername>
  66.  
  67. ENJOY! But be very careful. Remember, each command you type is duplicated
  68. "n" times!!
  69.  
  70.  
  71. -Contributed by: Tim Lavin

Raw Paste


Login or Register to edit or fork this paste. It's free.