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.

ZFS - I messed up and want to try and fix without data loss

Featured Replies

I recently had a few older disks go bad and ZFS got the better of me, I lost everything and had to recover from glacier, super slow.   I recovered and was working on a smaller ZFS pool replacing disks and accidentally left two disks out of the 24 disk main array.   I started the array because I needed to resilver the smaller pool and that finished and I realized the two drives were missing in the main array and the pool was unmountable.

 

Now, I stopped the array and went to re-assign the drives to their slots and it wants to format the main array again.  I stopped here.  How do I re-insert the two drives into the array without losing the entire array again? 

 

ocean - 24 x 12 TB SAS Drives.   ZFS RaidZ2 2x12drive vdevs.   Both drives removed were from the 2nd vdev.


OS is 7.0.0 beta.4

Solved by JorgeB

  • Author

Also note:  ocean is showing in ZFS list, and is online, and I can read data,  but Unraid is saying it wants to format it.

 

root@blinky:~# zfs list
NAME                  USED  AVAIL  REFER  MOUNTPOINT
lake                 98.0G  64.4T   213K  /mnt/lake
lake/backups          171K  64.4T   171K  /mnt/lake/backups
lake/downloads       69.4G  64.4T  69.4G  /mnt/lake/downloads
lake/isos            28.2G  64.4T  28.2G  /mnt/lake/isos
lake/scans            239M  64.4T   239M  /mnt/lake/scans
ocean                84.2T   115T   238K  /mnt/ocean
ocean/data           84.2T   115T  84.2T  /mnt/ocean/data
pond                 18.7G  6.37T   104K  /mnt/pond
pond/windowsdockers  18.7G  6.37T  18.7G  /mnt/pond/windowsdockers
puddle                165G  1.64T  20.9G  /mnt/puddle
puddle/appdata        133G  1.64T   133G  /mnt/puddle/appdata
puddle/system        10.6G  1.64T  10.6G  /mnt/puddle/system
root@blinky:~# zpool status ocean
  pool: ocean
 state: ONLINE
  scan: scrub in progress since Wed Nov 20 17:42:11 2024
        24.8T / 111T scanned at 13.5G/s, 2.69T / 111T issued at 1.46G/s
        0B repaired, 2.44% done, 21:00:12 to go
config:

        NAME        STATE     READ WRITE CKSUM
        ocean       ONLINE       0     0     0
          raidz2-0  ONLINE       0     0     0
            sdu1    ONLINE       0     0     0
            sdt1    ONLINE       0     0     0
            sdx1    ONLINE       0     0     0
            sdae1   ONLINE       0     0     0
            sdab1   ONLINE       0     0     0
            sdaa1   ONLINE       0     0     0
            sdac1   ONLINE       0     0     0
            sdag1   ONLINE       0     0     0
            sdah1   ONLINE       0     0     0
            sdz1    ONLINE       0     0     0
            sdad1   ONLINE       0     0     0
            sdy1    ONLINE       0     0     0
          raidz2-1  ONLINE       0     0     0
            sdl1    ONLINE       0     0     0
            sdm1    ONLINE       0     0     0
            sdq1    ONLINE       0     0     0
            sdp1    ONLINE       0     0     0
            sdar1   ONLINE       0     0     0
            sds1    ONLINE       0     0     0
            sdw1    ONLINE       0     0     0
            sdaq1   ONLINE       0     0     0
            sdo1    ONLINE       0     0     0
            sdn1    ONLINE       0     0     0
            sdv1    ONLINE       0     0     0
            sdr1    ONLINE       0     0     0

errors: No known data errors
root@blinky:~#

image.thumb.png.91f8b9da21470b5e2dc6bcaeba9dfade.png

image.thumb.png.c9aa821e06079d6adb47fa61ec852ca5.png

blinky-diagnostics-20241120-1818.zip

Edited by DieFalse
add diagnostics file.

  • Community Expert
  • Solution
9 hours ago, DieFalse said:

ocean is showing in ZFS list, and is online

You must export the pool first with zpool export in the CLI, then click on the pool and "remove pool", back on main, add a new pool, re-assign all pool devices, leave the filesystem set to auto, start array to re-import the pool.

  • Author

Ok, I:


Pre-Req:
1. screenshotted the drives in pool "ocean"

Work:

1: CLI - zpool export ocean
2: clicked on "ocean" in UnRaid Web Portal
3: clicked "Remove Pool"
4: typed the name of the pool to confirm
5: added new pool named "ocean" with 24 devices
6: re-assigned all 24 drives 
7: verified all 24 drive assignments to screenshot
8: LEFT FILESYSTEM AS AUTO.
9: started array

Verified pool with status and list, and can then confirm the CRC checks and all passes, no data lost.   

 

THANK YOU!

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.