hdparm. Узнать все о дисках


Появилась необходимость узнать , какой физический диск относится к смонтированным дискам на dbserver, учитывая что собран RAID10 и нужно вытащить "тот самый диск" который отвалился.

Воспользовался утилитой hdparm, ниже возможные параметры:

-gОтображает геометрию устройства (цилиндры, головки, сектора), размер (в секторах) устройства.
-hОтображение краткой информации об использовании (помощь).
-HСчитывает температуру некоторых устройств (большинство Hitachi). Также отображает предупреждение, если температура выше нормы.
-iОтображает идентификационную информацию от драйвера устройства.
-IОтображает идентификационную информацию прямо от устройства. Более детально.
-tОтображает скорость чтения с диска, без кэширования данных.
-TОтображает скорость чтения напрямую из кэша Linux буфера, без доступа к диску.


А тут для истории, 
диски на DBServer (дата: 25.01.2021)
[root@dbserver38 ~]# hdparm -I /dev/sda
/dev/sda: ATA device, with non-removable media Model Number: WDC WD1002F9YZ-09H1JL1 Serial Number: WD-WMC5K0D1A6A3 Firmware Revision: 01.01M03 Transport: Serial, SATA 1.0a, SATA II Extensions, SATA Rev 2.5 Standards: Supported: 8 7 6 5 Likely used: 8 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: 1953525168 device size with M = 1024*1024: 953869 MBytes device size with M = 1000*1000: 1000204 MBytes (1000 GB) Capabilities: LBA, IORDY(can be disabled) Queue depth: 32 Standby timer values: spec'd by Standard, with device specific minimum R/W multiple sector transfer: Max = 16 Current = 16 Advanced power management level: unknown setting (0x0080) DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 udma5 *udma6 Cycle time: min=120ns recommended=120ns PIO: pio0 pio1 pio2 pio3 pio4 Cycle time: no flow control=120ns IORDY flow control=120ns Commands/features: Enabled Supported: * SMART feature set Security Mode feature set * Power Management feature set * Write cache * Look-ahead * WRITE_BUFFER command * READ_BUFFER command * NOP cmd * DOWNLOAD_MICROCODE * Advanced Power Management feature set Power-Up In Standby feature set * SET_FEATURES required to spinup after power up * 48-bit Address feature set * Mandatory FLUSH_CACHE * FLUSH_CACHE_EXT * SMART error logging * SMART self-test * General Purpose Logging feature set * WRITE_{DMA|MULTIPLE}_FUA_EXT * 64-bit World wide name * IDLE_IMMEDIATE with UNLOAD * WRITE_UNCORRECTABLE command * {READ,WRITE}_DMA_EXT_GPL commands * Segmented DOWNLOAD_MICROCODE unknown 119[7] * SATA-I signaling speed (1.5Gb/s) * SATA-II signaling speed (3.0Gb/s) * unknown 76[3] * Native Command Queueing (NCQ) * Phy event counters * unknown 76[11] * unknown 76[12] * unknown 76[15] * DMA Setup Auto-Activate optimization * Software settings preservation Security: Master password revision code = 65534 supported not enabled not locked frozen not expired: security count supported: enhanced erase 118min for SECURITY ERASE UNIT. 118min for ENHANCED SECURITY ERASE UNIT. Checksum: correct

[root@dbserver38 ~]# hdparm -I /dev/sdb
/dev/sdb: ATA device, with non-removable media Model Number: WDC WD1004FBYZ-01YCBB2 Serial Number: WD-WMC6M0H2UCMZ Firmware Revision: RR07 Transport: Serial, SATA 1.0a, SATA II Extensions, SATA Rev 2.5 Standards: Supported: 10 9 8 7 6 5 Likely used: 10 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: 1953525168 device size with M = 1024*1024: 953869 MBytes device size with M = 1000*1000: 1000204 MBytes (1000 GB) Capabilities: LBA, IORDY(can be disabled) Queue depth: 32 Standby timer values: spec'd by Standard, with device specific minimum R/W multiple sector transfer: Max = 16 Current = 16 Advanced power management level: unknown setting (0x0060) DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 udma5 *udma6 Cycle time: min=120ns recommended=120ns PIO: pio0 pio1 pio2 pio3 pio4 Cycle time: no flow control=120ns IORDY flow control=120ns Commands/features: Enabled Supported: * SMART feature set Security Mode feature set * Power Management feature set * Write cache * Look-ahead * WRITE_BUFFER command * READ_BUFFER command * NOP cmd * DOWNLOAD_MICROCODE * Advanced Power Management feature set Power-Up In Standby feature set * SET_FEATURES required to spinup after power up * 48-bit Address feature set * Mandatory FLUSH_CACHE * FLUSH_CACHE_EXT * SMART error logging * SMART self-test * General Purpose Logging feature set * WRITE_{DMA|MULTIPLE}_FUA_EXT * 64-bit World wide name * IDLE_IMMEDIATE with UNLOAD * WRITE_UNCORRECTABLE command * {READ,WRITE}_DMA_EXT_GPL commands * Segmented DOWNLOAD_MICROCODE unknown 119[6] unknown 119[7] unknown 119[8] unknown 119[9] * SATA-I signaling speed (1.5Gb/s) * SATA-II signaling speed (3.0Gb/s) * unknown 76[3] * Native Command Queueing (NCQ) * Phy event counters * unknown 76[11] * unknown 76[12] * unknown 76[14] * unknown 76[15] * DMA Setup Auto-Activate optimization Device-initiated interface power management * Software settings preservation unknown 78[7] Security: Master password revision code = 65534 supported not enabled not locked frozen not expired: security count supported: enhanced erase 120min for SECURITY ERASE UNIT. 120min for ENHANCED SECURITY ERASE UNIT. Checksum: correct

[root@dbserver38 ~]# hdparm -I /dev/sdc

/dev/sdd: ATA device, with non-removable media Model Number: WDC WD1600AAJS-75PSA0 Serial Number: WD-WMAP98488993 Firmware Revision: 05.06H05 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: 312500000 device size with M = 1024*1024: 152587 MBytes device size with M = 1000*1000: 160000 MBytes (160 GB) Capabilities: LBA, IORDY(can be disabled) Queue depth: 32 Standby timer values: spec'd by Standard, with device specific minimum R/W multiple sector transfer: Max = 16 Current = 16 Recommended acoustic management value: 128, current value: 254 DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 udma5 *udma6 Cycle time: min=120ns recommended=120ns PIO: pio0 pio1 pio2 pio3 pio4 Cycle time: no flow control=120ns IORDY flow control=120ns Commands/features: Enabled Supported: * SMART feature set Security Mode feature set * Power Management feature set * Write cache * Look-ahead * Host Protected Area feature set * WRITE_BUFFER command * READ_BUFFER command * NOP cmd * DOWNLOAD_MICROCODE Power-Up In Standby feature set * SET_FEATURES required to spinup after power up SET_MAX security extension * Automatic Acoustic Management feature set * 48-bit Address feature set * Device Configuration Overlay feature set * Mandatory FLUSH_CACHE * FLUSH_CACHE_EXT * SMART error logging * SMART self-test * General Purpose Logging feature set * 64-bit World wide name * Segmented DOWNLOAD_MICROCODE * SATA-I signaling speed (1.5Gb/s) * SATA-II signaling speed (3.0Gb/s) * Native Command Queueing (NCQ) * Host-initiated interface power management * Phy event counters * DMA Setup Auto-Activate optimization Device-initiated interface power management * Software settings preservation Security: Master password revision code = 65534 supported not enabled not locked frozen not expired: security count not supported: enhanced erase 42min for SECURITY ERASE UNIT. Checksum: correct

Дополнительно: Можно запросить информацию только по серийному номеру

[root@dbserver38 ~]# hdparm -i /dev/sdb | grep SerialNo
Model=WDC WD1002F9YZ-09H1JL1 , FwRev=01.01M03, SerialNo= WD-WMC5K0D5T51D [root@dbserver38 ~]#


Диски на DBServer (дата: 25.10.2018)
[root@dbserver38 ~]# hdparm -I /dev/sda
/dev/sda: ATA device, with non-removable media Model Number: WDC WD1002F9YZ-09H1JL1 Serial Number: WD-WMC5K0D1A6A3 Firmware Revision: 01.01M03 Transport: Serial, SATA 1.0a, SATA II Extensions, SATA Rev 2.5 Standards: Supported: 8 7 6 5 Likely used: 8 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: 1953525168 device size with M = 1024*1024: 953869 MBytes device size with M = 1000*1000: 1000204 MBytes (1000 GB) Capabilities: LBA, IORDY(can be disabled) Queue depth: 32 Standby timer values: spec'd by Standard, with device specific mini R/W multiple sector transfer: Max = 16 Current = 16 Advanced power management level: unknown setting (0x0080) DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 udma5 *udma6 Cycle time: min=120ns recommended=120ns PIO: pio0 pio1 pio2 pio3 pio4 Cycle time: no flow control=120ns IORDY flow control=120ns Commands/features: Enabled Supported: * SMART feature set Security Mode feature set * Power Management feature set * Write cache * Look-ahead * WRITE_BUFFER command * READ_BUFFER command * NOP cmd * DOWNLOAD_MICROCODE * Advanced Power Management feature set Power-Up In Standby feature set * SET_FEATURES required to spinup after power up * 48-bit Address feature set * Mandatory FLUSH_CACHE * FLUSH_CACHE_EXT * SMART error logging * SMART self-test * General Purpose Logging feature set * WRITE_{DMA|MULTIPLE}_FUA_EXT * 64-bit World wide name * IDLE_IMMEDIATE with UNLOAD * WRITE_UNCORRECTABLE command * {READ,WRITE}_DMA_EXT_GPL commands * Segmented DOWNLOAD_MICROCODE unknown 119[7] * SATA-I signaling speed (1.5Gb/s) * SATA-II signaling speed (3.0Gb/s) * unknown 76[3] * Native Command Queueing (NCQ) * Phy event counters * unknown 76[11] * unknown 76[12] * unknown 76[15] DMA Setup Auto-Activate optimization * Software settings preservation Security: Master password revision code = 65534 supported not enabled not locked frozen not expired: security count supported: enhanced erase 118min for SECURITY ERASE UNIT. 118min for ENHANCED SECURITY ERASE Checksum: correct

[root@dbserver38 ~]# hdparm -I /dev/sdb
/dev/sdb: ATA device, with non-removable media Model Number: WDC WD1002F9YZ-09H1JL1 Serial Number: WD-WMC5K0D5T51D Firmware Revision: 01.01M03 Transport: Serial, SATA 1.0a, SATA II Extensions, SATA Rev 2.5 Standards: Supported: 8 7 6 5 Likely used: 8 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: 1953525168 device size with M = 1024*1024: 953869 MBytes device size with M = 1000*1000: 1000204 MBytes (1000 GB) Capabilities: LBA, IORDY(can be disabled) Queue depth: 32 Standby timer values: spec'd by Standard, with device specific mini R/W multiple sector transfer: Max = 16 Current = 0 Advanced power management level: unknown setting (0x0080) DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 udma5 *udma6 Cycle time: min=120ns recommended=120ns PIO: pio0 pio1 pio2 pio3 pio4 Cycle time: no flow control=120ns IORDY flow control=120ns Commands/features: Enabled Supported: * SMART feature set Security Mode feature set * Power Management feature set * Write cache * Look-ahead * WRITE_BUFFER command * READ_BUFFER command * NOP cmd * DOWNLOAD_MICROCODE * Advanced Power Management feature set Power-Up In Standby feature set * SET_FEATURES required to spinup after power up * 48-bit Address feature set * Mandatory FLUSH_CACHE * FLUSH_CACHE_EXT * SMART error logging * SMART self-test * General Purpose Logging feature set * WRITE_{DMA|MULTIPLE}_FUA_EXT * 64-bit World wide name * IDLE_IMMEDIATE with UNLOAD * WRITE_UNCORRECTABLE command * {READ,WRITE}_DMA_EXT_GPL commands * Segmented DOWNLOAD_MICROCODE unknown 119[7] * SATA-I signaling speed (1.5Gb/s) * SATA-II signaling speed (3.0Gb/s) * unknown 76[3] * Native Command Queueing (NCQ) * Phy event counters * unknown 76[11] * unknown 76[12] * unknown 76[15] DMA Setup Auto-Activate optimization * Software settings preservation Security: Master password revision code = 65534 supported not enabled not locked not frozen not expired: security count supported: enhanced erase 116min for SECURITY ERASE UNIT. 116min for ENHANCED SECURITY ERASE

[root@dbserver38 ~]# hdparm -I /dev/sdc

/dev/sdc: ATA device, with non-removable media Model Number: WDC WD1004FBYZ-01YCBB2 Serial Number: WD-WMC6M0H2UCMZ Firmware Revision: RR07 Transport: Serial, SATA 1.0a, SATA II Extensions, SATA Rev 2.5 Standards: Supported: 10 9 8 7 6 5 Likely used: 10 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: 1953525168 device size with M = 1024*1024: 953869 MBytes device size with M = 1000*1000: 1000204 MBytes (1000 GB) Capabilities: LBA, IORDY(can be disabled) Queue depth: 32 Standby timer values: spec'd by Standard, with device specific mini R/W multiple sector transfer: Max = 16 Current = 16 Advanced power management level: unknown setting (0x0060) DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 udma5 *udma6 Cycle time: min=120ns recommended=120ns PIO: pio0 pio1 pio2 pio3 pio4 Cycle time: no flow control=120ns IORDY flow control=120ns Commands/features: Enabled Supported: * SMART feature set Security Mode feature set * Power Management feature set * Write cache * Look-ahead * WRITE_BUFFER command * READ_BUFFER command * NOP cmd * DOWNLOAD_MICROCODE * Advanced Power Management feature set Power-Up In Standby feature set * SET_FEATURES required to spinup after power up * 48-bit Address feature set * Mandatory FLUSH_CACHE * FLUSH_CACHE_EXT * SMART error logging * SMART self-test * General Purpose Logging feature set * WRITE_{DMA|MULTIPLE}_FUA_EXT * 64-bit World wide name * IDLE_IMMEDIATE with UNLOAD * WRITE_UNCORRECTABLE command * {READ,WRITE}_DMA_EXT_GPL commands * Segmented DOWNLOAD_MICROCODE unknown 119[6] unknown 119[7] unknown 119[8] unknown 119[9] * SATA-I signaling speed (1.5Gb/s) * SATA-II signaling speed (3.0Gb/s) * unknown 76[3] * Native Command Queueing (NCQ) * Phy event counters * unknown 76[11] * unknown 76[12] * unknown 76[14] * unknown 76[15] DMA Setup Auto-Activate optimization Device-initiated interface power management * Software settings preservation unknown 78[7] Security: Master password revision code = 65534 supported not enabled not locked frozen not expired: security count supported: enhanced erase 120min for SECURITY ERASE UNIT. 120min for ENHANCED SECURITY ERASE Checksum: correct

[root@dbserver38 ~]# hdparm -I /dev/sdd
/dev/sdd: ATA device, with non-removable media Model Number: WDC WD1004FBYZ-01YCBB2 Serial Number: WD-WMC6M0F59LEC Firmware Revision: RR07 Transport: Serial, SATA 1.0a, SATA II Extensions, SATA Rev 2.5 Standards: Supported: 10 9 8 7 6 5 Likely used: 10 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: 1953525168 device size with M = 1024*1024: 953869 MBytes device size with M = 1000*1000: 1000204 MBytes (1000 GB) Capabilities: LBA, IORDY(can be disabled) Queue depth: 32 Standby timer values: spec'd by Standard, with device specific mini R/W multiple sector transfer: Max = 16 Current = 16 Advanced power management level: unknown setting (0x0060) DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 udma5 *udma6 Cycle time: min=120ns recommended=120ns PIO: pio0 pio1 pio2 pio3 pio4 Cycle time: no flow control=120ns IORDY flow control=120ns Commands/features: Enabled Supported: * SMART feature set Security Mode feature set * Power Management feature set * Write cache * Look-ahead * WRITE_BUFFER command * READ_BUFFER command * NOP cmd * DOWNLOAD_MICROCODE * Advanced Power Management feature set Power-Up In Standby feature set * SET_FEATURES required to spinup after power up * 48-bit Address feature set * Mandatory FLUSH_CACHE * FLUSH_CACHE_EXT * SMART error logging * SMART self-test * General Purpose Logging feature set * WRITE_{DMA|MULTIPLE}_FUA_EXT * 64-bit World wide name * IDLE_IMMEDIATE with UNLOAD * WRITE_UNCORRECTABLE command * {READ,WRITE}_DMA_EXT_GPL commands * Segmented DOWNLOAD_MICROCODE unknown 119[6] unknown 119[7] unknown 119[8] unknown 119[9] * SATA-I signaling speed (1.5Gb/s) * SATA-II signaling speed (3.0Gb/s) * unknown 76[3] * Native Command Queueing (NCQ) * Phy event counters * unknown 76[11] * unknown 76[12] * unknown 76[14] * unknown 76[15] DMA Setup Auto-Activate optimization Device-initiated interface power management * Software settings preservation unknown 78[7] Security: Master password revision code = 65534 supported not enabled not locked frozen not expired: security count supported: enhanced erase 120min for SECURITY ERASE UNIT. 120min for ENHANCED SECURITY ERASE Checksum: correct

[root@dbserver38 ~]# hdparm -I /dev/sdf
/dev/sdf: ATA device, with non-removable media Model Number: WDC WD1600AAJS-75PSA0 Serial Number: WD-WMAP98488993 Firmware Revision: 05.06H05 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: 312500000 device size with M = 1024*1024: 152587 MBytes device size with M = 1000*1000: 160000 MBytes (160 GB) Capabilities: LBA, IORDY(can be disabled) Queue depth: 32 Standby timer values: spec'd by Standard, with device specific mini R/W multiple sector transfer: Max = 16 Current = 16 Recommended acoustic management value: 128, current value: 254 DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 udma5 *udma6 Cycle time: min=120ns recommended=120ns PIO: pio0 pio1 pio2 pio3 pio4 Cycle time: no flow control=120ns IORDY flow control=120ns Commands/features: Enabled Supported: * SMART feature set Security Mode feature set * Power Management feature set * Write cache * Look-ahead * Host Protected Area feature set * WRITE_BUFFER command * READ_BUFFER command * NOP cmd * DOWNLOAD_MICROCODE Power-Up In Standby feature set * SET_FEATURES required to spinup after power up SET_MAX security extension * Automatic Acoustic Management feature set * 48-bit Address feature set * Device Configuration Overlay feature set * Mandatory FLUSH_CACHE * FLUSH_CACHE_EXT * SMART error logging * SMART self-test * General Purpose Logging feature set * 64-bit World wide name * Segmented DOWNLOAD_MICROCODE * SATA-I signaling speed (1.5Gb/s) * SATA-II signaling speed (3.0Gb/s) * Native Command Queueing (NCQ) * Host-initiated interface power management * Phy event counters DMA Setup Auto-Activate optimization Device-initiated interface power management * Software settings preservation Security: Master password revision code = 65534 supported not enabled not locked frozen not expired: security count not supported: enhanced erase 42min for SECURITY ERASE UNIT. Checksum: correct








Комментарии

Популярные сообщения из этого блога

Linux (РедОС). Сброс пароля

TRUNCATE / DELETE / DROP или как очистить таблицу

КБК. КВФО - Код вида финансового обеспечения (деятельности)

SQL Error [53200]: ОШИБКА: нехватка разделяемой памяти Подсказка: Возможно, следует увеличить параметр max_locks_per_transaction

РедОС. Подключение к сетевой папке