Solaris General Info

Logical disk device names

Example:c0t1d0s4
c = controller
t = target ID
d = disk
s = slice

/dev/dsk = block device
/dev/rdsk = character, or raw, device

Slice configuration (default)

s0 = /
s1 = swap
s2 = whole disk (symbolic)
s3 = user defined
s4 = user defined
s5 = /opt
s6 = /usr
s7 = /export/home

Slice 0 (s0)

/Docs = empty
/Misc = Jump Start files
/Patches = current patches
/Product = package and control files
/Tools = install tools

Terminal and crontab

TERM=xterm;export TERM
EDITOR=/usr/bin/vi;export EDITOR

Break out of RSC console

~.

Stop+A without a Sun keyboard Method One: Will work as a non-root user from a GUI/CDE session.

Break+A

Method Two: Will work from a terminal or a SSH session, as root only.

# init 0

Work with CD-ROM

svcs volfs
volcheck
eject

Solaris & Swap

vmstat displays in Kbytes

sar –r displays in blocks (block= 512 bytes)

swap –s displays in bytes

swap –l displays in blocks (block = 512 bytes)

swap –s versus swap –l

swap –l does not include physical memory in count

Disable the graphical-login/gdm service

svcadm disable graphical-login/gdm

Door file type Special file for inter-process communication between a client and server, currently implemented in the Sun Solaris operating system only

Files

/etc/vfstab = /etc/fstab
/etc/mnttab = /etc/mtab
/var/adm/messages = /var/log/messages

VTOC (Volume Table of Contents)

Stores disk info (i.e. partition table and labels). Think MBR.

prtvtoc - print VTOC, or the partition table

f = free space

t vfstab = file system defaults

m mnttab = mounted file systems list

Core Dump

savecore - command to retrieve core dump files from dump device

unix.N - name list info

vmcore.N - core dump

dumpadm - command to view dump config

/etc/dumpadm.conf

coreadm - view and change core file behavior

/etc/coreadm.conf

NFS

NFS commands

share/unshare - same as export
automount - enable autofs
clear_locks - clear client locks or all server locks
dfshares - show exported filesystems
dfmounts - show mounted NFS filesystems
nfsstat - view NFS statistics
rpcinfo - view RPC stats and status
other - snoop, truss, pstack

NFS files

/etc/dfs/dfstab - entries shared automatically at startup
/etc/dfs/sharetab - all local and remote shared resources
/etc/mnttab - all current mounts, including automounts
/etc/rmtab - current remote NFS mounts
/etc/vfstab - shared filesystems that can be mounted locally
/etc/default/fs - lists default local filesystem types
/etc/dfs/fstypes - lists default remote filesystem types
/etc/netconfig - lists NFS network transport protocols
/etc/nfssec.conf - list of security services
/etc/default/nfs - config for nfsd and lockd
/etc/default/nfslogd - config for nfslogd
/etc/nfs/nfslog.conf - config for NFS server logging
/etc/nfs/nfslogtab - config for NFS log post-processing

NFS Server services

rpcinfo -u localhost nfsd
rpcinfo -u localhost mountd
rpcinfo -u localhost rpcbind

CacheFS

cachefsstat - show cache stats and usage
cachefslog - how users access cache
cachefswssize - specify size limit for cache
cfadmin - admin cache filesystem disk space

Jump Start files & process

rules - links profile to system(s)
rules.ok - generated by check script
profile - describes install parameters
sysidcfg - installation config file