Jump to content

[PLUGIN] ZFS Master


Iker

Recommended Posts

I wasnt sure what you mean by remove the exclusion because it was empty.

There only was this kind of example text by default i have never wrote anything in those textboxes since i used this plugin.

So i entered /eee/ and enabled the interval and this nothing shows up.

image.png.53c64be6fd291beb2ca8f18b854c0bc2.png

image.png.42ea72c3a44823470b8fba584ef634ef.png

Link to comment
Posted (edited)

Yes, it's by design; a couple of versions ago, the permissions scheme was changed to 755, with nobody as the owner and users as the group by default, which I believe is pretty much the standard in Unraid and also the most common use case. I can add an option on the dataset actions menu to change permissions if that is convenient for you.

Edited by Iker
Link to comment

Hi, a new version has dropped; please report any new or not resolved problems that you may face. Changelog:

 

2024.05.05

  • Fix - Malicious content in SweetAlert2 package. Thanks @Ubsefor
  • Add - Initial support for ZFS Vols (Just detection, more is coming)
  • Fix - Exclussion patterns keywords
Link to comment
Posted (edited)
10 hours ago, Iker said:

Fix - Exclussion patterns keywords

Mean this my Issue?

 

Its not working. > /docker/.*

Screenshot_20240506-125253_Firefox.png

 

With /docker.* two folders are hint/exclude.

 

This is without filter:

Screenshot_20240506-125729_Firefox.thumb.png.a00e3e89e7f0b6563301a2b0e735205a.pngScreenshot_20240506-125705_Firefox.thumb.png.88f5fa832f369105eba1398777a66c7a.png

Edited by Revan335
Link to comment

It's working, or at least as it has been working for a while. Datasets are not entirely hidden if you use ".*" termination, but his children are not listed, as it's helpful to know how much space they take and what their properties are. If you want to get rid entirely of the dataset on the main interface, use "/docker", but be aware that it can match multiple datasets outside of the ones you mentioned.

Link to comment
Posted (edited)

Hi there, since the latest upgrade I have the following issue: I have a zpool (backuppool) on an external USB HDD. Since the update, the refresh of the dataset list on the main tab does not work anymore. Also (and this is the bigger issue), there is a constant read load of around ~400K/s for the USB HDD. Based on iotop, this seems to be based on the following command - originating from the plugin:

 

15728 be/4 root      393.29 K/s    0.00 B/s  ?unavailable?  zfs program -jn -m 20971520 backuppool /usr/local/emhttp/plugins/zfs.master/scripts/zfs_pool_get_datasets_snapshots.lua backuppool

 

I checked your commit history on github and this seems to have been modified based on the new zvol functionality.

 

Is anyone else seeing this issue?

 

EDIT: I reinstalled the plugin and now the dataset list is back. However, the snapshot lazy load takes extremely long now (a few minutes instead of a few seconds before the update). Is there something that can be done?

Edited by HumanTechDesign
Link to comment
3 hours ago, Iker said:

It's working, or at least as it has been working for a while. Datasets are not entirely hidden if you use ".*" termination, but his children are not listed, as it's helpful to know how much space they take and what their properties are. If you want to get rid entirely of the dataset on the main interface, use "/docker", but be aware that it can match multiple datasets outside of the ones you mentioned.

OK, how can I include only the /docker/ folder and his children's? Others like docker_old are visible.

Link to comment
22 hours ago, Revan335 said:

OK, how can I include only the /docker/ folder and his children's? Others like docker_old are visible.

"/docker/.*" works for me, but the "docker" dataset is still showing, I think that's the best you can achieve with the current limitations. (Give it 30 seconds to pickup the config change)

image.png.d0fa9dcf74c2cb50c5c0dc3141b718e6.png

 

On 5/6/2024 at 9:30 AM, HumanTechDesign said:

EDIT: I reinstalled the plugin and now the dataset list is back. However, the snapshot lazy load takes extremely long now (a few minutes instead of a few seconds before the update). Is there something that can be done?

I don't know if that is related directly to the plugin or if the pools over USB HDD are extremely slow when dealing with random reads. You can try the following command and check if it's slow: 

 

zfs list -r -t snapshot -o name,creation backuppool

 

If that's the case, there is nothing to do on my side, as it's something inherent to the pool.

  • Thanks 1
Link to comment

Hey,

 

So I have been using the ZFS Master plugin and it's really cool and help so much managing my ZFS pools, but I saw that my pools weren't able to spin down, and I could track that it was related to ZFS Master plugin refreshing the information every 1 minute, so even if I spun them down they should spin back up again within a minute. I tried changing the "refresh interval" to "no refresh", but it was still updating every minute.

 

Thanks,

MiguelNdeCarvalho

Link to comment

Hi, there is an indicator for the last successful refresh, it includes the date and hour up to the second, if that doesn't change, it means that it's not refreshing, also, please give it 30 seconds to pickup the new config and check again if it's working as expected.

Link to comment
Posted (edited)
16 hours ago, Iker said:

Hi, there is an indicator for the last successful refresh, it includes the date and hour up to the second, if that doesn't change, it means that it's not refreshing, also, please give it 30 seconds to pickup the new config and check again if it's working as expected.

Hey again, so yeah, I gave it more then 30 seconds, I even closed my browser and waited 5 minutes then came back and it was still updating every minute, I was taking a look into that indicator in the "Main" tab. Thanks!

 

Edited: So I have uninstalled the plugin, installed again, then quickly changed the Refresh Interval to "No Refresh" and it now is working as it suppose and don't spin up my disks up anymore.

Edited by MiguelNdeCarvalho
Update
  • Like 1
Link to comment
On 5/7/2024 at 5:45 PM, Iker said:

I don't know if that is related directly to the plugin or if the pools over USB HDD are extremely slow when dealing with random reads. You can try the following command and check if it's slow: 

 

zfs list -r -t snapshot -o name,creation backuppool

 

If that's the case, there is nothing to do on my side, as it's something inherent to the pool.

Thanks for the suggestion. I have been using the plugin for quite a long time now (already under 6.11.x) and I specifically requested the lazy load option as a feature because of this exact USB HDD.

After you implemented it, I never had problems again up until this current version. I am not sure if the added "type" detection is the culprit. I will see if I can manually downgrade again and see if the problem appeared due to other changes to Unraid (which I am not aware of at the moment).

What I don't understand: when this long loading time happens, the ZFS Master area on the Main tab just stays blank (not even showing the "Last refresh at XXX" notification at the top. I can't even trigger a rescan via the button as usual (nothing happens). Once the ZFS master list is populated (and the snapshots are loaded via lazy load), the system returns to normal. I have a feeling that this only happens once after a fresh install or reboot. Is there any kind of caching involved (apart from the time in the refresh delay)?

Link to comment
Posted (edited)

As you have pointed out, the only change since the last time you were "problems-free" was the addition of a new property to the list pulled from the pools. That's a really simple change, and I don't believe it could be the cause of the problems that you are facing. It's tricky to replicate on my side (I already try, and it works just fine).

 

From my perspective, it might be something related to the USB pool, or even worse; it might signal a dying disk with lots of command timeouts, slow spin-up times, or other errors; please try to execute the zfs list command that I mentioned to you and report back, if the error persists, I can send you a link for installing the plugin without the last commit and test a little bit further, so we can check if that new property is the culprit, if that turns out to be the case I will revert the changes on the main branch and everything returns to normal.

Edited by Iker
Link to comment
Posted (edited)

I'm seeing the below which I'm not sure how to handle. I'll get 1 data error any time something gets added to the disk now that related to zfs backup since I use the disk in the array as well

 

Best way to handle? I am thinking of disabling backups (possible?) and reformating the drive to see if that helps. For now, I don't care about backups

 

 


  pool: disk3
 state: ONLINE
status: One or more devices has experienced an error resulting in data
	corruption.  Applications may be affected.
action: Restore the file in question if possible.  Otherwise restore the
	entire pool from backup.
   see: https://openzfs.github.io/openzfs-docs/msg/ZFS-8000-8A
  scan: scrub repaired 0B in 02:06:06 with 0 errors on Tue May 14 18:00:32 2024
config:

	NAME          STATE     READ WRITE CKSUM
	disk3         ONLINE       0     0     0
	  /dev/md3p1  ONLINE       0     0   164

errors: 1 data errors, use '-v' for a list

 

Edited by andyd
Link to comment

is it some how possible using a script to run the refresh instead of the default values. I have a drive that only runs 1 a day for ZFS snapshot and replication so with like it to refresh during that time instread of between 0,5 min to 30 min

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...