How can I remove a cache drive from a pool without any loss?

kzsolt4444

Cadet
Joined
Oct 29, 2022
Messages
9
Hi all!

I have 2x6TB HDD on one of my pool, with 1x 256GB nvme cache drive. I wan't to remove that cache drive from the pool.

364083206_2439177319590226_2640149485522759818_n.jpg


I have two question with it.
1. Can i remove it, without any damage on the pool itself? (I mean the data on it.)
2. How can i do this? I mean how exactly can i remove the cache VDEV from this pool? On the GUI i can see only 'replace' button, but would like to completely remove it from the pool. I want to take it out (that nvme drive unit) from my motherboard (i want to use a new unit for a completely new pool)

Thank you!
Zsolt
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
1. Can i remove it, without any damage on the pool itself? (I mean the data on it.)
Yes.

How can i do this? I mean how exactly can i remove the cache VDEV from this pool? On the GUI i can see only 'replace' button, but would like to completely remove it from the pool. I want to take it out (that nvme drive unit) from my motherboard (i want to use a new unit for a completely new pool)
At the CLI,

zpool remove PrivateDataPool1 <name of device> get the name of the device from zpool status PrivateDataPool1
 

kzsolt4444

Cadet
Joined
Oct 29, 2022
Messages
9
It worked without any problem!
I saw the same commands on other posts, but they were like 5 years old comments, and i tought they are outdated. But no, it is still a valid command.

Thank you very much!
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
That command dates back to the original Solaris (now Oracle) ZFS days.

It's no mistake that those original commands are almost all retained and unchanged in syntax/function. It's a very solid system.
 

Blakestandal

Cadet
Joined
May 11, 2023
Messages
9
(ignore the degradtion.)

I have the same issue, I want to remove the cache drive.

"zpool remove WD Reds 50d70a11-7e4f-4857-bd1d-0da91985a7d1" doesn't work. Am i missing something? I sispect it's with my old name of the pool with the space in it "WD Reds".
 

Attachments

  • Screenshot 2023-09-21 095244.png
    Screenshot 2023-09-21 095244.png
    38.4 KB · Views: 114

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
Try 'WD Reds' with the quotation marks. Having a space in the pool name is probably not a good idea.
 

Blakestandal

Cadet
Joined
May 11, 2023
Messages
9
Try 'WD Reds' with the quotation marks. Having a space in the pool name is probably not a good idea.
worked like a charm! and dont i know it... leaning mistake for sure. V2 will not be that way. thanks again.
 
Top