<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://clonwiki0.jlab.org/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=129.57.81.38</id>
	<title>CLONWiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://clonwiki0.jlab.org/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=129.57.81.38"/>
	<link rel="alternate" type="text/html" href="https://clonwiki0.jlab.org/wiki/index.php?title=Special:Contributions/129.57.81.38"/>
	<updated>2026-04-13T23:41:41Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.42.1</generator>
	<entry>
		<id>https://clonwiki0.jlab.org/wiki/index.php?title=Solaris_Installation_Procedure&amp;diff=3579</id>
		<title>Solaris Installation Procedure</title>
		<link rel="alternate" type="text/html" href="https://clonwiki0.jlab.org/wiki/index.php?title=Solaris_Installation_Procedure&amp;diff=3579"/>
		<updated>2008-11-25T20:08:32Z</updated>

		<summary type="html">&lt;p&gt;129.57.81.38: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This sections describes Solaris 10 update 6 (10/08) installation procedure for CLON cluster (Sparc-, Xeon- and Opteron-based machines).&lt;br /&gt;
&lt;br /&gt;
You will need 5 CDs &#039;Solaris 10 Software&#039; (or one DVD) and one DVD &#039;Software Companion&#039;. Download CDs or DVD image from http://www.sun.com. If you do not have DVD-ROM, you can mount &#039;&#039;iso&#039;&#039; image of the &#039;&#039;Companion&#039;&#039; after system itself is installed (see instructions below).&lt;br /&gt;
&lt;br /&gt;
If you already have Solaris installed, type &#039;&#039;init 0&#039;&#039; as root, and on prompt type &#039;&#039;boot cdrom&#039;&#039;. You can change boot sequence changing environment variable &#039;&#039;boot-device&#039;&#039; (setting it to &#039;&#039;cdrom disk&#039;&#039; will inforce corresponding boot sequence). For new Sun server you may want to minimize power-on tests, to do it on boot prompt type &#039;&#039;setenv diag-level min&#039;&#039; (default is usually &#039;&#039;max&#039;&#039;).&lt;br /&gt;
&lt;br /&gt;
Boot from CD1. Several questions will be asked, for example for clondaq1:&lt;br /&gt;
&lt;br /&gt;
  hostname: &#039;&#039;clondaq1&#039;&#039;&lt;br /&gt;
  IP address: &#039;&#039;129.57.167.107&#039;&#039;&lt;br /&gt;
  mask: &#039;&#039;255.255.255.0&#039;&#039; (will be written to &#039;&#039;/etc/netmasks&#039;&#039;)&lt;br /&gt;
  route: &#039;&#039;129.57.167.99&#039;&#039; (others: &#039;&#039;129.57.68.100&#039;&#039;, &#039;&#039;129.57.69.1&#039;&#039;, &#039;&#039;129.57.160.1&#039;&#039;, will be written to &#039;&#039;/etc/defaultrouter&#039;&#039;)&lt;br /&gt;
  services: choose &#039;&#039;DNS&#039;&#039;&lt;br /&gt;
  domain name: &#039;&#039;jlab.org&#039;&#039;&lt;br /&gt;
  DNS servers: &#039;&#039;129.57.167.5&#039;&#039;, &#039;&#039;129.57.167.14&#039;&#039;, &#039;&#039;129.57.32.100&#039;&#039;&lt;br /&gt;
  search domain: &#039;&#039;jlab.org&#039;&#039;, &#039;&#039;acc.jlab.org&#039;&#039; (will be written to &#039;&#039;/etc/resolv.conf&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
On screen &#039;&#039;Enabling Remote Services&#039;&#039; choose &#039;&#039;No&#039;&#039;, it will enable &#039;&#039;ssh&#039;&#039; service only (no ftp, no finger etc).&lt;br /&gt;
&lt;br /&gt;
Choose &#039;&#039;Initial installation&#039;&#039;, then &#039;&#039;Custom installation&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Partition disk: if only one disk exist, set 12GB for &#039;swap&#039;, 40GB for system &#039;/&#039;, mount the rest as &#039;/space&#039; (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&lt;br /&gt;
whole first disk for / and 12G swap. Sun has its own disk name scheme, for example c1t0d0 means ... .&lt;br /&gt;
&lt;br /&gt;
Follow instructions on screen and finish installation.&lt;br /&gt;
&lt;br /&gt;
NOTE: &#039;format&#039; command shows all disks.&lt;br /&gt;
&lt;br /&gt;
After installation is finished do following (use [[VI editor]], &#039;&#039;/opt/sfw/bin/emacs&#039;&#039; is not installed yet, it will come from &#039;Software Companion&#039; CD; you may install that software now if want &#039;emacs&#039;):&lt;br /&gt;
&lt;br /&gt;
  /etc/default/login: comment out CONSOLE=/dev/console&lt;br /&gt;
  /etc/ssh/sshd_config: PermitRootLogin?: &#039;no&#039; - change to &#039;yes&#039;&lt;br /&gt;
  svcadm restart /network/ssh (to show all services, type &#039;svcs&#039;)&lt;br /&gt;
&lt;br /&gt;
From now on &#039;ssh root@clonxt2&#039; is possible from remote host.&lt;br /&gt;
&lt;br /&gt;
Install software from CD &#039;Software Companion&#039;. Use it&#039;s README and follow instructions. If you want to mount &#039;&#039;iso&#039;&#039; image use loopback file driver &#039;&#039;lofi&#039;&#039;, for example:&lt;br /&gt;
&lt;br /&gt;
  lofiadm -a /root/sol-10-u6-companion-ga.iso /dev/lofi/1&lt;br /&gt;
  mount -F hsfs -o ro /dev/lofi/1 /mnt&lt;br /&gt;
&lt;br /&gt;
Image will be mounted as &#039;&#039;/mnt&#039;&#039;. To unmount do following:&lt;br /&gt;
&lt;br /&gt;
  umount /mnt&lt;br /&gt;
  lofiadm -d /dev/lofi/1&lt;br /&gt;
&lt;br /&gt;
To configure NIS do following:&lt;br /&gt;
&lt;br /&gt;
1. Create /etc/defaultdomain with one line containing &#039;CCCHP&#039;&lt;br /&gt;
&lt;br /&gt;
2. Add to /etc/hosts all hosts to be used in &#039;ypinit -c&#039; command (see below), normally:&lt;br /&gt;
&lt;br /&gt;
 129.57.167.5     clon00     clon00.jlab.org&lt;br /&gt;
 129.57.167.14    clon10     clon10.jlab.org&lt;br /&gt;
 129.57.33.22     ccs10      ccs10.jlab.org&lt;br /&gt;
&lt;br /&gt;
3. Execute command &#039;&#039;domainname CCCHP&#039;&#039; (or reboot, but not necessary)&lt;br /&gt;
&lt;br /&gt;
4. Execute following:&lt;br /&gt;
&lt;br /&gt;
 ypinit -c&lt;br /&gt;
 next host to add: clon00&lt;br /&gt;
 clon10&lt;br /&gt;
 ccs10 (for EEL building put it on first place)&lt;br /&gt;
 svcadm enable /network/nis/client&lt;br /&gt;
 ypwhich - shows NIS server (must show first one in the list above)&lt;br /&gt;
 ypcat passwd | grep &amp;lt;username&amp;gt; - shows id/gid etc information&lt;br /&gt;
&lt;br /&gt;
Edit &#039;/etc/nsswitch.conf&#039;:&lt;br /&gt;
&lt;br /&gt;
    passwd: compat&lt;br /&gt;
    group: files nis&lt;br /&gt;
    hosts: files dns (done by default if &#039;dns&#039; was clicked during installation)&lt;br /&gt;
    netgroup: nis&lt;br /&gt;
    automount: files nis&lt;br /&gt;
&lt;br /&gt;
Fix accounts (can be used to add new account !):&lt;br /&gt;
&lt;br /&gt;
1. &#039;&#039;/etc/passwd&#039;&#039;: fix root, add clasrun (for clon00/clon10 add also clasboot, clascron, clasmail), add last 3 lines&lt;br /&gt;
&lt;br /&gt;
2. &#039;&#039;/etc/shadow&#039;&#039;: add clasrun, etc, add last line&lt;br /&gt;
&lt;br /&gt;
3. &#039;&#039;mkdir /root&#039;&#039; (or &#039;ln&#039; to file server; normally we have it locally); copy .cshrc file from another machine&#039;s /root directory, it must looks like following:&lt;br /&gt;
&lt;br /&gt;
    #&lt;br /&gt;
    # .cshrc for root on clon cluster solaris machines&lt;br /&gt;
    #&lt;br /&gt;
    setenv PATH ${PATH}:/opt/SUNWspro/bin&lt;br /&gt;
    setenv PATH ${PATH}:/opt/sfw/bin&lt;br /&gt;
    setenv PATH ${PATH}:/usr/sfw/bin&lt;br /&gt;
    setenv PATH ${PATH}:/usr/ccs/bin&lt;br /&gt;
    setenv PATH ${PATH}:/usr/sadm/admin/bin&lt;br /&gt;
    setenv PATH ${PATH}:/usr/local/bin&lt;br /&gt;
    setenv PATH ${PATH}:/usr/openwin/bin&lt;br /&gt;
    #&lt;br /&gt;
    setenv LD_LIBRARY_PATH /opt/SUNWspro/lib&lt;br /&gt;
    setenv LD_LIBRARY_PATH /opt/sfw/lib:$LD_LIBRARY_PATH&lt;br /&gt;
    setenv LD_LIBRARY_PATH /usr/sfw/lib:$LD_LIBRARY_PATH&lt;br /&gt;
    setenv LD_LIBRARY_PATH /usr/local/lib:$LD_LIBRARY_PATH&lt;br /&gt;
    #&lt;br /&gt;
    set prompt=&amp;quot;%m:%C&amp;gt; &amp;quot;&lt;br /&gt;
    #&lt;br /&gt;
    alias ll &amp;quot;ls -al&amp;quot;&lt;br /&gt;
    alias xt &amp;quot;xterm -sb -sl 5000 -ls&amp;quot;&lt;br /&gt;
    #&lt;br /&gt;
    #temporary!!!&lt;br /&gt;
    setenv CODA /usr/local/clas/release/current/coda&lt;br /&gt;
    #&lt;br /&gt;
&lt;br /&gt;
4. Add new groups (onliners etc): &#039;&#039;/etc/group&#039;&#039; contails group name, group id and list of group members, while /etc/passwd contains &amp;lt;group id ??? NO !!!&amp;gt; &lt;br /&gt;
&lt;br /&gt;
Set automounts:&lt;br /&gt;
&lt;br /&gt;
1. &#039;&#039;/etc/auto_master&#039;&#039; contents:&lt;br /&gt;
&lt;br /&gt;
    /-      /etc/auto_direct&lt;br /&gt;
    /-      auto_direct.ep&lt;br /&gt;
    /u      auto.u.ep&lt;br /&gt;
    /w      auto.w.ep&lt;br /&gt;
&lt;br /&gt;
2. &#039;&#039;/etc/auto_direct&#039;&#039; contents:&lt;br /&gt;
&lt;br /&gt;
    # auto_direct (Solaris, clon10-specific)&lt;br /&gt;
    /home                           -rw,bg  clonfs2:/vol/vol0/home&lt;br /&gt;
    /apps                           -rw,bg  clonfs2:/vol/vol0/apps/SunOS_sun4u&lt;br /&gt;
    /usr/local/clas         -rw,bg  clonfs2:/vol/vol0/local/clas&lt;br /&gt;
    /usr/local/downloads    -rw,bg  clonfs2:/vol/vol0/local/downloads&lt;br /&gt;
    /usr/local/bin          -rw,bg  clonfs2:/vol/vol0/local/SunOS_sun4u/bin&lt;br /&gt;
    /usr/local/etc          -rw,bg  clonfs2:/vol/vol0/local/SunOS_sun4u/etc&lt;br /&gt;
    /usr/local/include      -rw,bg  clonfs2:/vol/vol0/local/SunOS_sun4u/include&lt;br /&gt;
    /usr/local/lib          -rw,bg  clonfs2:/vol/vol0/local/SunOS_sun4u/lib&lt;br /&gt;
    /usr/local/man          -rw,bg  clonfs2:/vol/vol0/local/SunOS_sun4u/man&lt;br /&gt;
    /usr/local/sbin         -rw,bg  clonfs2:/vol/vol0/local/SunOS_sun4u/sbin&lt;br /&gt;
    /usr/local/share        -rw,bg  clonfs2:/vol/vol0/local/SunOS_sun4u/share&lt;br /&gt;
    /usr/local/src          -rw,bg  clonfs2:/vol/vol0/local/SunOS_sun4u/src&lt;br /&gt;
    #&lt;br /&gt;
    # for openssl untill installation from source will works&lt;br /&gt;
    /usr/local/ssl          -rw,bg  clonfs2:/vol/vol0/local/SunOS_sun4u/ssl&lt;br /&gt;
    #&lt;br /&gt;
    # for diman (see $CLON_PARMS/discr/archive /pretrigger/archive etc)&lt;br /&gt;
    /usr/clas/archives      -rw,bg  clonfs2:/archives&lt;br /&gt;
    #&lt;br /&gt;
    # work/scratch disks from clon00&lt;br /&gt;
    ##/work                   -rw,bg  clon00:/work&lt;br /&gt;
    ##/scratch                -rw,bg  clon00:/scratch&lt;br /&gt;
    /data                   -rw,bg  clon10:/data&lt;br /&gt;
    /raidold                -rw,bg  clon10:/raidold&lt;br /&gt;
    #&lt;br /&gt;
    # clon00/clon10 specific&lt;br /&gt;
    /mnt/admin/clonfs2      -rw,bg  clonfs2:/&lt;br /&gt;
    #&lt;br /&gt;
&lt;br /&gt;
3. Restart automount service:&lt;br /&gt;
&lt;br /&gt;
  svcadm restart /system/filesystem/autofs&lt;br /&gt;
&lt;br /&gt;
Reboot machine:&lt;br /&gt;
&lt;br /&gt;
  reboot, or &#039;shutdown -g0 -i6 -y&#039;, or &#039;init 6&#039; (to power down use &#039;init 5&#039;)&lt;br /&gt;
  reboot -- -r (after new hardware installation: &#039;-r&#039; force reconfigure, &#039;-s&#039; force single user mode; &#039;exit&#039; from single user will continue to multiuser mode)&lt;br /&gt;
&lt;br /&gt;
Install recent patches, SunStudio (without patches !).&lt;br /&gt;
&lt;br /&gt;
== BUGs found ==&lt;br /&gt;
&lt;br /&gt;
File /usr/include/sys/regset.h seems have a bug, see fix in http://clonweb/wiki/clondocs/Docs/regset.h (search for &#039;sergey&#039;).&lt;br /&gt;
&lt;br /&gt;
== Background information ==&lt;br /&gt;
&lt;br /&gt;
If need to rename machine, edit files &#039;&#039;/etc/hosts&#039;&#039;, &#039;&#039;/etc/hostname.*&#039;&#039;, &#039;&#039;/etc/nodename&#039;&#039; (also files &#039;&#039;/etc/net/*/hosts&#039;&#039;, but we are not using them; also, &#039;&#039;/etc/inet&#039;&#039; contains some files which must be changed if changing not name but IP address, for example &#039;ipnodes&#039;). Reboot machine.&lt;br /&gt;
&lt;br /&gt;
Multiple ethernet ports setting: clon machines can be connected to the several subnets; for example clonxt2:&lt;br /&gt;
&lt;br /&gt;
 129.57.167.108 - clonxt2 (iprb0) - goto /etc/hosts&lt;br /&gt;
 129.57.68.23 - clonxt2-daq1 (e1000g0) - goto /etc/hosts&lt;br /&gt;
 129.57.69.201 - clonxt2-daq2 (e1000g1) - goto /etc/hosts&lt;br /&gt;
&lt;br /&gt;
To configure do following:&lt;br /&gt;
&lt;br /&gt;
1. Add all interfaces to the /etc/hosts file&lt;br /&gt;
&lt;br /&gt;
2. Create /etc/hostname.e1000g0 file containing &#039;&#039;clonxt2-daq1&#039;&#039;, etc for every extra port&lt;br /&gt;
&lt;br /&gt;
3. Edit file /etc/netmasks adding new line for every new port, for example:&lt;br /&gt;
&lt;br /&gt;
  129.57.68.0    255.255.255.0&lt;br /&gt;
&lt;br /&gt;
4. Reboot machine, or run commands:&lt;br /&gt;
&lt;br /&gt;
  ifconfig e1000g1 plumb&lt;br /&gt;
  ifconfig e1000g1 129.57.68.23 netmask 255.255.255.0 up&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To enable/disable services running under &#039;&#039;svcs&#039;&#039; just use svcadm &#039;&#039;enable/disable&#039;&#039; command. For legacy services rename corresponding script, for example to disable &#039;&#039;snmp&#039;&#039; service rename it&#039;s startup script:&lt;br /&gt;
&lt;br /&gt;
  cd /etc/rc3.d&lt;br /&gt;
  mv S82initsma hide.S82initsma&lt;br /&gt;
&lt;br /&gt;
To enable X11 forwarding make sure you have uncommented and properly set 2 following lines in &#039;&#039;/etc/ssh/ssh_config&#039;&#039; file: &lt;br /&gt;
&lt;br /&gt;
 Host *&lt;br /&gt;
 ForwardX11 yes&lt;br /&gt;
&lt;br /&gt;
If you ansvered &amp;quot;No&amp;quot; on screen &#039;&#039;Enabling Remote Services&#039;&#039;, the number of services will not be enabled. One of them is required if machine will be used as host to download VxWorks to ROCs. To start it type command:&lt;br /&gt;
&lt;br /&gt;
 svcadm enable network/shell:default&lt;br /&gt;
&lt;br /&gt;
To configure Xserver for multiple displays do following commands&lt;br /&gt;
&lt;br /&gt;
 mkdir /etc/dt&lt;br /&gt;
 mkdir /etc/dt/config&lt;br /&gt;
 cd /etc/dt/config&lt;br /&gt;
 cp /usr/dt/config/Xservers .&lt;br /&gt;
&lt;br /&gt;
and replace one line in the end of &#039;&#039;Xservers&#039;&#039; file with approptiate, for example on clon03:&lt;br /&gt;
&lt;br /&gt;
 ###   :0        Local local_uid@console root /usr/X11/bin/Xserver :0 -nobanner&lt;br /&gt;
   :0   Local local_uid@console root /usr/X11/bin/Xserver :0 -nobanner -dev /dev/fb0 bottom -dev /dev/fb2 top -dev /dev/fb3 left&lt;br /&gt;
&lt;br /&gt;
see [[X server]] for more datails.&lt;br /&gt;
&lt;br /&gt;
Useful diagnostic commands:&lt;br /&gt;
&lt;br /&gt;
 prtdiag -v&lt;br /&gt;
&lt;br /&gt;
Proceed to [[Solaris Customization on CLON Cluster]].&lt;/div&gt;</summary>
		<author><name>129.57.81.38</name></author>
	</entry>
</feed>