solaris_IP 发表于 2008-11-06 23:38

介绍disk的基本体系结构

Disk设备有物理部分和逻辑部分。物理部分包括磁盘片和读写头。逻辑部分包括disk分区,柱面,磁道和扇区。
物理disk的结构:
platters,spindle,Head,Head actuator arm。
Disk Platter上的数据组织结构
{
Sector:
The smallest addressable unit on a platter.One sector can hold 512 bytes of data.Sectors are also known as disk blocks.
Track:
A series of sectors positioned end-to-end in a circular path. The number of sectors per track varies with the radius of a track on the platter. The outer tracks are larger and can hold more sectors than the inner tracks.
Cylinder:
A stack of concentric tracks.
}
扇区:
在磁盘片上面最小的可寻址单元。每个扇区包含512B数据。扇区也是众所周知的disk block。
磁道:
一系列扇区尾接尾的排列在一个圆形的路径上。在磁盘片上,每个磁道上扇区的数量随着每个磁道的半径不同而变化。越在外边的磁道越大,并且比内部磁道能拥有(hold)更多的扇区。
柱面:
一系列同轴磁道。
磁盘分区
××组柱面分成分区来组织数据,方便备份和提供交换空间。
slice 0到slice 7,slice 2表示整个盘。
slice 2维护整个盘重要的数据,像盘实际的大小,用来存储文件和目录的可用柱面的总数。
硬盘分区的命名习惯:
8个字符串标识一个分区的全名。
controller/target/disk/slice number
SCSI和IDE配置是2个不同的体系结构。
HBA(scsi)->t0,t1,t2...在同一个bus上。
HBA(IDE)->primary{Master,Slave}t0,t1
      ->secondary{Master,Slave}t2,t3
               
               
               

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u2/84098/showart_1385459.html
页: [1]
查看完整版本: 介绍disk的基本体系结构