Disk Management

Disk slicing differs between the SPARC and the x86 platforms. On the SPARC platform, the entire disk is devoted to the Solaris OS; the disk can be divided into 8 slices, numbered 07. On the x86 platform, the disk is divided into fdisk partitions using the fdisk command. The Solaris fdisk partition is divided into 10 slices, numbered 09.

The default action mounts the file system with the following options: read/write, setuid, intr, logging, largefiles,xattr, and onerror=panic.

Commands

  • Show all disks: echo | format
  • Read a disks VTOC: prtvtoc /dev/dsk/c0t2d0s0
  • Scan after a new disk: devfsadm -Cv

Add a new disk

devfsadm -Cv
echo|format
format => make partition
newfs /dev/rdsk/c0t2d0s0
mkdir /newfs

vi /etc/vfstab

/dev/dsk/c0t2d0s0       /dev/rdsk/c0t2d0s0      /newfs    ufs     2       yes     -

mount /newfs