最初に全部入れると、どこのSATAポートがどのHDDかいつも忘れるれるのでメモ
インストール
#yum -y install smartmontools
何がマウントされてるか確認
[root@localhost ~]# smartctl --scan /dev/sda -d scsi # /dev/sda, SCSI device /dev/sdb -d scsi # /dev/sdb, SCSI device /dev/sdc -d scsi # /dev/sdc, SCSI device /dev/sdd -d scsi # /dev/sdd, SCSI device /dev/sde -d scsi # /dev/sde, SCSI device # smartctl /dev/sda -i # smartctl /dev/sdb -i # smartctl /dev/sdc -i # smartctl /dev/sdd -i # smartctl /dev/sde -i
sdbに何のHDDが刺さってるか確認
Device ModelとかSerial NumberをHDDに書いてあるシール?と照らし合わせる
# smartctl /dev/sdb -i smartctl 6.5 2016-05-07 r4318 [x86_64-linux-3.10.0-693.el7.x86_64] (local build) Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org === START OF INFORMATION SECTION === Model Family: Toshiba 3.5" MD04ACA... Enterprise HDD Device Model: TOSHIBA MD04ACA300 Serial Number: にゃーん LU WWN Device Id: にゃーん? Firmware Version: FP1A User Capacity: 3,000,592,982,016 bytes [3.00 TB] Sector Sizes: 512 bytes logical, 4096 bytes physical Rotation Rate: 7200 rpm Form Factor: 3.5 inches Device is: In smartctl database [for details use: -P show] ATA Version is: ATA8-ACS (minor revision not indicated) SATA Version is: SATA 3.0, 6.0 Gb/s (current: 6.0 Gb/s) Local Time is: Mon Jun 25 22:37:08 2018 JST SMART support is: Available - device has SMART capability. SMART support is: Enabled
あとは適当にHDD(物理)にマウントポイントをメモ書きしとく
本来SMARTを調べるコマンドなのでもうちょっと使いこなしたい…