Open delize opened 10 months ago
I for one thought this was a feature. I don't necessarily want to lose historical data when removing a drive. There are ways in which it can still be used (with grafana for instance).
If you want to "hide" a drive, that should be a different option or worded differently. Deleting by definition should be removing the drive and all data pertaining to it.
You're seeing historical data after deleting a device?
That shouldn't be possible.
A device may be re-added after deletion, because Scruntiny uses smartmontools for device detection, and your device will be detected on system scan (which happens on container start).
If you'd like to delete and ignore a device you'll need to ignore it in your collector.yaml
https://github.com/AnalogJ/scrutiny/blob/master/example.collector.yaml#L38-L40
While I can do that, I am not sure how helpful that would be - given that the device doesn't have a standard name showing in Scrutiny. If you check the photo again, it shows:
/dev/-
Which isn't valid. 🤔
I am having the opposite issue. I deleted drives through the UI and I cannot get them to come back even after stopping the container (which removes it) and then starting fresh again. It must be saving the database somewhere to persist, where is that?
Describe the bug When a device has been removed from a host and you wish to delete the device using
The device gets removed initially from the UI.
If the docker container restarts, the previously deleted disk's information gets reloaded into the environment.
When using ZFS or hots-swap disks this causes incorrect information to be present in scrutiny.
Expected behavior When delete device (above) is clicked. All data from influx should be removed and the device should no longer appear in the Web UI.
Screenshots A disk that has been removed from the host, the data has been deleted, but, still exists in the Web UI.
Log Files N/A
Note that even though the drive is commented out in the above compose file, it keeps re-appearing, and also finding the /dev/sda due to the other cap_add & priv settings.
I can't currently upload the log file, but, I will be able to when I am on the same network as the device.
Docker Info