做完磁盘阵列后,*好给每个硬盘制做*个不干胶标签,贴到硬盘上,这样,可以在硬盘出现问题时,
快速找到损坏的硬盘,并更换,减少停机时间.
标签的制做很简单,用贝迪的tls2200配合合适的标签,很容易打印出漂亮的硬盘标识. sda,sdb,sdc,sdd,hda,hdb,hdc,hdd
但是怎么能够快速的知道机箱里诸多硬盘各自的编号呢?
我们可以使用hdparm命令来查询硬盘的序列号.然后根据每个硬盘盘体上面标注的序列号,就可以定位到每个硬盘.
使用hdparm查询序列号的参数是这样的:
#hdpatm -I /dev/sda
/dev/sda:
ATA device, with non-removable media
Model Number: ST3320620AS
Serial Number: 5QF0337C
Firmware Revision: 3.AAC
Standards:
Supported: 7 6 5 4
Likely used: 7
Configuration:
Logical max current
cylinders 16383 16383
heads 16 16
sectors/track 63 63
--
CHS current addressable sectors: 16514064
LBA user addressable sectors: 268435455
LBA48 user addressable sectors: 625142448
device size with M = 1024*1024: 305245 MBytes
device size with M = 1000*1000: 320072 MBytes (320 GB)