Sie sind auf Seite 1von 7

Solaris Notes

E250/450
.post
.asr
.asr-disable

lists of components enabled


enable/disabled components
cpu (in OBP)
memory (bank of)

RSC

/usr/platform/sun4u/bin
rsc config rsc adm

setenv input-device rsc


output-device rsc
.rsc status 1 (on) 0 (off) (client) software
To tip :-

tip -9600 /dev/term/a (b)

RSC Commands
usershow
userdel name
useradd name
userperm name c u a r
userpassword name (6+ characters)
reset rsc
logout
show
E3x00, 4x00, 5x00, 6x00
To interleave all memory should be same size
Must have I/O in top slot (4x00)
E6x00 has 16 slots 1 I/O board & 2 CPUs/ 2Gb memory per board
4 types of devices CPU, Sysio, FFB, Psycho
FHC (fire hose controller) performs post on each board on boot
Firetruck (centre plane bus 256bits wide
256Mb maximum dimm of cpu/memory board
Bank 0 furthest away from slot
Clock speed E6000 (83mhz)
E6500 (90mhz)
Bottom 2 boards in E6500 used as disk boards
sunwisp@*,1000 ultra wide differential scsi
cgsix6@0
graphics card
SUNW,fas@*,8800000
sunswift card (feps)
SUNW,fas@*,8c00000
sunswift card (hme)
A5x00 notes
Speed of FC 100Mb/s over a maximum distance of no grater than 10km
Maximum devices is 127

Lowest WWN is determined to be the master, not the disks, but is possible.
Hot plug (no intervention)
Hot swap (user intervention)
Configuration of IB
A1
B1

A0
B0 (from rear)

Script to run to test volumes:While true


Do
Mkfile 100m /path_to folder/file
Echo making file
Sleep 1
Rm /path_to folder/file
Echo deleting file
Done
Solaris 9 part II
ufsrestore m
restores current directory on disk
nvstore
stores to nvramrc
prstat p pid
Man k
keywords
-m
alternate man pages
/etc/shadow
no. lastchg from Jan 1st 1970
ufsdump a
creates archive
-i
browse backup tapes archive structure
patchrm B backout_dir
to remove a patch
pkgchk l *
info & install time
etc/inittab
execute sysinit b4 init tries 2 acc console
password
at least 6 char (inc 1 alphanumeric)
change at least 3 char
groupadd o gid
gid to be duplicated
groupadd g gid o
groupname
admintool
manages packages not patches
GID 14
for adding users & admin tasks
tar options tarfilename file list
/var/sadm/install/contents software package map
drvconfig/devfsadm
updates /etc/path_to _inst
devfsadm I
driver name
/etc/format.dat
format invoked
inquiry (format)
shows vendor, product & revision
ufsdump 0S /var
size of slice to backup
mt
control tape device
who r
previous & current run level
data blocks associated
regular files, directories & sym links
prstat a
lists processes & users at same time
-c
continiuosly prints
-t
total usage
-n
restricts output
rmount
for cdrom & floppy
sdtprocess
starts cde process manager
boot a (L1 + a)
interactive mode

pax
same as tar (backup utilty)
crontab files
/var/spool/cron/crontabs
ufsrestore options args file(s)
userdel r
removes home directory
/etc/vold.conf
config file for vold daemon
In vi
/word (to search for string)
n next
/usr/proc/bin
./ptree ( to see process tree of parent/child processes)
cp /usr/bin/ksh sos
./sos
su access
binary calculator
obase=16 (hex value)
Man 1 cmds
2 system calls
3 libs
4 file formats
5 macro
6 games/demos
7 special
8 not used
9 device drivers
man s 2 intro
/etc/inetd.conf (super daemon for services)
/etc/services
/etc/rpc
Useful command:Find / -mount ( not across file system) inum xxx
V480/880 notes

(V880) pci@6,700000=33Mhz slot (5v)


(V880) pci@6,600000=66Mhz slot (3.3v)
ok> .asr (maps error with configuration)
asr-disable
asr-enable
luxadm probe probes devices

On V480 to locate box (green led on front left)


/usr/sbin/locator
./locator -n (on)
-f (off)
psrinfo (status of processors)
psradm n (online) I (lowercase) (disable interrupt) f (offline)
Solaris (decimal)
OBP
(hexadecimal)
POST (decimal)

(except /etc/path_to _inst)

Loop a on FC-AL 21xxxx


Loop b on FC-AL 22xxxx
OBP 4.17.x will always set test-args in OBP (default is verbose)
Veritas 4.0
Evacuate disks
Vxdg init mydg disk1=c*t*d*.
Vxdg g mydg adddisk disk2=
Vxdg g mydg adddisk disk3=
Vxassist g mydg make vol1 20m layout=mirror-concat( other variables)
Vxdiskadm
Option 7
Disk1, then disk2..
Creating Storage Pools
Vxdg init mydg disk01=c0t0d0
Vxdg g mydg adddisk disk02=c0t1d0.
Vxpool g mydg create(or make) mypool
dm=disk01,disk02 pooldefintion=raid5_volume
vxvoladm g mydg make myvol 100m
volume_template=Raid5Volume
capability=Raid5Capabilty(nmaxcols=4 ((variable)) ) (4 data, 1 log, 1 parity)
vxpool printpooldefinitions raid5_volume
vxvoladm g mydg remove volume myvol
vxpool g mydg rmdisk mypool dm=disk01,disk02..
vxpool g mydg delete mypool
Commands
Iostat xnp

x-extending
n-named mount points
p=-partition
luxadm probe
luxadm display
Mirror in Veritas as per SOP
Setenv diag-device rootdisk
Setenv boot-device rootdisk mirrdisk
Devalias
Nvalias rootdisk. Path to root disk (full)
Nvalias mirrdisk ..path to mirrdisk (full)
Reset all then boot rootdisk or mirrdisk
Dont forget to..
create a file /etc/default/vxdg and put
cds=off
to make 'sliced' the default format for vxdisksetup create /etc/default/vxdisk and put the following
in it..
format=sliced
Solaris System Administrator I
www.2test.com
www.cramsession.com
www.sun.com/blueprints
www.bhami.com/rosetta.html
www.storagemountain.com
www.storagereview.com
/etc/inet.host host to IP resolution
find /var nouser nogroup
finds all files not owned
passwd f
forces passwd set at first login
truss
traces system calls & signals
/etc/release
OS version
ufs & vxfs
only support acp
/etc/nsswitch.files > /etc/nsswitch.conf
name resolution
+ in /.rhost or $HOME
no password for root
Solaris 10 notes
Intel x86 this architecture has no concept of c0t0d0s0, this is relayed as c0d0s0 or
c0d0p0

kdmconfig sets up keyboard, video in CDE

/dev/ (memory based)

/devices (hard disk/ln based)

du sh /filesystem

prtconf | grep v not

/etc/smc/smc.server.config

fc s -- -| 2>/dev/null

this invokes the previous command and suppresses stderr for both fc & previous command

to setup default route on a network

netstat rn

route delete default

route add default

netstat rn

disable stop a

/etc/default/kbd

#keyboard_abort=disable

svcs x lists services not working

-d processes waiting for dependents ( beneath tree structure)

-D dependent processes ( above tree)

-a all services ( which are enabled/disabled)

svcadm enable/disable service

-t temporary enabled/disabled

find /archivelogs -type f -xdev | xargs ls -sltr | sort -nr | more or | head -20