Opened 14 years ago

Last modified 7 years ago

#64 accepted enhancement

Replace DEVICESCAN by something more flexible

Reported by: Christian Franke Owned by: Christian Franke
Priority: minor Milestone: unscheduled
Component: all Version: 5.39.1
Keywords: smartd.conf Cc: dma_k@…

Description

It would be more flexible if names with wildcards and multiple names in a line could be specified in smartd.conf. For example:

 /dev/sdb /dev/sdc /dev/sdd -d scsi -a
 /dev/sda /dev/sd[e-h]      -d sat -a
 /dev/sd[a-z]               -a

If duplicate devices appear in the expanded list, the first one should take precedence.

Change History (9)

comment:1 Changed 14 years ago by Christian Franke

Owner: changed from somebody to Christian Franke
Status: newaccepted

comment:2 Changed 13 years ago by Gabriele Pohl

Keywords: smartd.conf added

comment:3 Changed 13 years ago by Gabriele Pohl

Milestone: Release 6.0

comment:4 Changed 11 years ago by Christian Franke

Milestone: Release 6.0

comment:5 Changed 8 years ago by Christian Franke

Milestone: unscheduled

comment:6 Changed 8 years ago by dma_k

Would be nice to have that syntax supported, as in my case I have several drives I want to apply the same configuration. Now I have to duplicate lines only changing the drive path.

/dev/sda -a -W 5,45,55 -d sat -n standby -m root
/dev/sdd -a -W 5,45,55 -d sat -n standby -m root
/dev/sdc -a -W 5,45,55 -d sat -n standby -m root

comment:7 Changed 8 years ago by dma_k

Cc: dma_k@… added

comment:8 Changed 7 years ago by Christian Franke

Component: smartdall

Also affects smartctl --scan.

comment:9 in reply to:  6 Changed 7 years ago by Christian Franke

Replying to dma_k:

Would be nice to have that syntax supported, as in my case I have several drives I want to apply the same configuration.

Please try the DEFAULT setting:

DEFAULT -a -W 5,45,55 -d sat -n standby -m root
/dev/sda
/dev/sdd
/dev/sdc

Available since smartmontools 5.43 (r3494).

Note: See TracTickets for help on using tickets.