Managing Local disk devices (solaris 10)

To display a physical device name

# ls -l /dev/dsk/c0d1s0

# ls -l /dev/rdsk/c0d1s0

Instance names are abbreviated names assigned by the kernel for each device on the system. An instance name is a shortened name for the physical device name.

# cat /etc/path_to_inst        ==> to view the physical name and instance                         name of devices

# prtconf    ==> to display the system’s configuration information

# format     ==> to display both logical and physical device names

    Ctrl+d  -  to exit the format utility

Disk Partition Tables

# format

format> verify        ==> to read a disks VTOC (Volume Table of Contents)

# prtvtoc /dev/dsk/c0d1s0    ==> to read a disks VTOC

# prtvtoc /dev/dsk/c0d1s2

Relabeling a Disk

# prtvtoc /dev/dsk/c0d1s2 > /var/tmp/c0d1.vtoc    ==> to save a disk’s VTOC to                                 a file

To relabel a disk

# fmthard -s /var/tmp/c0d1.vtoc /dev/rdsk/c0d1s2

To initialize the VTOC of a disk

# fmthard -s /dev/null /dev/rdsk/c0d1s2

# fdisk -W - /dev/rdsk/c0d1p0    ==> to view fdisk partition table details

# fdisk -W /var/tmp/c0d1p0 /dev/rdsk/c0d1p0    ==> to save fdisk partition          details to a file

# fdisk -F /var/tmp/c0d1p0 /dev/rdsk/c0d1p0    ==> to restore fdisk                                 partition table

Solaris Management Console

# smc &        ==> to start Solaris Management Console

# /etc/init.d/init.wbem status    ==> to determine if SMC server is running

# /etc/init.d/init.wbem stop    ==> to stop the SMC server

# /etc/init.d/init.wbem start    ==> to start the SMC server