Solaris Installation Procedure: Difference between revisions

From CLONWiki
Jump to navigation Jump to search
Boiarino (talk | contribs)
No edit summary
Boiarino (talk | contribs)
No edit summary
Line 54: Line 54:
   /etc/passwd: fix root, add clasrun (for clon00/clon10 add also clasboot, clascron, clasmail), add last 3 lines
   /etc/passwd: fix root, add clasrun (for clon00/clon10 add also clasboot, clascron, clasmail), add last 3 lines
   /etc/shadow: add clasrun, etc, add last line
   /etc/shadow: add clasrun, etc, add last line
   mkdir /root (or 'ln' to file server; normally we have it locally); copy .cshrc file from another machine's /root directory
   mkdir /root (or 'ln' to file server; normally we have it locally); copy .cshrc file from another machine's /root directory,
  it must looks like following:
 
    #
    # .cshrc for root on clon cluster solaris machines
    #
    setenv PATH ${PATH}:/opt/SUNWspro/bin
    setenv PATH ${PATH}:/opt/sfw/bin
    setenv PATH ${PATH}:/usr/sfw/bin
    setenv PATH ${PATH}:/usr/ccs/bin
    setenv PATH ${PATH}:/usr/sadm/admin/bin
    setenv PATH ${PATH}:/usr/local/bin
    setenv PATH ${PATH}:/usr/openwin/bin
    #
    setenv LD_LIBRARY_PATH /opt/SUNWspro/lib
    setenv LD_LIBRARY_PATH /opt/sfw/lib:$LD_LIBRARY_PATH
    setenv LD_LIBRARY_PATH /usr/sfw/lib:$LD_LIBRARY_PATH
    setenv LD_LIBRARY_PATH /opt/local/lib:$LD_LIBRARY_PATH
    #
    set prompt="%m:%C> "
    #
    alias ll "ls -al"
    #
    #temporary!!!
    setenv CODA /usr/local/clas/release/current/coda
    #
 


Automount:
Automount:
Line 109: Line 135:
   reboot -- -r (after new hardware installation: '-r' force reconfigure, '-s' force single user mode; 'exit' from single user will continue to multiuser mode)
   reboot -- -r (after new hardware installation: '-r' force reconfigure, '-s' force single user mode; 'exit' from single user will continue to multiuser mode)


Install SunStudio (without patches !), recent patches, mysql (client only).
Install recent patches, SunStudio (without patches !), mysql (client only).


Add new groups (onliners etc): /etc/group contails group name, group id and list of group members, while /etc/passwd contains <group id ??? NO !!!>  
Add new groups (onliners etc): /etc/group contails group name, group id and list of group members, while /etc/passwd contains <group id ??? NO !!!>  

Revision as of 14:17, 31 August 2007

This sections describes Solaris 10 installation procedure for CLON cluster (Sparc-, Xeon- and Opteron-based machines).

You will need 4 CDs 'Solaris 10 Software' and one CD 'Software Companion'. Download CDs or DVD image from http://www.sun.com.

Boot from CD1. Several questions will be asked, for example for clonxt2:

 hostname: clonxt2
 IP address: 129.57.167.108
 mask: 255.255.255.0 (will be written to /etc/netmasks)
 route: 129.57.167.99 (others: 129.57.68.100, 129.57.69.1, 129.57.160.1, will be written to /etc/defaultrouter)
 services: choose DNS
 domain name: jlab.org
 DNS servers: 129.57.167.5, 129.57.167.14, 129.57.32.100
 search domain: jlab.org, acc.jlab.org (will be written to /etc/resolv.conf)

Partition disk: if only one disk exist, set 12GB for 'swap', 40GB for system '/', mount the the rest as '/space' (clon05 and others with smaller disks: 4096MB swap, 15GB /). If 2 disks exists and there is no intension to use second one, make it /space and use whole first disk for / and 12G swap. Sun has its own disk name scheme, for example c1t0d0 means ... .

NOTE: 'format' command shows all disks.

Follow instructions on screen and finish installation.

Install software from CD 'Software Companion'.

After installation is finished do following (use /opt/sfw/bin/emacs to edit files):

 /etc/default/login: comment out CONSOLE=/dev/console
 /etc/ssh/sshd_config: PermitRootLogin?: 'no' - change to 'yes'
 svcadm restart /network/ssh (to show all services, type 'svcs')

From now on 'ssh root@clonxt2' is possible from remote host.

 create /etc/defaultdomain with one line containing 'CCCHP'
 add to /etc/hosts all hosts to be used in 'ypinit -c' command (see below)
 execute 'domainname CCCHP' (or reboot)
 ypinit -c
 next host to add: clon00
 clon10
 ccs10 (for EEL building put it on first place)
 svcadm enable /network/nis/client (or start, or restart ???)
 ypwhich - shows NIS server (must show first one in the list above)
 ypcat passwd | grep <username> - shows id/gid etc information

Edit '/etc/nsswitch.conf':

   hosts: files dns ('dns' for clon00 and clon10 only ???)
   passwd: compat
   group: files nis
   netgroup: nis
   automount: files nis

Fix accounts (can be used to add new account !):

 /etc/passwd: fix root, add clasrun (for clon00/clon10 add also clasboot, clascron, clasmail), add last 3 lines
 /etc/shadow: add clasrun, etc, add last line
 mkdir /root (or 'ln' to file server; normally we have it locally); copy .cshrc file from another machine's /root directory,
 it must looks like following:
   #
   # .cshrc for root on clon cluster solaris machines
   #
   setenv PATH ${PATH}:/opt/SUNWspro/bin
   setenv PATH ${PATH}:/opt/sfw/bin
   setenv PATH ${PATH}:/usr/sfw/bin
   setenv PATH ${PATH}:/usr/ccs/bin
   setenv PATH ${PATH}:/usr/sadm/admin/bin
   setenv PATH ${PATH}:/usr/local/bin
   setenv PATH ${PATH}:/usr/openwin/bin
   #
   setenv LD_LIBRARY_PATH /opt/SUNWspro/lib
   setenv LD_LIBRARY_PATH /opt/sfw/lib:$LD_LIBRARY_PATH
   setenv LD_LIBRARY_PATH /usr/sfw/lib:$LD_LIBRARY_PATH
   setenv LD_LIBRARY_PATH /opt/local/lib:$LD_LIBRARY_PATH
   #
   set prompt="%m:%C> "
   #
   alias ll "ls -al"
   #
   #temporary!!!
   setenv CODA /usr/local/clas/release/current/coda
   #


Automount:

 /etc/auto_master contents:
   /-      /etc/auto_direct
   /-      auto_direct.ep
   /u      auto.u.ep
   /w      auto.w.ep
 /etc/auto_direct contents:
   # auto_direct (Solaris, clon10-specific)
   /home                           -rw,bg  clonfs2:/vol/vol0/home
   /apps                           -rw,bg  clonfs2:/vol/vol0/apps/SunOS_sun4u
   /usr/local/clas         -rw,bg  clonfs2:/vol/vol0/local/clas
   /usr/local/downloads    -rw,bg  clonfs2:/vol/vol0/local/downloads
   /usr/local/bin          -rw,bg  clonfs2:/vol/vol0/local/SunOS_sun4u/bin
   /usr/local/etc          -rw,bg  clonfs2:/vol/vol0/local/SunOS_sun4u/etc
   /usr/local/include      -rw,bg  clonfs2:/vol/vol0/local/SunOS_sun4u/include
   /usr/local/lib          -rw,bg  clonfs2:/vol/vol0/local/SunOS_sun4u/lib
   /usr/local/man          -rw,bg  clonfs2:/vol/vol0/local/SunOS_sun4u/man
   /usr/local/sbin         -rw,bg  clonfs2:/vol/vol0/local/SunOS_sun4u/sbin
   /usr/local/share        -rw,bg  clonfs2:/vol/vol0/local/SunOS_sun4u/share
   /usr/local/src          -rw,bg  clonfs2:/vol/vol0/local/SunOS_sun4u/src
   #
   # for openssl untill installation from source will works
   /usr/local/ssl          -rw,bg  clonfs2:/vol/vol0/local/SunOS_sun4u/ssl
   #
   # for diman (see $CLON_PARMS/discr/archive /pretrigger/archive etc)
   /usr/clas/archives      -rw,bg  clonfs2:/archives
   #
   # work/scratch disks from clon00
   /work                   -rw,bg  clon00:/work
   /scratch                -rw,bg  clon00:/scratch
   #
   # clon00/clon10 specific
   /mnt/admin/clonfs2      -rw,bg  clonfs2:/
   /usr/clas/msql_run      -rw,bg  clonfs2:/msql
   #

Restart automount service:

 svcadm restart /system/filesystem/autofs

NOTE (to force new hardware recognition ?):

 /kernel/drv/fp.conf
        ..... = "yes"; (see comments in file)
 touch /reconfigure

Reboot machine:

 reboot, or 'shutdown -g0 -i6 -y', or 'init 6' (to power down use 'init 5')
 reboot -- -r (after new hardware installation: '-r' force reconfigure, '-s' force single user mode; 'exit' from single user will continue to multiuser mode)

Install recent patches, SunStudio (without patches !), mysql (client only).

Add new groups (onliners etc): /etc/group contails group name, group id and list of group members, while /etc/passwd contains <group id ??? NO !!!>

BLA: clon machines can be connected up to 3 different subnets; for example clonxt2:

129.57.167.108 - clonxt2 (iprb0) - goto /etc/hosts
129.57.68.23 - clonxt2-daq1 (e1000g0) - goto /etc/hosts
129.57.69.201 - clonxt2-daq2 (e1000g1) - goto /etc/hosts