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.
To list the system's devices, you can use the following commands:
dmesg
format
prtconf
sysdef
To reconfigure the devices, you can perform any of these actions:
touch /reconfigure
and reboot the system-r
option (boot -r
)reboot – -r
devfsadm
devfsadm -c
class, e.g. devfsadm -c disk
devfsadm -i
driver, e.g. devfsadm -i sd
“/pci@0/pci@0/pci@1/pci@0/pci@2/network@0” 0 “e1000g”
e1000g0
/dev/e1000g0
(symlink to physical device path)e1000g
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"
Maps driver name to major device number.
Example:
e1000g 51
prtvtoc <raw device>
fmthard -s <vtoc backup> <raw device>
prtvtoc <source raw device> | fmthard -s - <target raw device>
find <filesystem> -mount -inum <inode> -ls
find / -mount -inum 4711 -ls
: add newfs options
newfs -Nv <raw device>
fstyp
list filesystems propeties, e.g. alternate superblocks:fstyp -v <raw device>
fsck -o b=<backup superblock> <raw device>
c0t0d0s0
:fsck -o b=4711 /dev/rdsk/c0t0d0s0
/var
.labelit -F <fstype> <raw device> <fs name> <volume>
labelit <raw device>
c0t0d0s0
:labelif -F ufs /dev/rdsk/c0t0d0s0 home vol1
volcopy