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 by Christian Franke, 14 years ago

Owner: changed from somebody to Christian Franke
Status: newaccepted

comment:2 by Gabriele Pohl, 13 years ago

Keywords: smartd.conf added

comment:3 by Gabriele Pohl, 13 years ago

Milestone: Release 6.0

comment:4 by Christian Franke, 11 years ago

Milestone: Release 6.0

comment:5 by Christian Franke, 9 years ago

Milestone: unscheduled

comment:6 by dma_k, 9 years ago

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 by dma_k, 9 years ago

Cc: dma_k@… added

comment:8 by Christian Franke, 7 years ago

Component: smartdall

Also affects smartctl --scan.

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

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.