우선 disk 관련 정보를 출력해봅니다.
[root@localhost] ~# sysctl -a |grep -i disk
kern.disks: ada2 ada1 ada0 cd0
kern.geom.disk.cd0.led:
kern.geom.disk.ada0.led:
kern.geom.disk.ada1.led:
kern.geom.disk.ada2.led:
0 DISK ada2 5368709120 512 hd 16 sc 63
1 MULTIPATH multipath/disk1 5368708608 512(null)<State>DEGRADED</State>
0 DISK ada1 5368709120 512 hd 16 sc 63
0 DISK ada0 5368709120 512 hd 16 sc 63
0 DISK cd0 0 2048 hd 0 sc 0
z0xca04de80 [shape=box,label="MULTIPATH\ndisk1\nr#2"];
z0xca04d880 [shape=hexagon,label="multipath/disk1\nr0w0e0\nerr#0"];
z0xc41d3200 [shape=box,label="DISK\nada2\nr#1"];
z0xc41d3980 [shape=box,label="DISK\nada1\nr#1"];
z0xc6f2d980 [shape=box,label="DISK\nada0\nr#1"];
z0xc41d3d80 [shape=box,label="DISK\ncd0\nr#1"];
z0xca1d6200 [shape=box,label="DEV\nmultipath/disk1\nr#3"];
<name>disk1</name>
<name>multipath/disk1</name>
<name>DISK</name>
<name>multipath/disk1</name>
Processes: (RUNQ: 1 Disk Wait: 0 Page Wait: 0 Sleep: 51)
vfs.nfs.diskless_rootpath:
vfs.nfs.diskless_valid: 0
위와 같이 ada0, ada1, ada2 이런 문자가 보인다면 아래 명령으로 좀 더 자세하게 살펴 볼 수 있습니다.
해당 디스크 장치 정보 출력
[root@localhost] ~# diskinfo -v ada0
ada0
512 # sectorsize
5368709120 # mediasize in bytes (5.0G)
10485760 # mediasize in sectors
4096 # stripesize
0 # stripeoffset
10402 # Cylinders according to firmware.
16 # Heads according to firmware.
63 # Sectors according to firmware.
# Disk ident.
[root@localhost] ~# diskinfo -v ada1
ada1
512 # sectorsize
5368709120 # mediasize in bytes (5.0G)
10485760 # mediasize in sectors
4096 # stripesize
0 # stripeoffset
10402 # Cylinders according to firmware.
16 # Heads according to firmware.
63 # Sectors according to firmware.
# Disk ident.
[root@localhost] ~# diskinfo -v ada2
ada2
512 # sectorsize
5368709120 # mediasize in bytes (5.0G)
10485760 # mediasize in sectors
4096 # stripesize
0 # stripeoffset
10402 # Cylinders according to firmware.
16 # Heads according to firmware.
63 # Sectors according to firmware.
# Disk ident.