3

Does anyone know some good tool for checking HDD failure in Cent OS (Red Hat Systems) without downtime. And tell me how to use it.

Thanks.

1
  • 3
    smartmontools. How to use it: Read the man page.
    – Sven
    Nov 5, 2012 at 10:47

1 Answer 1

8

Smartmontools are good tools for this.

Install it with

yum install smartmontools

You can examine your drive with

smartctl -t short /dev/sda

More options you can find in man page.

7
  • I did smartctl -d scsi -l selftest /dev/md2 But I get this Standard Inquiry (36 bytes) failed [Invalid argument] Retrying with a 64 byte Standard Inquiry Standard Inquiry (64 bytes) failed [Invalid argument] A mandatory SMART command failed: exiting. To continue, add one or more '-T permissive' options. I need to unmount disk?! I need it online...
    – Luka
    Nov 5, 2012 at 11:21
  • 1
    /dev/md2 ?? this is some kindof raid device I think. With smartmon tools you can examine hardware discs not raid volumes.
    – B14D3
    Nov 5, 2012 at 11:28
  • 1
    @Luka, you need to read up on what logical volumes and RAID are. This is the correct answer, but you seem to be lacking some basic info.
    – MDMarra
    Nov 5, 2012 at 11:55
  • 1
    @Luka if you have raid 1 on two disk 750GB then you will have only 750GB avaible for storage ... You can examine your underlying physical discs with smartctl to see if they are ok. Can you tell me what is your major problem with this RAID?
    – B14D3
    Nov 6, 2012 at 10:12
  • 1
    @Luka you are using raid 1 ... In RAID 1 (mirroring without parity or striping), data is written identically to two drives, thereby producing a "mirrored set"; en.wikipedia.org/wiki/RAID
    – B14D3
    Nov 6, 2012 at 14:09

Not the answer you're looking for? Browse other questions tagged .