ZIL removed how to restore Pool?

velocity08

Dabbler
Joined
Nov 29, 2019
Messages
33
Hi All

have been looking for some clear information on how to restore a pool when a ZIL is removed or a single drive Zil dies.

Have seen different comments around but nothing 100% solid.

did a quick experiment on FreeNas and removed the ZIL and the pool was showing as offline.

Couldn't find a straight forward answer on how to detach the ZIL from the pool and import back.

Would love to learn both UI and terminal methods.

""Cheers
G
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
Remove ZIL/SLOG
zpool remove <poolname> <disk> (gptid or /dev format)

Add ZIL/SLOG
zpool add log <poolname> <disk> (gptid or /dev format)
 

HoneyBadger

actually does care
Administrator
Moderator
iXsystems
Joined
Feb 6, 2014
Messages
5,112
Removing the SLOG device from an imported pool is easy enough as indicated by @sretalla and should even work to remove a dead/missing device.

If the SLOG dies on a reboot after powerloss though, you need to use zpool import -m from a shell, and you will lose any pending data that wasn't written to the pool. (This is why mirrored SLOG is recommended for "every single bit matters" workloads.)

As far as there being a GUI method to do it, I'm unsure. Something on my to-do list to check out, I guess?
 

velocity08

Dabbler
Joined
Nov 29, 2019
Messages
33
Awesome thank you both exactly what i was looking for,

Yes agreed and understand in a mirror for production :)

was just working through testing some scenarios and wanted to verify we had the correct information before doing more testing.

If you find a way in the GUI in your travels please post if you can.

thanks again.

""Cheers
G
 
Top