I am working on command line access to the state of physical storage in the 
cache. Currently the interface looks like

traffic_line --device /dev/sdb --cmd offline

The --device must match a path in storage.config and if so, that physical 
device is marked offline as if it had failed. I'm in the final stages of 
cleanup for this feature, so it's time to comment on it if you think it could 
be better.

The use case is for larger sites that have other mechanisms for monitoring disk 
health and want to be able to take a disk out of ATS before it causes problems 
(e.g., if the disk is hasn't quite completely failed it can be very slow 
instead of actually failing).

Implementing this exposed an existing bug, TS-2500.

P.S. I plan, someday, to add a command to bring a disk back online. So the 
values for --cmd should be

1) "up" / "down"
2) "online" / "offline"
3) "enable" / "disable"

I also hope to document how the command passing works, in case there are other 
commands that would be useful to make available via traffic_line.

Reply via email to