Disk Management

por | 4 septiembre, 2008

Disks consist of the following:

1. Tracks – concentric rings on each platter
2. Cylinders – groups of tracks
3. Sectors/Blocks – 512 byte blocks

### Disk Partitions ###

Note: Partitions within Solaris are AKA slices
x86 PCs are limited to 4 FDISK primary partitions
Note: Solaris requieres 1 FDISK partition for its use

DISK – 72 GB

On x86 systems:
DISK Physical
FDISK Logical
Slices Logical

– 1 FDISK partition for Solaris use
– Slices are created within the single FDISK partition

Note: Solaris uses a VTOC – Volume Table of Contents to represent various slices within the lone FDISK partition on the disk.

Note: On Sparc, Solaris use VTOC to represent ALL slices on disk not withing lone FDISK

FDISK is not required in sparc

Slices rules within x86 using VTOC:
10 Slices ( 0 – 9 ) MAX maybe created using VTOC on x86
Slices 2, 8 , 9 are reserved
Slice 2 = VTOC

Note: VTOC represents the disk’s label and occupies Slice 2

0,1,3,4,5,6,7 – 7 Slices are available for use

Default Slice Allocation:

S0 – / (root) mount point
S3 – /var
S7 – /export/home

SPARC Disk Layout

Max of 8 slices 0 – 7
DISK0 – 72 GB

On Sparc:
DISK is physical
Slices are Logical

S0 – /
S3 – /var
S7 /export/home

Note: DIsk with ‘/ (root ) & /usr’ mount points is known as the system disk ‘ This disk is used to boot Solaris

All other disks attached to the system are known as secondary disks

### Print VTOC / Disk Label – using prtvtoc ###



# prtvtoc /dev/dsk/c0t0d0s0

* /dev/dsk/c0t0d0s0 partition map
*
* Dimensions:
* 512 bytes/sector
* 136 sectors/track
* 16 tracks/cylinder
* 2176 sectors/cylinder
* 65535 cylinders
* 65533 accessible cylinders
*
* Flags:
* 1: unmountable
* 10: read-only
*
* First Sector Last
* Partition Tag Flags Sector Count Sector Mount Directory
0 2 00 16779136 33556096 50335231 /
1 3 01 0 16779136 16779135
2 5 00 0 142599808 142599807
7 8 00 50335232 92264576 142599807 /export/home

/dev/dsk/c0t0d0s0 – Nomenclature

c0 – Controller #
t0 – is an identifier for bus – oriented controlled – first targed or id on the bus – first hard disk
d0 – represents disk number # first 0
S0 – represents the slice/partition