Answer the question
In order to leave comments, you need to log in
Smartctl on Debian?
Good evening. There was such a problem. When I try to run smartctl on the server, I get the following errors:
/usr/sbin/smartctl -s on -d sat /dev/sda
smartctl 5.40 2010-07-12 r3124 [x86_64-unknown-linux-gnu] (local build)
Copyright (C) 2002-10 by Bruce Allen, http://smartmontools.sourceforge.net
SMART support is: Ambiguous - ATA IDENTIFY DEVICE words 82-83 don't show if SMART supported.
SMART support is: Ambiguous - ATA IDENTIFY DEVICE words 85-87 don't show if SMART is enabled.
A mandatory SMART command failed: exiting. To continue, add one or more '-T permissive' options.
/usr/sbin/smartctl -s on -a /dev/sda
smartctl 5.40 2010-07-12 r3124 [x86_64-unknown-linux-gnu] (local build)
Copyright (C) 2002-10 by Bruce Allen, http://smartmontools.sourceforge.net
Smartctl open device: /dev/sda failed: AMCC/3ware controller, please try adding '-d 3ware,N',
you may need to replace /dev/sda with /dev/twlN, /dev/twaN or /dev/tweN
Answer the question
In order to leave comments, you need to log in
Install tw-cli
Add to /etc/apt/sources.list (if you have squeeze)
deb http://hwraid.le-vert.net/debian squeeze main
apt-get update
apt-get install tw-cli
After that, twaX devices will appear in /dev Let's find
out what parameters to pass to smartmontools.
Next, look at the controller number (you are interested in the value under Ctl):
tw-cli show
Next, find out which controller ports the disks are plugged into (X is the controller number):
tw-cli /cX show
Focus on VPort.
Let's say we need to look at the disk in the 4th port:
smartctl -a /dev/twa0 -d 3ware,4
Specify with what parameters you started. In your case, it will most likely be something like:
smartctl -d 3ware,N -a /dev/twlN
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question