Sun Solaris Startup, Configuration, and Administration
 
 

From Factory Initial Power Up Configuration
Installing Sun Solaris 5.8 OS From DVD/CDROM
Solaris Administration Tool
Accessing WEA Tools
Common OS Installation and Bootup Utilities
Miscellaneous Sun Operations
Miscellaneous Sun Commands
Changing Network Configuration
Mounting a Shared Remote CDROM
Mounting The root filesystem (real, not cdrom)
System Hardware Debug
Configuring System Hardware
Creating Backups
Adding External CDROM
HOT-PLUGing Harddisks
RAM Memory Configuration Info
Installing Software Packages
Installing OS Patches
Add a New Directory (filesystem) From Unassigned Disk Space
Adding a User on Solaris
Installing SUNWspro C and C++ Compilers
Installing Using Jumpstart
Backing Up And Restoring A Sun Machine Using DVDs
 

From Factory Initial Power Up Configuration

Before beginning this process, you must have requested and received a Static IP Address from "eNOS".

This section reflects the text displayed on initial startup of a Solaris machine (out of the box).

SUNW,Sun-Blade -1000  (2  X UltraSPARC-III+), Keyboard Present
Coyright  1998-2002 Sun Microsystems, Inc.  All rights reserved.
OpenBoot  4.5,  3072 MB memory installed,   Serial # 53063620.
Enternet address   0:3:ba:29:af:c4,  Host  ID:  8329afc4.
 

Boot device: disk:b  File and args:
SunOS Release 5.8 Version Generic_108528-15  64-bit
Copyright 1983-2001 Sun Microsystems, Inc. All Rights reserved.
Configuring devices...
Configuring /dev and /devices
Using RPC Bootparams for network configuration information

*************************************************************************
This system comes preinstalled with Solaris desktop software.
For desktop use, you have the option of
keeping this default configuraiton or reinstalling Solaris.
For server use, you must install Solaris server software.
*************************************************************************

no local boot CD,  checking net...
Accepting the preinstalled Solaris configuration.

Copyright 2001 Sun Microsystems, Inc.  901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All rights reserved

This product includes software subject to license and legal
notice contained herein and which may be found at
/opt/legal/License  and   /opt/legal/Legal_Notice
 

The Solaris Installer can be run in English, or any of the following languages:

1) English        5) Italian            9) Simplified_Chinese
2) German      6) Japanese       10) Tratitional_Chinese
3) Spanisgh     7) Korean         11) Quit
4) French        8) Swedish
Select the language you want to use to run the installer:

(then Steve pressed the power button and got:)

WARNING: Power button is pressed, powering down the system!
WARNING: ds1287:  Failed to shut down the system!

(I had to hold the power button down for several seconds, then it finally went down. Pressed power button again and got the above again.)

.....
The Solaris Installer can be run in English, or any of the following languages:

1) English        5) Italian            9) Simplified_Chinese
2) German      6) Japanese       10) Tratitional_Chinese
3) Spanisgh     7) Korean         11) Quit
4) French        8) Swedish
Select the language you want to use to run the installer: 1 (Enter)

(the SUN BLADE GUI will be displayed and the box will think a while, or a text screen will be displayed with the same dialog)
 

1) In the "Welcome" panel, click on "Next".

2) In the "Network Connectivity" pane, select "Networked" and click "Next".

3) In the "Network Interface Selection" panel, select "eri0" and click "Next".

4) In the "DHCP" panel, select "No", then click "Next".

5) In the "Host Name" panel, enter the name of your machine (i.e. "weasun10"), then click "Next".

6) In the "IP Address" panel, enter your IP address (i.e. "9.42.66.125"), then click "Next".

7) In the "Netmask" panel, enter the netmask (i.e. "255.255.252.0"), then click "Next".

8) In the "IPv6" panel, select "No", then click "Next".

9) In the "Default Router", select "Specify one", then cleck "Next".

10) In the "Default Router", enter "9.42.64.1", then click "Next".

11) In the "Kerberos", panel, select "No", then click "Next".

12) In the "Name Service" panel, select "DNS", then click "Next".

13) In the "Domain Name" panel, enter "raleigh.ibm.com", then click "Next".

14) In the "DNS Server Address" panel, for the "Server's IP Address " "Reguired" field, enter "9.44.5.140", and in the "Optional" field, enter "9.44.5.76", then click "Next".

15) In the "DNS Search List", for the first field, enter "raleigh.ibm.com", then click "Next".

16) In the "Time Zone" panel, select "Geographic region", then click "Next".

17) In the "Geographic Region" panel, select "United States", and "Eastern", then click "Next".

18) In the "Date and Time" panel, enter the appropriate information in the appropriate fields, then click "Next".

19) In the "Root Password" panel, enter (generic password) in both fields, then click "Next".

20) In the "Proxy Server Configuration" panel, select "Direct connection to the internet", thenc click "Next".

21) In the "Confirm Information" panel, read EVERYTHING, make sure you didnt do something STUPID, then click "Confirm".

22) Go get me a latte'.

(after a few minutes an "Error" pop-up might appear stating your "Name Server information is incorrect", click "Accept".

(Afterwards the machine will reboot and display motherhood information. Eventually the logon GUI will be display. Select the Common Desktop Environment).

1) On the CDE, in the "cpu disk" selection, select "Console".

2) From the console window, type "ifconfig -a", and obtain the "mac" address, which will be the "ether  0....." value.

3) Obtain the disk type by typing the command "format", which will return a value like "0.  c1t1d0 (SUN72G cyl 14087......)" the important information being "c1t1d0". With this value, and the IP address and host name, you have the appropriate information to give to your "Jumpstart" administrator to allow the Solaris operating system image to be installed on your machine.

4) Once you are configured for JumpStart usage, to reinstall your OS, from the command prompt, type "reboot  "net  -  install"".
 

Stop/a  brings you to a "maintenance mode", (get a "OK"  or type "go" to resume, then repaint the desktop by moving console around)
 
 
 
 
 

Installing Sun Solaris 5.8 OS From DVD/CDROM

During the process of the installation, several times you might be presented a "Pause" dialog box which you can ignore, the intallation will proceed. This process takes 20-30 minuted. When it is done the machine will reboot itself, eject the CD, and eventually present you with a logon screen.

1) To get to the "OK" prompt, at the keyboard, press the "Stop" key and "a" (or alternatively from the Solaris command prompt type "reboot "cdrom"" (thats "reboot", then double quote, "cdrom", and another double quote)).  Then you can type "boot  cdrom" (Note that you can execute this and invoke a browser (i.e. "boot  cdrom - browser"), but I'm not sure if the dialog is the same).

SUNW,Sun-Blade -1000  (2  X UltraSPARC-III+), Keyboard Present
Coyright  1998-2002 Sun Microsystems, Inc.  All rights reserved.
OpenBoot  4.5,  3072 MB memory installed,   Serial # 53063620.
Enternet address   0:3:ba:29:af:c4,  Host  ID:  8329afc4.
 

Rebooting with command:  boot cdrom
Boot deveice:  /pci@8,700000/scsi@6, 0:f   File and args:
SunOS Release 5.8  Version Generic_108528-13  64-bit
Copyright 1983-2001 Sun Microsystems, Inc. All rightst reserved.
Configuring /dev and /devices
Using RPS Bootparams for network and configuration information
Skipping interface fcip0
Configured interface eri0
Searching for configuratin files(s)...
Using sysid configuration file 9.42.64.104:/jumpstart/clients/weasun10/sysidcfg

(then "Solaris" GUI and CDE.)

2) In the "Welcome" panel, you will get a list of the information you may configure, click on "Next".

3) In the "Default Router" panel, select "Specify one", then cleck "Next".

4) In the "Default Router" panel, enter "9.42.64.1", then click "Next".

5) In the "Proxy Server Configuration" panel, select "Direct connection to the internet", then click "Next".

6) In the "Confirm Information" panel, assure your values are correct, then click "Confirm" (wait a minth).

7) After several seconds you will be presented with Sun's GUI for "Bigadmin", as well as the GUI "Welcome". The Solaris GUI Welcome will assist you in installing software for Solaris. In it, click "Next".

8) In the "Installer Options" panel, accept the defaults and click "Next" ("Reboot automatically after software installation?" and "Eject a CD/DVD automaticaly after software installation?" are both selected).

9) In the "Specify Media" panel, select "CD/DVD", then click "Next" (wait a minth).

10) In the "Select Upgrade or Initial Install" panel, select "Initial Install:, then click "Next").

11) In the "Select Type of Install" panel, select "Default Install" or "Custom Install", then click "Next". Note that if your are installing Solaris for WEA 4.31 installation, you will need to configure your disk partitions appropriately, so you must select "Custom Install". Instructions follow for  (Default Install or Custom Install)
 
 
 

Default Install

1) In the confirmation panel, assure your values are correct, then click "Next" which will begin the installation process (then, wait a LONG minth).
 
 

Custom Install

1) In the "Select Software Localizations" panel, select "North America", then click "Next".

2) In the "Select System Locale" panel, accept the default and click "Next" ("English (United States, ISO8859-1) ( en_US.ISO8859-1)").

3) In the "Select Products" panel, unselect everything, then click "Next".

4) In the "Additional Products" panel, accept the default and click "Next" ("None" was selected).

5) In the "Select Solaris Software Group" panel, select "Entire Group Plus OEM", in the "Default Packages" column, then click "Next" (Size is 1048.9 MB).

6) In the "Disk Selection" panel, in the "Selected Disks" section, select your disk (i.e "c1t1d0 (bootdisk)"), the click "Next".

7) In the "Preserve Data" panel, you are queried "At least one of the disks selected for installing Solaris software has file systems or unnamed slices that you can choose to preserve. Do you want to preserve existing data?". Choose "No", then click "Next".

8) In the "Lay Out File Systems", select "c1t1d0", then click "Modify...".

9) In the "Disk c1t0d0" dialog box, if you are using the factory image, or a previous image, you must free up some file space. For instance, the "/export/home" slice might be configured for most of the space on your hard drive to be contained in it. Before you can increase the size of and/or add new file systems, you must first change the "/export/home" to a smaller value which will free up space to be used for other slices. In the "Disk c1t1d0" dialog box, input the following values for the associated fields:

Slice                  File System               Size

0                         /                            10000            (was 1317, which was 1312 MB)
1                        swap                        2500            (was 517, which was 512 MB)
3                        /export                   10000
4
5                        /bootOS                   4800            (for an image of the DVD)
6
7                        /export/home          10000            (was 68185, which was 68190 MB)

Then click "OK" in the "Disk c1t1d0" dialog box, and then click "Next" in the "Lay Out File Systems".

10 In the "Ready to Install" panel, confirm your selections and click "Install Now" (wait a minth, and/or go get your favorite author a cafe latte').

The machine will reboot after installation is complete.

11) Upon logon, you will see the "Welcome to Solaris" panel with a choice of using CDE (Common Desktop Environment) or Openwindows Desktop, choose "CDE", then click "OK".

12) After logon, when presented with the CDE, on the bottom of the screen on the left, above the "cpu disk" section, when you select the up arrow, you can select to bring up a "Console", or a "This Host", to present an Xterm window.

Now git to werk!

There are several utilities available on the WEA Test Dept machine "wea2aix6", and can be mounted to your Sun machine. Make a directory "/WEA" in the root directory (i.e. "mkdir   /WEA"), and then mount the wea2aix6 disk (i.e. "mount   wea2aix6:/WEA   /WEA"). There is a profile ".profile.sol" in the "/WEA/tools/shayden" directory, which when executed (i.e. ".  ./.profile.sol"), contains several alias' that are useful for installation and testing of WEA on Sun.
 

Installing WEA On a Sun Machine (From cinta03)

Every morning (and if necessary more than once a day), WEA Test personnel will be ftp'ing the new builds to "cinta03" (if you try to mount a
version that does not exist, please see Ken Hoopes or Jim Brancato for more information.)

There are several "mount" scripts located on "/WEA/tools/mounting", that perform the appropriate mounting for each day of the week, for up to 4
builds a day. As well, in that same directory exists the corresponding "unmount" script for each mount. The naming convention for these scripts is as
follows:

Script naming convention:    mnt(3 letter day of the week)a(build during the day)

Example 1:    mntmona1       equals  mnt = mount, "mon" = Monday, "a" = AIX, and 1 = the first build for that day
Example 2:    mntfria3             equals  mnt = mount, "fri" = Friday, "a" = AIX, and 3 = the third build for that day

Once you have run the mount script (i.e. for Monday, build 1, from the AIX command prompt, change directories to "/WEA/tools/mounting", and
type "./mntmona1"), the directory you will execute the installation from will be named after the mount script. In the examples above, for example 1,
change directories to "/mntmona1/cd1" and execute the install script (i.e.  "./install.sh").

There are corresponding "unmount" scripts which include the above convention preceded by "u" (i.e. "umntmona1")

Additional Notes For cinta03 Installations

->  CD1 does not necessarily contain the correct build stamp! To conserve disk space, only those CD's which have changed for a particular build
will be ftp'd for builds other than the first one each day, so unless CD1 changes in a later build during the day, it will have the build date stamp from
the first build of the day.

->  Assuming there will be no more that 4 builds created on any day.

->  We will be "recycling" this disk space, and only keeping one weeks worth of builds in this scheme.

->  If you are using Steves ".profile.sol" (at "/WEA/tools/shayden"), simply type "m" and it will take you to "/WEA/tools/mounting".
 

1) Change directories to the appropriate build mount point for the day and build (i.e. "/mntmona1/cd1"). You can now run the installer on this machine.
 
 
 

Solaris Administration Tool

The tool "admintool" is a GUI based systems administration tool which can be used for the creation of users and groups, removing software, configuring printers, ports, etc.  It is invoked by typing "admintool&" at the command prompt. The menu bar tab "Browse" is used to select which type of operation to perform.
 
 

Common OS Installation and Bootup Utilities

You can (somewhat) determine what patches are installed on your system by looking at the timestamp of the folder "8_recommended" (i.e. "find . -name 8_Recommended", which should be somewhere like "/export/boot/Solaris_8/Patches" or "/export/install/Solaris_8/Patches"). If u want to use a new cluster just dwnload it to the directory that you find it in. It has to be same path or the install scripts won't install it.

Miscellaneous Boot Commands

boot -s                              (reboots the machine into single user mode)
boot  net  -  install              (Jumpstarts your box)
boot cdrom                       (boots from CD device to reinstall OS)
boot cdrom  -  browser     (boots from CD devcie to reinstall OS using Sun's simplified browser)
 

System administration is done using the "admintool  &"  = smitty

If an abnormal shutdown occurred, you might be requested to repair one or more of the filesystems (i.e. "fsck  -F  ufs  /dev/rdsk/c1t1d0s0")
As well as when the system finishes rebooting, you might be offered the option to choose your "RUN LEVEL", accept the default "[3]" and press "Enter".  If queried with "Type control-d to proceed with normal startup (or give root password for system maintenance)", enter the root password and press "Enter". Now run the above "fsck" command.  When/if queried for "RECONNECT", enter "Y". When queried "NO lost+found DIRECTORY, CREATE?", enter "yes" (steve just do whatever it says).
 
 
 
 

Miscellaneous Sun Operations

Enabling Root Login From Remote System
Enabling FTP From Remote System
Mounting a CDROM
Formatting/Adding Disk Drives/Space

Enabling Root Login From Remote System

To be able to log on as root from another system, from you Sun box, edit the file "/etc/default/login", and comment ("#") out the line "CONSOLE=/dev/console".
 

Enabling FTP From Remote System

Sun's FTP enablement is for all user IDs that you wish to disableTo be able to ftp as root from another system, from you Sun box, edit the file "/etc/ftpusers", and comment ("#") out the line "root".
 

Mounting a CDROM

(if Volume Manager is not running…. Automounted if VM is running)

Locally

  mkdir –p /cdrom/cd
  mount –F hsfs –o ro /dev/dsk/c0t6d0s2 /cdrom/cd

Remotely

showmount –e sysname                                                               Shows what directories are mountable from the system
mount -F nfs -o ro sysname:/cdrom/cd-name  mt-point                Mounts the remote cd

Formatting/Adding Disk Drives/Space

(boot -r is a utility to determine if new or unknown disk drive(s) exists.)

 format    provides menus to options available
select a harddisk
p    partition  then
  p    print to get the partition info
  d    disk to reselect
  a    for analyze
 

Miscellaneous Sun Commands

  bash                                  Provides command stack using up/down arrows
  uname –a                          Displays Sun OS version (5.8  equals  Solaris 8)
  pkginfo                             Displays software packages installed on Solaris
  pkgrm (somepackagename)   Removes the specified package
  dmesg                              Displays architecture information
  psrinfo                             Displays number of processors on this machine
  psrinfo   -v  0                   Displays processor # 0 speed and misc info
  /etc/vfstab                         File contains mount points for directories
  boot -r                             Utility to determine if new or unknown hardware exists.
  mount  lists mount points
  fuser –u [-k] /cdrom display [or kill] the user of the cdrom
  eject cdrom0  to eject the cd
  ls /var/sadm/patch             List the patches currently installed on this machine
 

Booting a SUN system
 init 0   shutdown
 init S  single user mode
 init 6  reboot
 
 

Changing Network Configuration

Option one

To reconfigure a Sun box with new TCP/IP settings (hostname, IP address, etc) follow the process below.

1) From the CDE type "reboot"

2) When the machine starts up and you see the white screen, press "stop" and "a" to get the "ok" prompt.

3) On the "ok" prompt type "boot -s" to reboot in the single user mode. The machine will stop at a "#' prompt.

4) Type "sys -unconfig". You have to answer n/y and the machine will come back to the "ok" prompt after unconfiguring some system information.

5) On the "ok" prompt again type "boot". The machine will reboot and will prompt you to answer some questions.

6) When prompted for hostname type only the machine name as in "weasun01" not the full qualified hostname

7) For DNS information, Domain is "raleigh.ibm.com", Servers are 9.42.106.3 and 9.42.106.3, and Search is "raleigh.ibm.com"

8) After this it may say that if could not get the entry in the DNS server. The manual steps below will resolve them.

9) After answering all the questions you type "boot"

10) Login into the CDE and make sure the following files have the information as shown below (modify your hostnames/ip). Type "reboot" from the term when done. All should be working now. (Hopefully)

/etc/resolv.conf
Contains:
domain raleigh.ibm.com
nameserver 9.42.106.3
nameserver 9.42.106.2
search raleigh.ibm.com

/etc/nodename contains the hostname as "weasun01"

/etc/defaultdomain contains the "raleigh.ibm.com"

/etc/defaultrouter contains "9.42.64.1"

/etc/inet/hosts contains
127.0.0.1       localhost
9.42.67.38      weasun31.raleigh.ibm.com weasun31       loghost

/etc/inet/netmasks contains
9.42.64.0       255.255.252.0

Note that the hosts line is uncommented in the /etc/nsswitch.conf file shown as follows:

#
# /etc/nsswitch.dns:
#
# An example file that could be copied over to /etc/nsswitch.conf; it uses
# DNS for hosts lookups, otherwise it does not use any other naming service.
#
# "hosts:" and "services:" in this file are used only if the
# /etc/netconfig file has a "-" for nametoaddr_libs of "inet" transports.

passwd:     files
group:      files

# You must also set up the /etc/resolv.conf file for DNS name
# server lookup.  See resolv.conf(4).
hosts:      files dns
ipnodes:    files
# Uncomment the following line and comment out the above to resolve
# both IPv4 and IPv6 addresses from the ipnodes databases. Note that
# IPv4 addresses are searched in all of the ipnodes databases before
# searching the hosts databases. Before turning this option on, consult
# the Network Administration Guide for more details on using IPv6.
#ipnodes:   files dns

networks:   files
protocols:  files
rpc:        files
ethers:     files
netmasks:   files
bootparams: files
publickey:  files
# At present there isn't a 'files' backend for netgroup;  the system will
#   figure it out pretty quickly, and won't use netgroups at all.
netgroup:   files
automount:  files
aliases:    files
services:   files
sendmailvars:   files
printers: user files

auth_attr:  files
prof_attr:  files
project:    files
 

Option two

 /usr/sbin/sys-unconfig delete out the existing network info   MAY Cause problems below 5.7 Ver
 reboot system
 enter networking config info
 select: US ISO8859-1
 Name service: DNS
 Discovery of the default router will fail (normal)
 vi /etc/defaultrouter enter ip address
 route add default 9.xx.xx.x
 vi /etc/default/login
     Comment out   #CONSOLE=/dev/console  to allow telnet root login

  ifconfig –a   if a token ring link is not listed do the following
  Install the TRI/S or TRI/P device driver and man pages software from the cd
   Create an /etc/hostname.tr0 file for SBUS or an /etc/hostname.trp0 for PCI
   touch /reconfigure
   Reboot the system
   Add /etc/defaultrouter with the ip address of the router
   route add default x.x.x.x    to add the default router also
   ifconfig –a should show tr0 for SBUS and trp0 for PCI
  netstat –rn to see if the default router
 
 

Mounting a Shared Remote CDROM
 
 

Add a CD ROM For Sharing

From the machine physically containing the CDROM

1) Assure that "mountd" is running (i.e. "ps -ef | grep mountd"). If it is not, execute the commands "/etc/rc3.d/S15nfs.server  stop", then "./etc/rc3.d/S15nfs.server  start".

2) Check to see if NFS is running, by assuring the process "nfsd" is running (i.e. "ps -ef | grep nfsd"). If not, start it by issuing the command "/etc/init.d/nfs.server  start".

3) Add the following entry into the "/etc/dfs/dfstab" file: "share -F nfs -o ro  /cdrom".

4) Start the NFS daemon again from the command prompt (i.e "/etc/init.d/nfs.server start").

5) Eject the cdrom (i.e "eject cdrom0")

6) Change the file mode of the "rmmount.conf" file "chmod 644 /etc/rmmount.conf", and add the the following lines to the "/etc/rmmount.conf" file:

# File System Sharing
      share cdrom*
7) Remove write permissions from the "/etc/rmmount.conf" file (i.e. "chmod 444 /etc/rmmount.conf").

8) Insert the CD and load it for sharing ("share"  will list any shared objects). Upon insertion of the CD, normally the automount will occur, if not, type "mount  -F hsfs  -o  ro  /dev/dsk/c0t6d0  /cdrom/sol_8_202_sparc" (Steve, previous command needs to be qualified!).
 

From the Remote machine
 
 
 
 
 
 
 
 
 

Mounting The root filesystem (real, not cdrom)

Boot Single User Mode and Mount the real (not cdrom) root filesystem
  STOP A
  boot cdrom –s
  TERM=sun
  export TERM
  df     lists slices mounted on CD-ROM boot;  format will give slice details to mount root filesystem
  fsck –y /dev/dsk/c0t0d0s?   where s?  is the slice     s0 = / (root)
        s1 = /usr/???
        s3 = /var
        s5 = /opt
        s6 = /usr
       s7 = /export/home
cd /tmp
mkdir  tempmnt
mount /dev/dsk/c0t0d0s0 /tmp/tempmnt
cd /tmp/tempmnt/etc  edit files to repair as neeed

Change the ROOT password to blank
Do above Single User steps then
vi /etc/passwd and delete the x in the root password spot…    root:X:…..
vi the /etc/shadow file and do the same….   root:#$^$@SS:….
Reboot and root pw should be blank
 
 
 

System Hardware Debug

At OK > setenv diag-switch? true to run the onboard diag programs (need an ASCII terminal attached to see the test results)

at OK>  probe-scsi-all will check all the scsi connections
     boot cdrom should start an install
     boot –r   cause a reconfiguration check of the devices
     boot disk   will boot off the defined boot disk
 
 

Configuring System Hardware

To add a device, like a tape drive at /dev/rmt/0 do the following:

touch /reconfigure or at OK  > boot -r
shutdown the system
   Reboot the system
 Stop A
 Probe-scsi-all  external tape drive should show up as SCSI 3,1 st at 6   if the address is 6
               Go to continue the boot
 
 
 

Creating Backups

 http://docs.sun.com/db?p=/doc/805-7228/6j6q7uf0u&a=view  Solaris 8 System Admin Webpage

  Configure the tape drive as stated above
  Shutdown the system and boot to single user mode   boot -s
  fsck –y /dev/rdsk/c0txd0sn   check the filesystem first before backup
  On local system:    ufsdump S /   to determine the size of the root filesystem
        ufsdump 0ucf /dev/rmt/0  /  backup the root filesystem to the default tape drive
  Check the dump:    ufsrestore tf /dev/rmt/0  |  more

  Remote dump:     ufsdump 0ucf  oem-sn21:/dev/rmt/0 /var dump var filesystem to the oem-sn21 default tape drive
        Remote host must have a .rhosts file with hostname.raleigh.ibm.com
 
 
 

Adding External CDROM

  Attach external CDROM to system after determining the integrated CDROM is bad.
 Ext = SCSI addr 5, integ = SCSI addr 6
  Stop A  probe-scsi-all Ext CDROM =  /pci@1F,4000/scsi@3,1/disk@5,0:f
  boot  /pci@1F,4000/scsi@3,1/disk@5,0:f
 
 
 

HOT-PLUGing Harddisks

HOT-PLUG Harddisks on E250
  http://docs.sun.com/db?q=hot-plug&p=/doc/806-3991-10/6jd3pnsjh&a=view
Insert the harddisk into a slot from 0-5
Enter:  drvconfig
Enter:  ssaadm insert_device  /devices/pci@1f,4000/scsi@3/sd@9,0:c,raw               where sd@9 is the device addr from above webpage
Enter:  ls –lt /dev/dsk  |  more  new device will show up as c0t9d0s0

Hot Plug Removal
Run format and find the installed drives:  /devices/pci@1f,4000/scsi@3/sd@0,0:c,raw  = slot0
sd@8,0:c,raw = slot1,   sd@9,0 = slot 2, and sd@a,0 - slot3
Slots are physically located in the E250 as follows    Slot 0 in lower right hand corner, Slot 1 above Slot 0,
Slot 2 to the left of Slot 0, and Slot 3 above Slot 2.
While at the system run:   ssaadm remove_device /dev/rdsk/c0t8d0s2   (drive in Slot 1 per the format command)
Remove the drive when prompted to.
Drvconfig should run and remove the configuration.
 
 

RAM Memory Configuration Info

   http://sunsolve.sun.com/pub-cgi/retrieve.pl?doc=finfodoc%2F16490&zone_32=16490

Enter:  prtconf –pv | more
     Look for  reg:  00000000.00000000.00000000.20000000  above webpage shows 20000000 = 512M. In an E250 there
this shows 4 slots     are 4 slots per bank so each DIMM is 128M

DIMM Identifications
  Ultra 60 Bank 0   4 slots   U0701 thru U0704  Ultra 10  Bank 0  2 slots DIMM1 and DIMM2
  Bank 1   U0801 thru U0804     Bank 1  DIMM3 and DIMM4
  Bank 2  U0901 thru U0904
  Bank 3  U1001 thru U1004  Ultra 5  Same as Ultra 10

  Ent 220R and 250 SAME as Ultra 60

  Ent 420R Bank 0  2 slots U0301 and U0302
  Bank 1  U0401 and U0402
  Bank 2  U0303 and U0304
  Bank 3  U0403 and U0404

SPARCstation 20
  Bank 0-7 J0201-J0305  Random numbering scheme

SunBlade 2000 Bank 0-1 Top of  Box  Each bank requires 4 matched DIMMs
    Bank 1   Bank 0 is loaded at factory
    Bank 0
    :   Four sets of Bank 0 and Bank 1
    Bank 0

Networking files and info
File  Format
/etc/hosts IP  hostname
/etc/netmasks 9.xx.xx.0 netmask 9.xx is router number minus 1
/etc/resolv.conf domain name  **Required file in Solaris 8  ping will fail with hostname if not correct
  nameserver IP      and all fields are not present
/etc/hostname.tr0 hostname  /etc/hostname.trp0 hostname      for PCI T/R
/etc/nodename hostname
/etc/nsswitch.conf hosts: files dns
/etc/defaultrouter routerIP
RUN  /etc/init.d/network stop then start
 
 

Installing Software Packages

Software control
  pkgadd –d /cdrom/cdrom0/subdirs  pkgnames are like  SUNWtrsd
  pkgrm pkgname
  pkginfo –l pkgname
  pkgchk –v pkgname
  pkginfo | more  see installed packages

Installing packages
  Mkdir /mnt/tempa
  Mount dcertpinstall:/:/inst.images/solaris/8.0/cd2_2 /mnt/tempa  find the SUNWxxxx fileset you want to install on CD1 or 2
  Cd /mnt/tempa/Solaris_8/Product
  Enter  pkgadd –d . SUNWman  fileset for Man Pages

Compiler Install
   Sun WorkShop Compiler V 4.2 is on the Sun WorkShop CD-ROM
     Follow the instructions with the CD to install the SPROcc product. Copy the license from oem-sn06:
  /opt/SUNWspro/license_dir/sunpro.lic,1   Make the permissions 644.
 
 
 

Installing OS Patches

A rough way to determine what patches you have on your machine is to go to the directory "8_recommended" which should have a timestamp if you do "ls -l".  on that dir. If you want to install a new cluster just dwnload it to that directory, it has to be same path or the install scripts won't install it
 

1) Go to URL "http://sunsolve.sun.com/pub-cgi/show.pl?target=patches/patch-access" and in the section "Recommended Solaris Patch Clusters, J2SE and Java Enterprise System Clusters" select the patch file you wish to install (i.e. "8 (138.5M)"), select "Download HTTP", and click "Go". Download the file to a directory you create.

2) Place a copy of the file in "/tmp/patches", unzip it (i.e. "unzip  8_Recommended.zip"), change directories to the folder the unzip created (i.e.  "cd 8 _Recommended"), and type "./install_cluster ".

In addition to all of the patches in the unzip'ed directory, there will be a "CLUSTER_README" that has details of the installation process. In addition, follow the Readme file on the WEB page to get details on any failing patches (probably not installed hardware).

Logs from the update will be in "/var/sadm/install_data/"

Return Codes for Patch Adds:
    2 – patch has been already installed
    5 – attempt to install same arch. and version of a package already installed
    8 – One or more patch packages included in this patch are not installed on system
     patchadd  patchnumber
     patchrm    patchnumber

cat /etc/release   to see the Maintenance Update Level of the system

showrev –p  to identify the patches a MU installed

CEP Patches
  [dtspcd/6112/TCP]
 vi /etc/inetd.conf
# (comment)out     dtspcd line
ps -ef | grep inetd
kill ###
run /usr/sbin/inetd –s   to refresh inetd
 
 


It should look something like:

# ./install_cluster

Patch cluster install script for <cluster name>

Determining if sufficient save space exists...
Sufficient save space exists, continuing...
Installing patches located in <patch cluster directory>
Installing <patch-id>
Installing <patch-id>
.
.
.
Installing <patch-id>

For more installation messages refer to the installation logfile:
   /var/sadm/install_data/<cluster name>_log

Use '/usr/bin/showrev -p' to verify installed patch-ids.
Refer to individual patch README files for more patch detail.
Rebooting the system is usually necessary after installation.
#

Add a New Directory (filesystem) From Unassigned Disk Space

Run format to look at harddrives and allocations
Ex: we find c0t1d0s0 has 1G of free space
Run  newfs  /dev/dsk/c0t1d0s0
         Construct a new fs?  Yes
mkdir /export/home/nlp
mount /dev/dsk/c0t1d0s0 /export/home/nlp
edit /etc/vfstab and add a line to mount /dev/dsk/c0t1d0s0 /export/home/nlp …….     (use another as an example)
 
 

Adding a User on Solaris

add a userid nlptest
    mkdir /usr/nlp/nlptest
    useradd nlptest
    passwd nlptest
    groupadd nlp
    usermod –d /usr/nlp/nlptest  -g nlp nlptest
    check /etc/passwd and etc/group for additions
    chown nlptest:nlp /export/home/nlp
    chmod 775 /export/home/nlp
 
 
 
 

Installing SUNWspro C and C++ Compilers

Copied the License file from oem-sn10 to oem-sn06.

CD SUN Workshop for Solaris 2.x

From rdb43p: mounted on rdb43p, made  /dev/cd0 an NFS filesystem, exported /dev/cd0,
xhost + oem-sn06

From oem-sn06:  mount rdb43p:/dev/cd0 /mount_point, export DISPLAY=rdb43p:0.0, cd /mount_point,
run ./workshop_install

Compilers install into  /opt/SUNWspro.

License file is  /opt/SUNWspro/license_dir/sunpro.lic,1

Packages are SPROcc and SPROcpl, both at Version 4.2

pkginfo –il SPROcc to see the package info long listing
 
 
 

Installing Using Jumpstart

To perform this type of Solaris OS installation, you must have (or obtain the use of) a Jumpstart service. Test Cell 1 uses Jumpstart server "wessun01"(see Ronnie Jones), Test Cell 6 uses "wessun16" (see Mike Wiles).

You must provide to your Jumpstart administrator (i.e. Mike Wiles) your machine's:

1) "MAC address", which can be obtained using the "ifconfig -a" command. The value for "ether" will be your mac address.(i.e. "weasun10.raleigh.ibm.com" machine's MAC address is "0:3:ba:29:af:c4")

2) Your "Disk type" (i.e. "c1t1d0"), which can be obtained using the command "format". This will display the "AVAILABLE DISK SELECTIONS" showing your disk type (Ctrl/D gets you out of this command)..

3) Your IP address, which also can be obtained using the "ifconfig -a" command (the "inet" value will be your ethernet IP address).

4) Your host name (i.e. "weasun10"), which can be obtained using the command "hostname" .

With this information your Jumpstart administrator can configure the Jumpstart service for your useage.

To start the Jumpstart install, either from a logged in state (dterm,xterm,etc), type "reboot   "net   -   install"" (that's "reboot", double quote, "net", minus sign, "install", and double quote), or if you are at the "OK" prompt, type "boot  net  -  install".
 

First Time Jumpstarting a New Machine

The first time you use Jumpstart to install Solaris on a new box, you will have to perform this procedure (according to Mike Wiles, it is unknown why this must be done).

1) After initiatiating a Jumpstart on a new box, you will be presented with a "Solaris Install Console", which will inform you that the "install_begin" script has been executed. A "The Solaris Installation Program" dialog box will appear, press "Continue".

2) In the next install panel click "Initial".

3) In the next panel click "Continue".

4) In the "Select Geographic Region", select "North America", then click "Continue".

5) In the "Select Software" panel, select "End User System Support", then click "Continue".

6) In the "Select Disks" panel, in the "Selected Disks" section, select your disk (probably "c1t1d0"), then click "Continue".

7) In the "Preserve Data" panel, as you are (probably) wanting to wipe out this machine with a new image, select "Continue" (or if you really want to preserve it, select "Preserve". As the author did not follow the preserve route, GOOD FREAKIN LUCK, if you do).

8) In the "Automatically Layout File Systems" panel, select "Manual Layout".

9) In the "File System and Disk Layout" panel, if you like what you see, click "Continue", or optionally "Customize" to layout as you desire. If you select "Customize", you will be presented with a dialog box to custom define your slices. The "overlap" must equal (roughly) the "Capacity" of your disk. Enter what you want and click "OK" (i.e. "/" = "20000", "swap" = "2000", "overlap" = 69994", etc.). You  will get a warning if you have any unused space, click "OK" in the warning panel.

10)  Back in the "File System and Disk Layout" panel, click "Continue".

11) In the "Mount Remote File Systems" panel, click "Continue".

12) In the "Profile" panel, verify your selections and click "Begin INstallation".

13) A "Warning" will perhaps be displayed (e.g. "The following disk configuration condition(s) have been detected. Erros must be fixed to ensure a sucessful installation. Warnings can be ignored witout causing the installation to fail. Warning: Unused disk space (c1t1d0).  Warning: Changing Default Boot Device yada yada yada), click "OK".

14) In the next panel, click "Auto Reboot"

15) A progress panel will be displayed. DO NOT LET YOUR EYES STRAY FROM THIS PANEL, IT WILL CAUSE AN ABORTION OF YOUR INSTALLATION IF YOU LOOK AWAY!. (wanna buy a bridge?).
 
 
 

Accessing WEA Tools

Once you have installed Solaris, you can access the WEA Tools directory by first creating the directory "WEA" (i.e. "mkdir  /WEA"), and then mounting the WEA Tools directory (i.e. "mount   wea2aix6:/WEA   /WEA"). After these operations you can acces the WEA Tools directory.

There is a profile ".profile.sol" with lotsa aliases specifically for the Sun/Solaris environment in "/WEA/tools/shayden". You can copy this to your machine, use as is, or edit for your own useage.
 
 

Temporary Problem With Jumpstart O.S. Installation

Note: Currently for Mike's Jumpstart service, there is a minor problem (that he is working on). From Mike "Once the jumpstart is completed, the error that occurs is the machine will boot up, and then hang trying to contact NIS server???  So what you can do at that point is <Stop-A>, type "boot  -s", log in to single user mode, type "sys-unconfig", then type "boot"

This will reboot the machine and force you to manually configure the network settings."

"F2" = continue)
Select a language:  "0"  = English
Select a locale:       "0"  = English
Configuring Network Interface addresses:   "eri0"
Network Connectivity"   "Networked" "Yes"
Use DHCP   "No"
Hostname:   "weasun11"
IP address   "9.42.xxxxxx"
System part of a subnet"  "Yes"
Netmask:     "255.255.252.0"
Enable IPv6  "No"
(WAIT)

Confirm Information (check it then "F2").
Configure Kerberos Security:   "No"
Nameservice:   (use arrows to move to choice "DNS", then press "Enter", the "F2")
 
 
 
 

Backing Up And Restoring A Sun Machine Using DVDs
 

Backing Up A Sun OS Image

1) Put in the Backup Utility DVD (borrow from Gary Deen).

2) From the Solaris command prompt, type "reboot "cdrom"" (that's "reboot", then double quote, "cdrom", and another double quote). Wait a minth.

3) Dialog will say "Configuring /dev and /devices".  Eventually a blue screen will appear. Right mouse click, select "Programs" and "Console".

4) Change directories to "/tmp", and FTP to any WEA Test Dept AIX machine (except "wea2aix6", "wea2aix7", and "gvtaix04"!) using the IP address of the machine (i.e. "wea2aix1" IP  address =  "9.42.65.221") ( see "WEA Test AIX Boxes" for the list of those machines)

5) Type in "cd /WEA/tools/gdeen/work2", and type in "mget my*" to retrieve files, and quit from FTP.

6) Type "chmod +x my*".

7) Type in "./mybackupscript". The backup should begin.
 

Restoring A Sun OS Image

1) Put in the Backup Utility DVD (borrow from Gary Deen).

2) From the Solaris command prompt, type "reboot "cdrom"" (that's "reboot", then double quote, "cdrom", and another double quote). Wait a minth.

3) Dialog will say "Configuring /dev and /devices".  Eventually a blue screen will appear. Right mouse click, select "Programs" and "Console".

4) To restore this image, change directories to "/tmp", and FTP to any WEA Test Dept AIX machine (except "wea2aix6", "wea2aix7", and "gvtaix04"!) using the IP address of the machine (i.e. "wea2aix1" IP  address =  "9.42.65.221") ( see "WEA Test AIX Boxes" for the list of those machines)

5) Type in "cd /WEA/tools/gdeen/work2", and type in "mget myrestorescript*" to retrieve files, and quit from FTP.

6)  Type "chmod +x my*".

7) Type in "./myrestorescript". The restore should begin. Once the restoration is complete type "reboot" to reboot your machine. Now git to werk!
 
 
 
 

WEA On Sun Problems

Incremental Install
 

Incremental Install

For build 06020851, if you do an incremental install, you must remove packages "gsk5bas", and"gsk4bas". To view these packages type "pkginfo  gsk5bas" and "pkinfo gsk4bas", and to remove them type "pkgrm gsk5bas" and "pksrm gsk4bas". You may then proceed with additional incremental installation(s).