Removing L2ARC from Pool

Gustav

Dabbler
Joined
Jul 2, 2023
Messages
11
Hi,

No matter how hard I search, I simply can't find the function or setting to remove L2ARC cache from the data pool. Am I completely blind, or is it simply not possible to do it in the graphical user interface (GUI)?

Thank you in advance for your help.
 

NickF

Guru
Joined
Jun 12, 2014
Messages
763
Storage -> Pool -> Manage devices
1688307832994.png
 

Gustav

Dabbler
Joined
Jul 2, 2023
Messages
11
its just not there....
 

Attachments

  • Snímek obrazovky 2023-07-02 172836.jpg
    Snímek obrazovky 2023-07-02 172836.jpg
    111 KB · Views: 306

mrpasc

Dabbler
Joined
Oct 10, 2020
Messages
42
If I remember correctly, it seems that ZFS cannot remove special vdevs from any kind of RAIDZ pools as of OpenZFS v2.1.4.
You seem to have a RAIDZ1 pool, NickF‘s pool consist of mirrored vdevs. That’s why he can remove vDev and you can’t.
 

Gustav

Dabbler
Joined
Jul 2, 2023
Messages
11
If I remember correctly, it seems that ZFS cannot remove special vdevs from any kind of RAIDZ pools as of OpenZFS v2.1.4.
You seem to have a RAIDZ1 pool, NickF‘s pool consist of mirrored vdevs. That’s why he can remove vDev and you can’t.
i can remove it. but just via shell.
with
$ sudo zpool remove pool l2arc-device
worked.
so the question is, why i cannot do it in gui. make a little bit no sense.
 

jgreco

Resident Grinch
Joined
May 29, 2011
Messages
18,680
If I remember correctly, it seems that ZFS cannot remove special vdevs from any kind of RAIDZ pools as of OpenZFS v2.1.4.

Pools are not characterized as RAIDZ, vdevs are. You might only have a single data vdev in your pool though.

Normal L2ARC can be removed from any pool type and should be removable. It could be a GUI issue of some sort.
 

dirtyfreebooter

Explorer
Joined
Oct 3, 2020
Messages
72
23.12.3.1 is definitely missing the GUI button to remove L2ARC or SLOG devices from a pool. i was just experimenting with SLOG and had to use the CLI to remove.
 

Redcoat

MVP
Joined
Feb 18, 2014
Messages
2,925
Done for you - ticket NAS-122781.

Respectfully, I suggest that you register for a Jira account so you can follow its progress and make your own reports in future.
 

HoneyBadger

actually does care
Administrator
Moderator
iXsystems
Joined
Feb 6, 2014
Messages
5,112
23.12.3.1 is definitely missing the GUI button to remove L2ARC or SLOG devices from a pool. i was just experimenting with SLOG and had to use the CLI to remove.

Just created a test pool on 22.12.3.1 and I have removal options for both the L2ARC and SLOG (single or mirror) devices.

1688495192254.png


Can you force-refresh and/or clear your browser cache and check again?
 

HoneyBadger

actually does care
Administrator
Moderator
iXsystems
Joined
Feb 6, 2014
Messages
5,112
Apologies again - you are correct, with a top-level RAIDZ vdev it is not offering options for removal of cache and log vdevs.

1688498491635.png


If I remember correctly, it seems that ZFS cannot remove special vdevs from any kind of RAIDZ pools as of OpenZFS v2.1.4.
You seem to have a RAIDZ1 pool, NickF‘s pool consist of mirrored vdevs. That’s why he can remove vDev and you can’t.

This is correct, but cache and log are not treated as special vdev units, they are different. I would expect the REMOVE to be missing from those vdev types here. Seems like a UI bug may have been introduced in 22.12.3 or .1 as I don't see it on an older 22.12.2 install.
 
Last edited:

Redcoat

MVP
Joined
Feb 18, 2014
Messages
2,925
you have to read little bit above.
This Problem ist just present, when you have some RAIDZ pool.
@Gustav , have you seen the Jira request to provide a debug file? If not, please sign on to the ticket and follow the instructions for the request.
 

imxtristan

Cadet
Joined
Jul 12, 2023
Messages
2
I am a noob with the same issue- I needed to remove an nvme ssd from being a cache drive for my data pool. I searched the GUI unsuccessfully- still unable to find a solution. I read a community post: https://www.truenas.com/community/threads/unable-to-remove-slog-from-pool.111032/ from a user named Patrick M. Hausen who outlined how to use the command line interface to remove an SLOG device from a pool-- which I successfully applied to my cache device situation.

I used the console to get to the linux shell to execute the commands Patrick outlined.
 

HoneyBadger

actually does care
Administrator
Moderator
iXsystems
Joined
Feb 6, 2014
Messages
5,112
This should be addressed in 22.12.4 - thanks for the report.

The command line will work to remove cache and log vdevs until the fix is in the UI - but note that it still can't perform tasks that ZFS won't allow (eg: removing a RAIDZ data vdev)
 
Top