OpenMediaVault-Plugin-Developers / openmediavault-zfs

OpenMediaVault plugin for zfs
74 stars 15 forks source link

Feature requests and more #89

Closed TimyIsCool closed 9 months ago

TimyIsCool commented 9 months ago

Hi, So, I may just be dumb but one thing that would be great is if a zpool runs into an issue, say a drive goes offline and the pool becomes degraded then have it come up in the notification area (and possibly sending a notification through the browser) Also a way to schedule scrubs would be great

also, is there a way to manually take a snapshot?

ryecoaaron commented 9 months ago

The plugin has notifications already using zfs zed. You can enable those in System -> Notification -> Events

The plugin can't add browser notifications.

As for scrubs: "Debian by default has a cron job entry to scrub all pools on the second Sunday of every month at 24 minutes past midnight." https://wiki.debian.org/ZFS#:~:text=Debian%20by%20default%20has%20a,at%2024%20minutes%20past%20midnight.&text=It%20is%20possible%20to%20disable,root%20dataset%20for%20a%20pool.

If you want more scrubs, you can schedule one with the zfs scrub POOL in the System -> Scheduled Tasks tab

Snapshots can be taken in the Pools tab in the Add menu -> Add filesystem|snap|volume then change the Type dropdown to Snapshot.

image

TimyIsCool commented 9 months ago

ahh Thank you!

its a shame there isnt browser notifications, would be useful to see if something goes wrong

ryecoaaron commented 9 months ago

Many people only use the OMV web interface to change settings and rarely login. Email is the best notification in my opinion. But there are ways to get notifications via telegram - https://forum.openmediavault.org/index.php?thread/14919-guide-use-telegram-as-notification-service/

TimyIsCool commented 9 months ago

Is there any way to either use a google workspace email to send emails or use something like a discord webhook or bot to send the notifications?

ryecoaaron commented 9 months ago

You can send email to any email. I don’t know what is different about google workspace.

If you read the telegram guide, I think it mentions other options. I don’t use them and don’t know if a discord webhook is possible.

TimyIsCool commented 9 months ago

I'll look into the discord thing more and try write my own script, thanks for your help!

votdev commented 9 months ago

I'll look into the discord thing more and try write my own script, thanks for your help!

You can have a look here how to hook into the OMV notification framework.