Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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.

share|improve this question
3  
smartmontools. How to use it: Read the man page. –  SvW Nov 5 '12 at 10:47
add comment

closed as off topic by SvW, MadHatter, Brent Pabst, MDMarra, mdpc Nov 5 '12 at 17:52

Questions on Server Fault are expected to relate to professional server, networking, or related infrastructure administration within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

1 Answer

up vote 5 down vote accepted

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.

share|improve this answer
    
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 '12 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 '12 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 '12 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 '12 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 '12 at 14:09
show 2 more comments

Not the answer you're looking for? Browse other questions tagged or ask your own question.