Table of Contents

Notes for the Solaris 10 System Administration Exam (CX-310-200 & -202)

I'm preparing myself for the two exams to achieve the Sun Certified System Administrator (SCSA) certification. This are my notes taken while studying the preparation books.

Managing File Systems

List Devices

To list the system's devices, you can use the following commands:

Reconfigure Devices

To reconfigure the devices, you can perform any of these actions:

  1. touch /reconfigure and reboot the system
  2. From OK promt, bott the system with -r option (boot -r)
  3. reboot – -r
  4. Run devfsadm
    • Limit to class of devices: devfsadm -c class, e.g. devfsadm -c disk
    • Limit a driver: devfsadm -i driver, e.g. devfsadm -i sd

Device Names

Device Config Files

/etc/path_to_inst

The file /etc/path_to_inst maps physical device paths to driver name and driver instance number.

Example:

"/pci@0/pci@0/pci@1/pci@0/pci@2/network@0" 0 "e1000g"

/etc/name_to_major

Maps driver name to major device number.

Example:

e1000g 51

Save and Restore the VTOC

prtvtoc <raw device>
fmthard -s <vtoc backup> <raw device>
prtvtoc <source raw device> | fmthard -s - <target raw device>

Inodes

find <filesystem> -mount -inum <inode> -ls
find / -mount -inum 4711 -ls

Block Sizes

Filesystem Creation and Administration

newsfs

FIXME: add newfs options

newfs -Nv <raw device>

fstyp

fstyp -v <raw device>

fsck

fsck -o b=<backup superblock> <raw device>
fsck -o b=4711 /dev/rdsk/c0t0d0s0

Label Filesystem

labelit -F <fstype> <raw device> <fs name> <volume>
labelit <raw device>
labelif -F ufs /dev/rdsk/c0t0d0s0 home vol1