I'm running smartmontools on a small homebuilt NAS server with
several SATA hot-swap bays. The server is running debian etch,
which includes smartmontools version 5.36.
Does anyone know of a convenient way to support hot-swap configurations ?
Here is what I tried so far:
* Using DEVICESCAN kinda works, if I add "-d ata". However in this
configuration, smartd will not start if I add any USB-key drives,
which are recognised as scsi under linux but do not have smart support.
* I can list my drives in smartd.conf, but then the issue is to keep this
file up to date. If I forget to add new drives they won't be monitored,
and smartd will not start if the config file includes drives that are
not present in the server.
I think it would be ideal if drives could be listed by regexp in smartd.conf,
such as /dev/disk/by-path/pci-0000:00:1f.2-scsi-[0-9:]* for example, followed
by whatever parameters one wants to assign to these drives.
Even better would be if the resolution of that regexp into actual drive names
was done at regular intervals in smartd (whenever it wants to look at drive
attributes), rather than just once at smartd init time.
Or is there a better way to support hotswap configurations ???
Thanks for any advice,
Michel "Walken" Lespinasse
"Bill Gates is a monocle and a Persian cat away from being the villain
in a James Bond movie." -- Dennis Miller