[CentOS] info about hdds in raid

John R Pierce pierce at hogranch.com
Tue Nov 3 03:14:33 UTC 2009


Robert Heller wrote:
> Use '/sbin/mdadm --detail /dev/md<mumble>' and note the drive name
> (/dev/sd<mumble> for SCSI or SATA, and /dev/hd<mumble> for IDE).
>
> Then '/usr/sbin/smartctl -A <drive name from mdadm's listing>'
>
> /usr/sbin/smartctl will give you lots of information.  Near the
> beginning is the serial number.
>
> You *should* be running smartd and you *should* be enabling all of your
> disks to be monitored with smartd.
>   

    # smartctl -A /dev/sda
    smartctl version 5.38 [i686-redhat-linux-gnu] Copyright (C) 2002-8
    Bruce Allen
    Home page is http://smartmontools.sourceforge.net/

    Current Drive Temperature:     27 C
    Drive Trip Temperature:        68 C
    Elements in grown defect list: 0
    Vendor (Seagate) cache information
      Blocks sent to initiator = 3037412440
      Blocks received from initiator = 3755531488
      Blocks read from cache and sent to initiator = 861510971
      Number of read and write commands whose size <= segment size =
    3430618702
      Number of read and write commands whose size > segment size = 73308725
    Vendor (Seagate/Hitachi) factory information
      number of hours powered up = 33496.25
      number of minutes until next internal SMART test = 12



doesn't seem to say anything about serial to me.

OH!  -i is required.

    # smartctl -i -A /dev/sda
    smartctl version 5.38 [i686-redhat-linux-gnu] Copyright (C) 2002-8
    Bruce Allen
    Home page is http://smartmontools.sourceforge.net/

    Device: SEAGATE  ST373207LC       Version: 0003
    Serial number: 3XXXXXXXXXXXXXXXXXXXX
    Device type: disk
    Transport protocol: Parallel SCSI (SPI-4)
    Local Time is: Mon Nov  2 19:12:25 2009 PST
    Device supports SMART and is Enabled
    Temperature Warning Enabled
    Current Drive Temperature:     27 C
    Drive Trip Temperature:        68 C
    Elements in grown defect list: 0
    Vendor (Seagate) cache information
      Blocks sent to initiator = 3037412672
      Blocks received from initiator = 3755693456
      Blocks read from cache and sent to initiator = 861510971
      Number of read and write commands whose size <= segment size =
    3430623987
      Number of read and write commands whose size > segment size = 73308751
    Vendor (Seagate/Hitachi) factory information
      number of hours powered up = 33496.28
      number of minutes until next internal SMART test = 10







More information about the CentOS mailing list