Quantcast
Channel: 天行健,君子以自强不息 »存储
Viewing all articles
Browse latest Browse all 10

读懂Solaris磁盘命名

$
0
0

在Solaris平台进行测试,共享磁盘的命名经常感觉很奇怪,有些很短,比如c1t2d1s1,但是有些就很长一串,比如c3t266000C0FFF7C140d31s2。另外有些还是c1t1p2,有些磁盘可以分区的最大值是8个,但是有些是14个。最后查了资料发现其中的命名规则,记录如下,仅供参考:

Oracle Solaris OS systems use a standard naming convention to identify disk devices. Disk
device names identify a series of components that together specify a particular disk device.
The disk device name includes the controller, target, disk (or LUN), fdisk partition, and slice
that a particular disk device uses.
Examples of disk device names include the following:

  • c1t0d0s0: A SCSI disk device name that specifies controller 1, target 0, disk 0, and slice 0
  • c1d0p0: An IDE or SATA disk name on an x86/x64 system that specifies controller 1, disk 0, and fdisk partition 0
  • c1d0s0: An IDE or SATA disk name that specifies controller 1, disk 0, and slice 0
  • c5t12d0p0: A SCSI disk device name on an x86/x64 system that specifies controller 5, target 12, disk 0, and fdisk partition 0
  • c5t12d0s0: A SCSI disk device name that specifies controller 5, target 12, disk 0, and slice 0
  • c3t266000C0FFF7C140d31s2: A Fibre Channel attached LUN name that specifies controller 3, WWN 266000C0FFF7C140, LUN 31, and slice 2

These names identify the following components:

* Controller number: Identifies the host bus adapter (HBA), which controls communication between the system and disk unit. The HBA takes care of transferring both commands and data to and from the device. Controller numbers are assigned in sequential order, such as c0, c1, c2, and so on.

* Target number: Target numbers (such as t0, t1, t2, and t3) identify a unique hardware address assigned to the SCSI target controller of a disk, tape, or CD-ROM. Some external disk drives have an address switch located on the rear panel. Some internal disks have address pins that are jumpered to assign that disk’s target number. Names for IDE or SATA disks typically do not use target numbers, although on some systems they do. Fibre Channel attached disks may use a World Wide Name (WWN) instead of a target number.

* Disk number: The disk number is also known as the logical unit number (LUN). This number may vary from d0 if more than one disk can be attached at the target location.

* fdisk partition number: The fdisk partition number ranging from p0 to p4. The number p0 represents the whole physical disk. Device names that include fdisk partition IDs are found only on x86/x64 systems.

* Slice number: A slice number ranging from s0 to s7 on SPARC systems, and from s0 to s15 on x86/x64 systems


Viewing all articles
Browse latest Browse all 10

Latest Images

Trending Articles





Latest Images