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.

Unable to remove subpool from ZFS pool

Featured Replies

Hello,

 

How can I remove a subpool from a ZFS pool? I found the L2ARC cache was of no benefit and I'm trying to remove the NVMe so I can repurpose it but I'm unable to remove the subpool. I've set the device to none and I'm able to change the slots to 0. If I set the device to none, I can no longer start the array. So I have to put the NVMe back as the selected device to start the array up. Any help is greatly appreciated.

  • Community Expert

There's no GUI support at the moment for that, but you can do it manually, start the array and post the output from zpool status

  • Author

root@Fileserver:~# zpool status
  pool: docker_vms
 state: ONLINE
config:

        NAME           STATE     READ WRITE CKSUM
        docker_vms     ONLINE       0     0     0
          mirror-0     ONLINE       0     0     0
            nvme2n1p1  ONLINE       0     0     0
            nvme1n1p1  ONLINE       0     0     0

errors: No known data errors

  pool: main_array
 state: ONLINE
config:

        NAME        STATE     READ WRITE CKSUM
        main_array  ONLINE       0     0     0
          raidz2-0  ONLINE       0     0     0
            sdb1    ONLINE       0     0     0
            sdc1    ONLINE       0     0     0
            sdd1    ONLINE       0     0     0
            sde1    ONLINE       0     0     0
            sdf1    ONLINE       0     0     0
            sdg1    ONLINE       0     0     0
            sdh1    ONLINE       0     0     0
            sdi1    ONLINE       0     0     0
            sdj1    ONLINE       0     0     0
            sdk1    ONLINE       0     0     0
            sdl1    ONLINE       0     0     0
            sdm1    ONLINE       0     0     0
        cache
          nvme0n1   ONLINE       0     0     0

errors: No known data errors

  • Community Expert

With the array started type:

zpool remove main_array nvme0n1

 

Then stop the array and you will need to re-import the pool without that device, how to re-import will depend on if you are on v6 or v7, I assume v7.0.0-beta3, so click on the pool, then click on "remove pool", then on main re-add the pool and assign all the remaining devices, start the array to re-import the pool.

  • 3 months later...

@JorgeB Came here for similar reasons, I'm running 7.0.0 2025-01-09.  Please can you check my understanding...

  1. (Array started) zpool remove blacknet sdf1
  2. (Array started) zpool remove blacknet sdg1
  3. (Array stopped) Via the 'Main' menu select the blacknet pool device and click 'Remove Pool'
  4. (Array stopped) Back to the 'Main' menu and click 'Add Pool' and re-create the blacknet pool with 4 slots
  5. (Array stopped) Add back into each of the 4 slots the disks associated to the blacknet pool (Do I have to ensure the same disk goes into the same slot?)
  6. Start the Array and the old zpool should re-import with all my data intact?

Sorry if I'm being pedantic but I can't afford to backup 100% of my data so I just want to minimise as much risk as possible.

 

  pool: blacknet
 state: ONLINE
status: Some supported and requested features are not enabled on the pool.
        The pool can still be used, but some features are unavailable.
action: Enable all features using 'zpool upgrade'. Once this is done,
        the pool may no longer be accessible by software that does not support
        the features. See zpool-features(7) for details.
  scan: scrub repaired 0B in 18:05:51 with 0 errors on Wed Jan  1 21:05:53 2025
config:

        NAME        STATE     READ WRITE CKSUM
        blacknet    ONLINE       0     0     0
          raidz1-0  ONLINE       0     0     0
            sdb1    ONLINE       0     0     0
            sdc1    ONLINE       0     0     0
            sdd1    ONLINE       0     0     0
            sde1    ONLINE       0     0     0
        cache
          sdf1      ONLINE       0     0     0
          sdg1      ONLINE       0     0     0

 

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.