A simple patch for smartmontools 12.04.1 LTS

Asked by Oren Maxximix

I've made a simple patch to the service script for smartmontools to add support for options to be passed via /etc/default/smartmontools to smartctl. Options for smartd are already provided.

Please see:


Also, if the maintainers could give a thought about how to more succintly express devices located behind RAID cards, that would be appreciated. The mechanism at the moment assumes a simplistically/directly attached as /dev/[hs]dX model.

Currently, I'm hacking it together by using this script as above and adding the /dev/twaX device as a "static" parametre to smartctl via the smartctl_opt.

Like so in /etc/default/smartmontools:

enable_smart="--device=3ware,0 --device=3ware,1 --device=3ware,2 --device=3ware,3 \
--device=3ware,4 --device=3ware,5 --device=3ware,6 --device=3ware,7 \
--device=3ware,8 --device=3ware,9 --device=3ware,10 --device=3ware,11 \
--device=3ware,12 --device=3ware,13 --device=3ware,14 --device=3ware,15"

smartctl_opts="/dev/twa0 -o on -S on"


Question information

English Edit question
Ubuntu smartmontools Edit question
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :

I suggest you report a bug and suggest your patch as the fix

Can you help with this problem?

Provide an answer of your own, or ask Oren Maxximix for more information if necessary.

To post a message you must log in.