January 14, 20251 yr I've added a cache subpool to my zfs pool. I now realize I'd rather have a metadata subpool, but I don't see a way to easily remove the cache subpool or convert it to metadata. I'm I missing something or would I have to re-create the entire pool?
January 14, 20251 yr Community Expert You can remove it manually, GUI doesn't currently support that, post the output from zpool status
January 14, 20251 yr Author NAME STATE READ WRITE CKSUM storage ONLINE 0 0 0 raidz1-0 ONLINE 0 0 0 sdh1 ONLINE 0 0 0 sdg1 ONLINE 0 0 0 sdl1 ONLINE 0 0 0 raidz1-1 ONLINE 0 0 0 sdm1 ONLINE 0 0 0 sdk1 ONLINE 0 0 0 sdj1 ONLINE 0 0 0 raidz1-2 ONLINE 0 0 0 sdb1 ONLINE 0 0 0 sdd1 ONLINE 0 0 0 sdc1 ONLINE 0 0 0 cache nvme0n1p1 ONLINE 0 0 0
January 14, 20251 yr Community Expert Solution Before doing this, please note that unlike cache, a special subpool cannot be removed from a raidz pool Also, if the special vdev fails you will lose the entire pool, recommend using a mirrored vdev for special To proceed, with the array started, type zpool remove storage nvme0n1p1 Stop the array, reimport the pool without cache: on main, click on that pool and then "remove pool" back on main, create a new pool with the same name and number of slots assign the pool device(s), leave the filesystem set to auto start the array to import the pool Stop array, now add the special subpool.
January 14, 20251 yr Author Everything worked as expected. Also thanks for the tip on using a mirrored special vdev. Knowing that I'll hold off on adding the special subpool until I can mirror it.
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.