Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[PLUGIN] ZFS Master

Featured Replies

3 minutes ago, Joly0 said:

Yes, i stopped docker, deleted the docker directory throug the  docker settings and removed the the folder in the system share afterward aswell

 

  • Replies 724
  • Views 126.1k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • Is the ZFS -Master plugin still maintained ? Since 2024.12.08 no change anymore. For me, ZFS was the main feature for starting with Unraid and without a maintained ZFS master It's not really attrac

  • Hey, answering some of the questions: @XuvinWhat does it mean if the dataset/snapshot icon is yellow instead of blue: It means that the last snapshot is older than the time configured on the s

  • ZFS Master may need an update with the current 7.2-rc2 (and rc1 as well but that isn't current now). When this plugin is installed it causes the Unraid Connect icon to disappear on the Main tab. It

Posted Images

16 minutes ago, Niklas said:

 

?

36 minutes ago, Joly0 said:

?


Look at page 8-9 in this thread. You will probably need to remove the datasets manually.

Maybe a Noob ZFS question, but i have to run "zfs mount -a" after every reboot to mount my zfs datasets again.

Is this by design or an configuration mistake by me?

  • Author
9 hours ago, unr41dus3r said:

Maybe a Noob ZFS question, but i have to run "zfs mount -a" after every reboot to mount my zfs datasets again.

Is this by design or an configuration mistake by me?

 

That is not even close to normal, you should report this to General support, as the pools and datasets are supposed to be mounted automatically on every reboot; this is unless you have defined otherwise at creation time.

8 hours ago, Iker said:

 

That is not even close to normal, you should report this to General support, as the pools and datasets are supposed to be mounted automatically on every reboot; this is unless you have defined otherwise at creation time.

 

The datasets on my Array Cache Drive is mounting correctly, but on my unassigned Devices Disk where i created some datasets are not mounting.

I created the ZFS Disk with the unassigned devices and configured the datasets with ZFS Master

21 minutes ago, unr41dus3r said:

The datasets on my Array Cache Drive is mounting correctly, but on my unassigned Devices Disk where i created some datasets are not mounting.

I created the ZFS Disk with the unassigned devices and configured the datasets with ZFS Master

Unraid does a zfs mount -a after array start, but UD disks are mounted after that, so you'd need to ask in the UD plugin support thread or just have a script doing it.

On 10/3/2023 at 3:17 PM, Niklas said:


Look at page 8-9 in this thread. You will probably need to remove the datasets manually.

I have deleted everything now, reformated my pool and setup everything fresh and new, now it looks right, but i still cant find the right setting to hide those datasets
Any idea? Tried "/cache/docker/.*" or "/docker/.*"

grafik.png

  • Author
1 hour ago, Joly0 said:

I have deleted everything now, reformated my pool and setup everything fresh and new, now it looks right, but i still cant find the right setting to hide those datasets
Any idea? Tried "/cache/docker/.*" or "/docker/.*"

 

/docker/.* should do the trick, if not please send me a pm with the following command result "zfs list".

 

Best/

40 minutes ago, Iker said:

 

/docker/.* should do the trick, if not please send me a pm with the following command result "zfs list".

 

Best/

Ok, i dont know why it worked now and not before, but i tested it again and just waited a bit longer and now it works. Thx

It still expands and show all datasets from time to time. No reboot. 

Edited by Niklas

  • Author
2 hours ago, Niklas said:

It still expands and show all datasets from time to time. No reboot. 

 

I'll take a deeper look at this, and check if there is a better way to keep the view conf.

  • Author

A new update is live with the following changelog:

 

2023.10.07

  • Add - Cache last data in Local Storage when using "no refresh"
  • Fix - Dataset admin Dialog - Error on select all datasets
  • Fix - Multiple typos
  • Fix - Special condition crashing the backend
  • Fix - Status refresh on Snapshots admin dialog
  • Change - Date format across multiple dialogs
  • Change - Local Storage for datasets and pools view options

Thanks @Niklas; when looking for a way to preserve the views, I end up finding an excellent way to implement a cache for the last refresh :). Also, now the view options are as durable as they can be; even across reboots.

 

How Cache Works?

Every time the plugin refreshes the data, it saves a copy to the web browser's local storage; if you have configured the "No refresh" option, once you enter the main page, the plugin loads that information (Including the timestamp) from that cache, this operation is almost instantaneously. This only happens if the "No refresh" option is enabled; otherwise, the plugins load the information from the pools directly. The cache also works with Lazy and Classic load.

 

Best,

Edited by Iker

@Iker the caching is a welcome addition!  Now it's operating exactly how I would have expected!  Good releases, thanks!

One minor bug:

if the cache is more then 24h old it just shows the time but no date. I'd suggest to show:

 

  • 0-24h old: the timestamp (current behavior)
  • 24-48h old: xy hours ago
  • > 48h old: x days ago (alternatively just the date)
  • Author

Nice catch, I'll probably change it to short datetime format.

having an issue when trying to clone a snapshot, i get an error "operation not permitted", I suspect its my lack of knowledge on how to clone successfully. 

When i select "clone" I input "pool_name/test" for the destination dataset. Do I need to create "test" dataset prior?

  • Author

No, you don't need to create the destination in advanced, which Unraid and ZFS Master version are you using?

7 hours ago, Iker said:

No, you don't need to create the destination in advanced, which Unraid and ZFS Master version are you using?

Ok, I worked this 1 out and its definitely my lack of knowledge....again😒

Basically i was trying to clone to another ZFS pool on a spersarate drive, once I cloned to "pool_name/" on which the snapshot is actually stored on, it cloned just fine.

Ok, I think I'm missing something here. I have had this setup for a while, as per the Spaceinvaderone video, with all of my appdata folders as datasets, using the script to create snapshots and replicate to a ZFS disk in the array. Today is the first time I've had to try and rollback/restore and I'm at a loss. 

So, my calibre-web install appears to have reverted to a new install, and I can't even login. No problem I thought, I'll rollback to a snapshot from last week, when I knew it was working. Doing this results in an empty appdata folder. Weird I thought, but no problem, I have these replicated. And so my first issue, there is no documentation anywhere on how I get my replicated snapshots from Disc1 back to the Cache. Do I even need to do this? Can I not just restore the appdata folder from Disk1? Any ideas why rolling back the snapshots on Cache are resulting in empty folders?

So confused.

@Iker I can't tell you how nice it has been to use the plugin since you changed the refresh methodology!  Huge improvement for my use case!

 

I do have a future feature request:  The ability to refresh by pool. I.e. a refresh button on the pool bar that has the "hide dataset" "create dataset" buttons.

And/or in the config the ability to select/deselect pools from the refresh.


How I use this:

All my ZFS pools are SSD's, so I don't care about spinup/down on those.  But I do have some ZFZ formatted disks as snapshot backup targets in the Unraid Array.   I rarely browse those and don't need to update ZFS Master very often. 

Being able to exclude just those pools (or having a button to refresh only the pool that I'm working on) would make it so those zfs array disks spin up even less.

 

But even without that, it has been a huge improvement!  My disks are only spun up for about an hour a day now, where before they spun almost all day!

 

 

@NeoDude I don't think this is a zfsmaster issue, but I think I got an idea of what's happening.

What is your folder and dataset structure?  You may need to execute the command with -r "recursive"
It sounds like you are trying to rollback the parent dataset and it has children datasets nested within it.  When you browse .zfs/snapshot of the parent, then you won't see data for the children. But if you go to .zfs/snapshot in the children, then you will see the data of the children.
The only way for you to mess this up is if you didn't take your snapshot with -r recursive.  If you have the snapshot, then the data is in there.

Another reason I can see for this is if the dataset isn't being mounted.


To restore, you need to do the restore on the specific child dataset.  If you have subfolders within, that are actually configured to be datasets, then you need to restore each folder/dataset.  (Or make sure it's doing it recursively)  

 

To pretty much clone the dataset, recursively with all the snapshots and properties you use:

`zfs send -wR metapool/appdata@migration | zfs receive -Fdu metapool/appdata_new`


But read my notes below so you understand the flags, as that's unmounted.
 

and name the send differently for your testing, so you don't override anything.  Then when you confirm the data is there, you can rename it and update your mount points if needed.

Here are some of my notes on how I have done it in the past.  Hope it helps you!  If you need more help you can IM me so we aren't clogging up the thread here.

 

# Backups & Snapshots
## Snapshots

### Create New Snapshot
`zfs snapshot workpool/nextcloud@new_empty`
Recursive:
`zfs snapshot -r workpool/nextcloud@new_empty`

## Transfer Dataset from one location to another
### Create Snapshot
1. `zfs snapshot -r metapool/appdata@migration`

### Send to new dataset (Recursive with dataset properties & snapshots)
2. `zfs send -wR metapool/appdata@migration | zfs receive -Fdu metapool/appdata_new`

-w sends raw data, needed with encrypted datasets. also keeps recordsize & options.
-R is recursive and includes all snapshots/clones
-F Forces the overwrite of the target dataset - use with care!
-d Uses the provided dataset name as the prefix for the names of all received datasets. Essentially, this means that the data will be received into the named dataset, but not as a clone
-u ensures that the received datasets are not mounted, even if their mountpoint properties would typically cause them to be automatically mounted.  Requires manual mounting!
###

3. Confirm data is in location and present

4. Rename old dataset to appdata_old

5. Confirm mount points changed for appdata_old

6. Rename appdata_new to appdata

### Mount Dataset (if left unmounted with -u flag)
7. `zfs mount metapool/appdata`

Done

## Syncoid
### Replicate Dataset from dataset (Not fully tested)
`syncoid metapool/gitea/database workpool/gitea/database`  

 

 

Edited by samsausages

  • Author
On 10/19/2023 at 4:06 PM, samsausages said:

I do have a future feature request:  The ability to refresh by pool. I.e. a refresh button on the pool bar that has the "hide dataset" "create dataset" buttons.

And/or in the config the ability to select/deselect pools from the refresh.

 

Right now, the refresh options are a global setting, but the plugin functionality is implemented at the pool level, so it should be... not easy (The cache could be a mess), but at least possible.

  • 2 weeks later...

Hey I just want to note there is no refresh button in when Page View set to Tabbed. Is this something easily remedied?

 

Tabbed

tabbed.thumb.jpg.a4aa5e82f7b863f54d28a28b166cd608.jpg

 

Non-Tabbed

151845376_nontabbed.thumb.jpg.f8decf5ab86a39e72e9a474e86912699.jpg

 

Edited by positronicP

  • Author

Nice catch, indeed; there is no support for tabbed view; I'll check and come up with a fix for this in the coming versions.

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...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.