Chris Gerhard wrote:> If you have a separate ZIL device is there any way to scrub the data in it?
zpool scrub traverses the ZIL regardless of wither or not it is in a
slog device on in one of the normal pool devices.
> I appreciate that the data in the ZIL is only there for a short time but
since it is never read if you had a misbehaving ZIL device that was just
throwing the data away you could potentially run like this for many months and
only discover the problem when you reboot and go to read the ZIL to replay it.
>
> So is there anyway to verify the ZIL device is working as expected (ie can
return the data written into it) while the system is running?
Do a sync write which will cause the ZIL to be used then before the txg
is commited run ''zdb -ivv <poolname>''.
Or if you are feeling really brave and don''t mind exporting the pool
you
can use the undocumented test capability and run ''zpool
freeze'' then do
your writes (even a normal non sync will be enough here), the export and
reimport the pool.
--
Darren J Moffat