The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

[smartcheck] Hard Drive Failure Soon - How to/ What to do TODO

Discussion in 'General Discussion' started by drmuey, Jan 6, 2004.

  1. drmuey

    drmuey Member

    Joined:
    Jun 10, 2003
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    1
    Hello all, after experiencing this issue myself I am going to collect all the answers scattered throught the forum and the web and create a good reference about what to do if this happens and what it all means.

    Before I can do that I was wondering if somone could help me clear up a few things:

    If someone knows the following could you help me figure out how to do it or if it';s even applicable?

    I'll put i all together in one nice little post so it'll be super easy handle this issue shoudl it happen.

    Does the Kernel or OS have to have SMART support enable or other wsie be SMART capable or it the drive and BIOS only?

    How could one test their IDE controller to see if it's that instead of the drive?

    What are the best utilities you can use to test the drive itself on *nix systems?

    Thanks!

    Dan
     
  2. Noldar

    Noldar Well-Known Member

    Joined:
    Jun 26, 2002
    Messages:
    64
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Ponchatoula, LA
    I've been getting smartcheck messages also and in searching for more information I ran across this utility. I've just installed it and started playing with it, so I don't have any useful information yet, but others may be interested in looking into it.

    http://smartmontools.sourceforge.net/
     
  3. drmuey

    drmuey Member

    Joined:
    Jun 10, 2003
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    1
    Actually the program smartctl from those tools you mention above, is what cPanel uses for those smartcheck emails.

    There is a script (/scripts/smartcheck) that runs it with some switches and emails you if necessary.

    One issue is:
    /usr/local/cpanel/3rdparty/bin/smartctl -h says it's version 2.1 and the sourceforge project you mentioned above is up to 5 somethign.

    I may install the new one and make a new script to use it's options and run a script every so often to replace the cPanel default smartcl prog and script with the new versions so it will be up to date. I found my harddrive is handled better in the newer version.
     
  4. DewiMorgan

    DewiMorgan Registered

    Joined:
    Apr 17, 2004
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    http://csl.cse.ucsc.edu/smart.shtml <- that's the five year old, v2.1, no-longer-supported (for the last four years) software that cpanel is using for its SMART checking. This is broken in so many ways, it's scary. It does work for a largish subset of drives, though, so long as you don't try to do anything useful.

    http://smartmontools.sourceforge.net/ <- The link you gave, for the successor to the above, which is currently at version 5.30. It does nice things, like: supporting the ATA/ATAPI-5 standard; correctly using "ATA SMART RETURN STATUS" to find the health of a disk rather than trying to infer it from the SMART Attribute values; having workarounds for those disks that are known to have buggy SMART firmware (notably samsung disks and 3ware controllers); supporting RAID arrays, tapes, and even some firewire, USB and SATA drives.

    cPanel's /scripts/smartcheck script is broken in many ways.

    They don't use -w or strict or they'd have noticed the real bloopers like where they use "while(<FSTAB>) { push(@MNTS); }" (do nothing, lots of times) instead of "push (@MNTS, <FSTAB>);" (push each line of the file onto the array, without needing a loop).

    At the moment if they find a 3ware scsi controller they just bomb out, and they don't bother checking for the buggy samsung disks.

    So, until/unless cpanel fixes their very broken script and starts to use the newer version of smartmontools, just disable 'smartcheck' (see below), and instead install the newest version of smartmontools. Set up your options in /etc/smartd.conf, following the man page for smartctl. It does everything that the cpanel script tried to do, and then some, with far more stability and fewer false alarms.

    Then harrass the crud out of the cpanel developers until they upgrade to 5.3, scrap /scrips/smartcheck, and make it so you can do simple admin of /etc/smartd.conf through cpanel.

    The FAQ says that to disable the script, you need to (as root):
    Merely deleting or zeroing the script (as some have suggested in threads here) will probably just have it restored next time you update cpanel.
     
  5. SarcNBit

    SarcNBit Well-Known Member

    Joined:
    Oct 14, 2003
    Messages:
    1,010
    Likes Received:
    3
    Trophy Points:
    38
    Thank you for the link. Did you submit a feature request/ bug report?
     
  6. beebware

    beebware Active Member

    Joined:
    Aug 2, 2003
    Messages:
    34
    Likes Received:
    0
    Trophy Points:
    6
  7. welo

    welo Well-Known Member

    Joined:
    Nov 11, 2002
    Messages:
    71
    Likes Received:
    0
    Trophy Points:
    6
    Bumping this because I'm really tired of seeing these errors. I added to the bug report (nothing of real techinical value, but still...)
     
  8. SarcNBit

    SarcNBit Well-Known Member

    Joined:
    Oct 14, 2003
    Messages:
    1,010
    Likes Received:
    3
    Trophy Points:
    38
    :D
     
  9. anton_latvia

    anton_latvia Well-Known Member
    PartnerNOC

    Joined:
    May 11, 2004
    Messages:
    348
    Likes Received:
    3
    Trophy Points:
    18
    Location:
    Latvia
    cPanel Access Level:
    Root Administrator
    Hm... Am I getting old or is there any new technology? I was thinking SMART is not available for SATA drives. But for about a week I am receiving these emails:

    S.M.A.R.T Errors on /dev/sda
    From Command: /usr/sbin/smartctl -q errorsonly -H -l selftest -l error /dev/sda
    Please note the following marginal Attributes:
    ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
    190 Unknown_Attribute 0x0022 068 041 045 Old_age Always In_the_past 32
    ----END /dev/sda--



    Any suggestions? We use RAID1 and RAID monitoring tool does not report any problem.

    Merry christmas,
    Anton.
     
  10. Bailey

    Bailey Well-Known Member

    Joined:
    Aug 12, 2001
    Messages:
    120
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Wisconsin
    Bug 336 (link above) is noted as closed and fixed ... not sure that is what we should be voting for? Can someone with a better understanding of this issue than me please open a new bug report? Please? I will happily vote for it and submit a box for testing once it's been opened.

    :D Bailey
     
  11. anton_latvia

    anton_latvia Well-Known Member
    PartnerNOC

    Joined:
    May 11, 2004
    Messages:
    348
    Likes Received:
    3
    Trophy Points:
    18
    Location:
    Latvia
    cPanel Access Level:
    Root Administrator
    what do you suggest me to do? Open support ticket or?

    Anton.
     
  12. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    You may wish to open a support ticket: http://tickets.cpanel.net/submit
     
Loading...

Share This Page