It Facilities Cross Training Programme: Support Hardware System Administration
It Facilities Cross Training Programme: Support Hardware System Administration
SYSTEMHARDWARE
ADMINISTRATION
SUPPORT
TRAINING PROGRAMME
• Unix Overview
• Installation
Systems
Computer systems consist of …
Hardware Software
Organizes Files
Modern OS’s
Which one are you familiar with? Which have you used?
Mac Windows
DOS
Unix NT
Linux
UNIX Overview
Late 70’s
Commercial 4.4BSD-Lite Removed
Version AT&T code
Korn Shell ($) ksh David Korn wrote this shell to be compatible
with the Bourne Shell but included the cool
features introduced by the C Shell. However,
it did the C Shell one step further and
introduced history editing.
Shell Facilities
Bourne C Korn
Command line
editing No No Yes
Unix Filesystem
A way of naming things and arranging them in
Namespace a hierarchy
Security
A scheme for protecting,
hiding, and sharing things
Implementation
Code that ties the logical model to an actual disk
Why Unix?
Multiuser Multitasking
Regular Files
Directory files
UNIX domain sockets
Character device files
Names pipes (FIFOs)
Block device files
Symbolic links
Regular Files
Utility or Utility or
pipe User Program
User Program
You can install the Solaris 8 software on a system using one of the
following installation options:
Core
Core is a software group that contains the minimum software required
to boot and run the Solaris Operating Environment on a system. It
includes some networking software and the drivers required to run the
Common Desktop Environment (CDE) or OpenWindows desktop. It
does not include the CDE or OpenWindows software.
End User System Support
The End User System Support is a software group that contains the
Core software group plus the recommended software for an end user,
including OpenWindows or CDE and DeskSet software.
Note – Approximate disk space requirement for End User is 1.6 Gbytes.
Entire Distribution
The Entire Distribution is a software group that contains the entire
Solaris Operating Environment software release.
Note – Approximate disk space requirement for Entire Distribution is
2.3 Gbytes.
Entire Distribution PlusOEMSupport
The Entire Distribution Plus OEM Support is a software group
that contains the entire Solaris Operating Environment software
release, plus additional hardware support for Original Equipment
Manufacturers (OEMs). This software group is recommended
when installing the Solaris Operating Environment software on
SPARCbased servers.
Host name – A unique, commonly short name for the system. You
can use the command uname -n command to determine the host
name on an existing system.
Each Sun system has a boot PROM chip. This 8-Kbyte chip is typically
located on the same board as the CPU.
The main functions of the boot PROM are to test the system hardware
and boot the operating system.
The boot PROM firmware, referred to as the monitor program,
controls the operation of the system before the kernel is available. The
boot PROM firmware has the capabilities to perform system
initialization at power on and provide a user interface.
Note – The boot PROM does not understand the Solaris Operating
Environment file systems or files; it deals mainly with hardware
devices.
The NVRAM Component
The NVRAM stores the Ethernet address, host ID, and the time-of-day
(TOD) clock. A single lithium battery within the NVRAM module
provides battery backup for the NVRAM and clock. The NVRAM
module also contains the EEPROM for the storage of user-configurable
parameters that have been changed or customized from the boot
PROM’s default parameters settings. This gives you a
certain level of flexibility in configuring the system to behave in a
particular manner for a specific set of circumstances. The user-interface
commands and device aliases are stored in the NVRAM.
Note – The NVRAM chip has a yellow sticker with a bar code on it.
Many software packages that are licensed are based on the system host
ID in NVRAM. If the chip fails, Sun will replace it with a new chip
containing the same host ID and Ethernet address.
ok banner
Sun Ultra 5/10 UPA/PCI (UltraSPARC-IIi 270MHz), Keyboard Present
OpenBoot 3.11, 128 MB memory installed, Serial #11900965.
Ethernet address 8:0:20:b5:98:25, Host ID: 80b59825.
The bootCommand
Options
The following list describes the options for the boot command:
s – Boots the system to a single-user mode and prompts for the
root password. For example: ok boot -s
In single user mode, the system is running only minimal processes and
services, and regular users cannot log in.
Note – Single user mode is often referred to as maintenance mode. The root
password is required to move into single-user mode on a system.
Multi-User Mode
Multi-user mode indicates the system is running all of the processes and
services necessary to support multiple users who have logged in to access
the system and its data.
You use the help command to obtain help on the main categories contained
in the OpenBoot firmware. The help listing provides a number of other key
words that you can use in the help command to provide further details.
For example: ok help
Examples:
help select -or- help line Select I/O devices
Main categories are: Floppy eject
Repeated loops Power on reset
Defining new commands Diag (diagnostic routines)
Numeric output Resume execution
Radix (number base conversions) File download and boot
Arithmetic ok
nvramrc (making new commands permanent)
Memory access
Line editor
System and boot configuration parameters
Detailed Help
You can use the printenv command to list all the NVRAM
parameters. The name of each parameter is displayed along with the
values of its default setting and current setting (if the parameter can be
modified).
ok printenv
You can also use the printenv command to display only a single
parameter and its values. For example, to display only the bootdevice
parameter:
ok printenv boot-device
boot-device = disk net
The possible values to boot-device include: disk, net, and cdrom.
The setenv Command
You use the setenv command to change the current values assigned to
NVRAM parameters.
In this example, the auto-boot? parameter is changed from its default
setting of true to a new current value of false.
ok printenv auto-boot?
auto-boot? = true
ok
ok setenv auto-boot? false
auto-boot? = false
ok reset
Resetting ...
The reset command reads the changes to the environment variables.
The reset Command
The reset command halts the system, clears all buffers, registers the system, and
does one of the following:
Reboots the system if the auto-boot? parameter is set to true
Redisplays the ok prompt if the auto-boot? parameter is set to false
The probe-scsi command identifies the peripheral devices (disks, tape drives, or
CDROMs) attached to the on-board SCSI controller, by their target address. For
example:
ok probe-scsi
Target 3
Unit 0 Disk SEAGATE ST1480 SUN0424626600190016
Target 6
Unit 0 Removable Read Only device SONY CDROM
The probe-scsi-all Command
The probe-scsi-all command identifies the peripheral devices attached to the on-
board SCSI controller and all peripheral devices attached to separate SBus or PCI
SCSI controllers.
ok probe-scsi-all
/pci@1f,0/pci@1/pci@1/SUNW,isptwo@4
Target 3
Unit 0 Disk FUJITSU MAB3045S SUN4.2G1907
Target 4
Unit 0 Removable Tape EXABYTE EXB-8505SMBANSH20090
The probe-ide command identifies the peripheral devices, currently only disks
and CDROMs, attached to the on-board ide controller. This command does not
display target addresses, only device numbers.
For example:
ok probe-ide
Device 0 ( Primary Master ) --- ATA Model : ST 34342A
Device 1 ( Primary Slave ) --- Not Present
Device 2 ( Secondary Master ) --- Removable ATAPI Model : CRD-8240B
Device 3 ( Secondary Slave ) --- Not Present
The system’s boot device is set in the NVRAM as the boot-device parameter,
which is by default set to disk. ok printenv boot-device
boot-device = disk net
To identify the current boot device for the system, use the devalias command.
ok devalias
screen /pci@1f,0/pci@1,1/SUNW,m64B@2
net /pci@1f,0/pci@1,1/network@1,1
cdrom /pci@1f,0/pci@1,1/ide@3/cdrom@2,0:f
disk /pci@1f,0/pci@1,1/ide@3/disk@0,0
disk3 /pci@1f,0/pci@1,1/ide@3/disk@3,0
disk2 /pci@1f,0/pci@1,1/ide@3/disk@2,0
disk1 /pci@1f,0/pci@1,1/ide@3/disk@1,0
Creating Custom Device Aliases
You can boot from an external device. External devices do not, by default, have
built-in device aliases associated with them. A portion of the NVRAM called
NVRAMRC contains registers to hold parameters and is also, reserved for storing
new device alias names. The NVRAMRC is effected by the commands nvalias,
nvunalias, nvedit and the parameter use-nvramrc?.
To create a new device alias name to access the newly attached external device,
use the command nvalias. To create a custom device alias name:
ok nvunalias alias-name
You use nvunalias to delete the alias name mydisk from NVRAMRC,
and set the boot-device to disk.
ok nvunalias mydisk
ok setenv boot-device disk
boot-device = disk
ok reset
Resetting ...
On Sun systems with PROM versions 1.x and 2.x, the nvalias
command might not be available to create custom device alias names.
On these systems you use the nvedit command to edit the
NVRAMRC directly. The nvedit editor is a simple line editor that has
a set of editing commands and operates in a temporary buffer.
The following is a sample nvedit session:
ok setenv use-nvramrc? true
use-nvramrc? = true
ok nvedit
0: devalias mydisk /pci@1f,0/pci@1,1/ide@3/disk@0,0
1: Control-c
ok nvstore
ok reset
Resetting ...
ok boot mydisk
You use the nvstore command, which is invoked after exiting nveditp to make
permanent changes to NVRAMRC.
The following lists some basic nvedit commands:
Examples
To list all of the parameters with default and current values, type:
# eeprom
To list a single parameter and its value, type:
# eeprom boot-device
boot-device=disk
#
To change the value of the default boot device, type:
# eeprom boot-device=disk2
#
To change the value of the auto-boot? parameter, type:
# eeprom auto-boot?=true
auto-boot?=true
#