-
-
Notifications
You must be signed in to change notification settings - Fork 176
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FEAT] Option to 'remove' disk from monitoring #69
Comments
Yep, this is a great idea, which I definitely plan on implementing. |
I just had to replace two drives and would love this feature a lot! I agree with @teambvd in that having a history of drives would be useful, so my vote is to have some sort of archive section. In the mean time, since I have so many drives and needed the clear out the old ones I just edited the database manually like @teambvd suggested. For anyone wanting to do the same, here were the commands I used:
It is now removed 😃 |
thanks for documenting this workaround @joe-eklund ! It's definitely on my todo list. |
@joe-eklund This appeared after adding a disk with |
+1 |
@zilexa you could try to find which entry it is in the database by running: I believe the WWN is used as the primary key, given this is the output of
|
In this case there is no WWN for that one that needs to be removed:
the first one is OK, I want to keep that, the second one needs to be deleted from the db. |
@zilexa ok I believe you can accomplish what you want by doing this:
Verify the only entry returned is the one you want to delete, then run:
It should then be deleted. |
Side note, @AnalogJ it's probably a good idea to also generate an internal UUID as part of the PK so you can fix issues like this more easily. That way we can always count on some part of the PK to be there, instead of having to use something like the |
@joe-eklund that worked and thanks this gives me a bit more insight in how to use SQL in general :) |
@AnalogJ
My log:
To solve this AND still allow my nvme drives to be recognised as was solved here via workaround:
|
Hi Guys, I've got some updated SQL commands, so you can remove a device and then clean up the rest of the DB. Use this command to enter the container Then you'll need to either get the serial number or wwn of the device you want to remove and run the respective SQL command. Then to clean up the rest of the tables, run the below commands. Make sure its done in the displayed order
|
…ed from the dashboard device list). fixes #69
fixed in v0.4.8 🎉 |
Is your feature request related to a problem? Please describe.
As drives fail and are replaced, the ability to remove previously existing drives will become paramount. I came across this while testing, and had an 'orphaned' version of a drive - it still shows as Green status, but hasn't reported since the 21st. Currently the only method to do this is to manually edit the DB.
Describe the solution you'd like
In the menu for a given drive, below the 'View Details' option, add a 'Remove' or 'Unmonitor' button. This button could have two potential actions, depending on how you wish to implement it:
First option is far easier in the short run, but the second option allows the user to maintain a full historical record of their system and would be preferable long term.
The text was updated successfully, but these errors were encountered: