Page 1 of 1

RaidZ with cache device - can I remove it?

Posted: 17 Dec 2014 10:15
by danzi
Dear All,

I have a RaidZ config - 3 x1.5 Tb and I also have an SSD as a cache device. I would like to re-use the SSD and as far as I am concerned, the speed benefit it gives me is pretty much unnoticeable anyway.

Can I safely remove the cache device from the pool?

config:

NAME STATE READ WRITE CKSUM
raidpool ONLINE 0 0 0
raidz1-0 ONLINE 0 0 0
ada0 ONLINE 0 0 0
ada1 ONLINE 0 0 0
ada2 ONLINE 0 0 0
cache
ada3 ONLINE 0 0 0

Here is the config.

Would I just use zfs remove raidpool /dev/ada3 to achieve this?

Re: RaidZ with cache device - can I remove it?

Posted: 17 Dec 2014 10:27
by crowi
Would I just use zfs remove raidpool /dev/ada3 to achieve this?
NO.
the correct command is:

Code: Select all

zpool remove raidpool /dev/ada3

Re: RaidZ with cache device - can I remove it?

Posted: 18 Dec 2014 21:36
by daoyama
danzi wrote:Can I safely remove the cache device from the pool?
Yes, you can remove it at anytime.
If your pool configuration is synchronized in NAS4Free, you can use "Disks|ZFS|Pools|Tools" from WebGUI.
The configuration is automatically updated after the command is done.

If you want re-add it, create new Virtual device of cache type for the device, then add it from above WebGUI.

Re: RaidZ with cache device - can I remove it?

Posted: 19 Dec 2014 18:50
by danzi
Thanks guys, solved with the command line with zpool remove :) I use a v28 pool from an older release, when it was FreeNAS still (I think).

All ok now :)