October 18, 20241 yr 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.
October 18, 20241 yr 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
October 18, 20241 yr 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
October 18, 20241 yr 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.
January 19, 20251 yr @JorgeB Came here for similar reasons, I'm running 7.0.0 2025-01-09. Please can you check my understanding... (Array started) zpool remove blacknet sdf1 (Array started) zpool remove blacknet sdg1 (Array stopped) Via the 'Main' menu select the blacknet pool device and click 'Remove Pool' (Array stopped) Back to the 'Main' menu and click 'Add Pool' and re-create the blacknet pool with 4 slots (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?) 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
January 19, 20251 yr Community Expert Looks OK, and you can remove both devices in one go, I've made a FAQ entry for this with more detailed info: https://forums.unraid.net/topic/46802-faq-for-unraid-v6/page/4/#findComment-1512308
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.