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.

Recreate damaged zfs pool

Featured Replies

As the title mentions I'm looking for advice in re-creating a zfs poo called data the current pool is corrupt and needs to be rebuilt, but I'm hoping that I don't need to re-build all shares/vm/docker containers in Unraid.

I've also created another local pool to backup all of the data. This pool is called databack and so once I re-create the data pool I'll just need to move it over. Currently the Unraid UI sees these drives as unassigned since I did it all locally though the terminal. As I mentioned I'm hoping that I can re-create the data zfs pool without impacting unraid shares/vms/docker containers.

I've read that you can create the pool with the CLI and then export it before adding it with the GUI, but again I'm not actually sure if this is correct or the right way to go about it.

Just some additional context did run a memtest for 3+ passes and it didn't return any errors so I do no think it was a memory issue with the ZFS pool.

Thanks

tarantula-diagnostics-20250523-1748.zip

  • Community Expert
1 hour ago, cparman said:

but I'm hoping that I don't need to re-build all shares/vm/docker containers in Unraid.

Assuming those are on the current bad pool and no backups, it will depend on what you can recover, disable the services and see what you can copy, you can also check the output from zpool status -v, it will show the corrupts files, those will fail to copy.

  • Author

I currently have the pool mounted as read-only and copied all of the data off already.

What i did was change the setting to auto-mount

Imported the pool as read-only zpool import -o readonly=on data

Created a new pool for backups zpool create -n -m /mnt/databackup databackup raidz sdk sdl sdm sdp sdq

and then copied everything over to databackup and oh man those small files for PC backups took forever.

NAME         SIZE  ALLOC   FREE  CKPOINT  EXPANDSZ   FRAG    CAP  DEDUP    HEALTH  ALTROOT
data         131T      0   131T        -         -     0%     0%  1.00x    ONLINE  -
databackup  90.9T  71.2T  19.7T        -         -     0%    78%  1.00x    ONLINE  -

There's a few things from Backups that are still getting copied, but overall its looking good.

The next step will be deleting data zfs pool and re-creating it, but my confidence in this step so that way unraid will be back to normal is at an all time low.

Within the setting i've also disabled docker and VMS for now since the pool isn't mounted anyways.

Apricate your advice.

Edited by cparman

  • Author

One other thing that i want to make sure this doesn't impact the databackup pool that i created since unraid doesn't even see it as existing, just shows those drives as unassigned. Which is fine if they're still unassigned when data is re-created.

image.png

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.