S.M.A.R.T. on USB drives

  • Not all USB hard drives support S.M.A.R.T. One of the USB hard drives supports it is WD My Book Studio II. Unfortunately OMV 0.4.1 and earlier aren't able to read S.M.A.R.T. information from it. The failure is the result of smartd and smartctl unable to automatically determine how to communicate with that hard drive. They require a '-d xxx' option to tell them the correct device type.


    In order to use S.M.A.R.T. support on WD My Book Studio II, I need to specify '-d sat' option. However, OMV apparently doesn't have any place to let me specify that option for my hard drive. After a little study on the source code, I created this patch (see the attachment) which adds a feature to let you specify S.M.A.R.T. device type option and apply that option to smartd and smartctl.


    To use the patch, you need to have OMV 0.4.1 installed. Download and unzip the attachment to your OMV device. Run this command at root directory to check:

    Code
    # patch --dry-run -p1 < smartdevtype.patch

    If all seem fine, run this command at root directory to apply: (Use it at your own risk.)

    Code
    # patch -p1 < smartdevtype.patch


    Refresh your OMV web interface, and then go to Storage/Physical Disks. Select the hard drive you want and edit its properties. Enter the S.M.A.R.T. device type for your hard drive.


    Then go to Storage/S.M.A.R.T./Devices, and select your hard drive. Click either Detail or Information button to see whether S.M.A.R.T. information can be retrieved successfully.


    But, how do you know what device type to use'? Most USB hard drives probably need either 'scsi' or 'sat' option. There are other device types you can try with smartctl command. Please read http://linux.die.net/man/8/smartctl for details.

  • I got the same problem here with my WD5000BEVT and a USBtoSATA Adapter.


    In terminal with smartctl -a /dev/sdX I get SMART working. But within the webGUI there is no Temperature and it shows no SMART information for the USB drive (all direct connected SATA drives work).


    Is there a updated script for Sardaukar?


    I have manualy changed the smartd.conf, so at least the smart deamon can work with the device and the apm is changed to 254 at system start, what is important, because of a firmware "bug" with the WD drives.
    When I do smartctl -d sat, its not working. Smartctl -d auto or -d usbjmicron is working.
    I didn't get hdparm to work with the USB drive at all.


    So it would be nice to change the device type, somewhere in the webGUI. As of the fact that auto detect works well for my USB Adapter, I guess somewhere in the OMV scripts the device type for USB devices is hard coded.


    Any tips would be nice. Besides the not working SMART in webGUI, I dont like to manualy configure stuff, so I have to redo/check this after every system update.


    Gern auch in deutsch :)

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!