4 .\" The contents of this file are subject to the terms of the
5 .\" Common Development and Distribution License (the "License").
6 .\" You may not use this file except in compliance with the License.
8 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 .\" or https://opensource.org/licenses/CDDL-1.0.
10 .\" See the License for the specific language governing permissions
11 .\" and limitations under the License.
13 .\" When distributing Covered Code, include this CDDL HEADER in each
14 .\" file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 .\" If applicable, add the following below this CDDL HEADER, with the
16 .\" fields enclosed by brackets "[]" replaced with your own identifying
17 .\" information: Portions Copyright [yyyy] [name of copyright owner]
21 .\" Copyright (c) 2007, Sun Microsystems, Inc. All Rights Reserved.
22 .\" Copyright (c) 2012, 2018 by Delphix. All rights reserved.
23 .\" Copyright (c) 2012 Cyril Plisko. All Rights Reserved.
24 .\" Copyright (c) 2017 Datto Inc.
25 .\" Copyright (c) 2018 George Melikov. All Rights Reserved.
26 .\" Copyright 2017 Nexenta Systems, Inc.
27 .\" Copyright (c) 2017 Open-E, Inc. All Rights Reserved.
28 .\" Copyright (c) 2024, Klara Inc.
36 .Nd list recent events generated by kernel
47 Lists all recent events generated by the ZFS kernel modules.
48 These events are consumed by the
50 and used to automate administrative tasks such as replacing a failed device
52 For more information about the subclasses and event payloads
53 that can be generated see
55 and the following sections.
58 .Bl -tag -compact -width Ds
60 Clear all previous events.
65 Do not display headers, and separate fields by a
66 single tab instead of arbitrary space.
68 Print the entire payload for each event.
72 These are the different event subclasses.
73 The full event name would be
74 .Sy ereport.fs.zfs.\& Ns Em SUBCLASS ,
75 but only the last part is listed here.
77 .Bl -tag -compact -width "vdev.bad_guid_sum"
79 Issued when a checksum error has been detected.
81 Issued when there is an I/O error in a vdev in the pool.
83 Issued when there have been data errors in the pool.
85 Issued when an I/O request is determined to be "hung", this can be caused
86 by lost completion events due to flaky hardware or drivers.
88 .Sy zfs_deadman_failmode
91 for additional information regarding "hung" I/O detection and configuration.
93 Issued when a completed I/O request exceeds the maximum allowed time
97 This can be an indicator of problems with the underlying storage device.
98 The number of delay events is ratelimited by the
99 .Sy zfs_slow_io_events_per_second
102 Issued when there was a checksum verify error after a Direct I/O read has been
105 Issued when there was a checksum verify error after a Direct I/O write has been
107 This event can only take place if the module parameter
108 .Sy zfs_vdev_direct_write_verify
112 for more details on the
113 .Sy zfs_vdev_direct_write_verify
116 Issued every time a vdev change have been done to the pool.
118 Issued when a pool cannot be imported.
120 Issued when a pool is destroyed.
122 Issued when a pool is exported.
124 Issued when a pool is imported.
126 Issued when a REGUID (new unique identifier for the pool have been regenerated)
129 Issued when the vdev is unknown.
130 Such as trying to clear device errors on a vdev that have failed/been kicked
131 from the system/pool and is no longer available.
132 .It Sy vdev.open_failed
133 Issued when a vdev could not be opened (because it didn't exist for example).
134 .It Sy vdev.corrupt_data
135 Issued when corrupt data have been detected on a vdev.
136 .It Sy vdev.no_replicas
137 Issued when there are no more replicas to sustain the pool.
138 This would lead to the pool being
140 .It Sy vdev.bad_guid_sum
141 Issued when a missing device in the pool have been detected.
142 .It Sy vdev.too_small
143 Issued when the system (kernel) have removed a device, and ZFS
144 notices that the device isn't there any more.
145 This is usually followed by a
148 .It Sy vdev.bad_label
149 Issued when the label is OK but invalid.
150 .It Sy vdev.bad_ashift
151 Issued when the ashift alignment requirement has increased.
153 Issued when a vdev is detached from a mirror (or a spare detached from a
154 vdev where it have been used to replace a failed drive - only works if
155 the original drive have been re-added).
157 Issued when clearing device errors in a pool.
160 on a device in the pool.
162 Issued when a check to see if a given vdev could be opened is started.
164 Issued when a spare have kicked in to replace a failed device.
165 .It Sy vdev.autoexpand
166 Issued when a vdev can be automatically expanded.
168 Issued when there is an I/O failure in a vdev in the pool.
170 Issued when a probe fails on a vdev.
171 This would occur if a vdev
172 have been kicked from the system outside of ZFS (such as the kernel
173 have removed the device).
175 Issued when the intent log cannot be replayed.
176 The can occur in the case of a missing or damaged log device.
177 .It Sy resilver.start
178 Issued when a resilver is started.
179 .It Sy resilver.finish
180 Issued when the running resilver have finished.
182 Issued when a scrub is started on a pool.
184 Issued when a pool has finished scrubbing.
186 Issued when a scrub is aborted on a pool.
188 Issued when a scrub is resumed on a pool.
190 Issued when a scrub is paused on a pool.
191 .It Sy bootfs.vdev.attach
195 This is the payload (data, information) that accompanies an
200 these are set to uppercase and prefixed with
203 .Bl -tag -compact -width "vdev_cksum_errors"
216 for more information.
218 The GUID of the pool.
220 The load state for the pool (0=none, 1=open, 2=import, 3=tryimport, 4=recover
223 The GUID of the vdev in question (the vdev failing or operated upon with
236 for more information on possible values.
238 Full path of the vdev, including any
243 Physical FRU location.
245 State of vdev (0=uninitialized, 1=closed, 2=offline, 3=removed, 4=failed to
246 open, 5=faulted, 6=degraded, 7=healthy).
248 The ashift value of the vdev.
249 .It Sy vdev_complete_ts
250 The time the last I/O request completed for the specified vdev.
252 The time since the last I/O request completed for the specified vdev.
253 .It Sy vdev_spare_paths
254 List of spares, including full path and any
256 .It Sy vdev_spare_guids
258 .It Sy vdev_read_errors
259 How many read errors that have been detected on the vdev.
260 .It Sy vdev_write_errors
261 How many write errors that have been detected on the vdev.
262 .It Sy vdev_cksum_errors
263 How many checksum errors that have been detected on the vdev.
265 GUID of the vdev parent.
271 Path of the vdev parent (if any).
273 ID of the vdev parent (if any).
275 The object set number for a given I/O request.
277 The object number for a given I/O request.
279 The indirect level for the block.
280 Level 0 is the lowest level and includes data blocks.
281 Values > 0 indicate metadata blocks at the appropriate level.
283 The block ID for a given I/O request.
285 The error number for a failure when handling a given I/O request,
290 used to indicate a ZFS checksum error.
292 The offset in bytes of where to write the I/O request for the specified vdev.
294 The size in bytes of the I/O request.
296 The current flags describing how the I/O request should be handled.
299 section for the full list of I/O flags.
301 The current stage of the I/O in the pipeline.
304 section for a full list of all the I/O stages.
306 The valid pipeline stages for the I/O.
309 section for a full list of all the I/O stages.
311 The time elapsed (in nanoseconds) waiting for the block layer to complete the
315 this does not include any vdev queuing time and is
316 therefore solely a measure of the block layer performance.
318 The time when a given I/O request was submitted.
320 The time required to service a given I/O request.
322 The previous state of the vdev.
323 .It Sy cksum_algorithm
324 Checksum algorithm used.
327 for more information on the available checksum algorithms.
328 .It Sy cksum_byteswap
329 Whether or not the data is byteswapped.
331 .No [\& Ns Ar start , end )
332 pairs of corruption offsets.
333 Offsets are always aligned on a 64-bit boundary,
334 and can include some gaps of non-corruption.
336 .Sy bad_ranges_min_gap )
337 .It Sy bad_ranges_min_gap
338 In order to bound the size of the
340 array, gaps of non-corruption
341 less than or equal to
342 .Sy bad_ranges_min_gap
343 bytes have been merged with
345 Always at least 8 bytes, since corruption is detected on a 64-bit word basis.
346 .It Sy bad_range_sets
347 This array has one element per range in
349 Each element contains
350 the count of bits in that range which were clear in the good data and set
352 .It Sy bad_range_clears
353 This array has one element per range in
355 Each element contains
356 the count of bits for that range which were set in the good data and clear in
359 If this field exists, it is an array of
360 .Pq Ar bad data No & ~( Ns Ar good data ) ;
361 that is, the bits set in the bad data which are cleared in the good data.
362 Each element corresponds a byte whose offset is in a range in
364 and the array is ordered by offset.
365 Thus, the first element is the first byte in the first
367 range, and the last element is the last byte in the last
370 .It Sy bad_cleared_bits
374 .Pq Ar good data No & ~( Ns Ar bad data ) ;
375 that is, the bits set in the good data which are cleared in the bad data.
379 The ZFS I/O pipeline is comprised of various stages which are defined below.
380 The individual stages are used to construct these basic I/O
381 operations: Read, Write, Free, Claim, Flush and Trim.
383 set on an event to describe the life cycle of a given I/O request.
388 Stage:Bit Mask:Operations
390 ZIO_STAGE_OPEN:0x00000001:RWFCXT
392 ZIO_STAGE_READ_BP_INIT:0x00000002:R-----
393 ZIO_STAGE_WRITE_BP_INIT:0x00000004:-W----
394 ZIO_STAGE_FREE_BP_INIT:0x00000008:--F---
395 ZIO_STAGE_ISSUE_ASYNC:0x00000010:-WF--T
396 ZIO_STAGE_WRITE_COMPRESS:0x00000020:-W----
398 ZIO_STAGE_ENCRYPT:0x00000040:-W----
399 ZIO_STAGE_CHECKSUM_GENERATE:0x00000080:-W----
401 ZIO_STAGE_NOP_WRITE:0x00000100:-W----
403 ZIO_STAGE_BRT_FREE:0x00000200:--F---
405 ZIO_STAGE_DDT_READ_START:0x00000400:R-----
406 ZIO_STAGE_DDT_READ_DONE:0x00000800:R-----
407 ZIO_STAGE_DDT_WRITE:0x00001000:-W----
408 ZIO_STAGE_DDT_FREE:0x00002000:--F---
410 ZIO_STAGE_GANG_ASSEMBLE:0x00004000:RWFC--
411 ZIO_STAGE_GANG_ISSUE:0x00008000:RWFC--
413 ZIO_STAGE_DVA_THROTTLE:0x00010000:-W----
414 ZIO_STAGE_DVA_ALLOCATE:0x00020000:-W----
415 ZIO_STAGE_DVA_FREE:0x00040000:--F---
416 ZIO_STAGE_DVA_CLAIM:0x00080000:---C--
418 ZIO_STAGE_READY:0x00100000:RWFCIT
420 ZIO_STAGE_VDEV_IO_START:0x00200000:RW--XT
421 ZIO_STAGE_VDEV_IO_DONE:0x00400000:RW--XT
422 ZIO_STAGE_VDEV_IO_ASSESS:0x00800000:RW--XT
424 ZIO_STAGE_CHECKSUM_VERIFY:0x01000000:R-----
425 ZIO_STAGE_DIO_CHECKSUM_VERIFY:0x02000000:-W----
427 ZIO_STAGE_DONE:0x04000000:RWFCXT
431 Every I/O request in the pipeline contains a set of flags which describe its
432 function and are used to govern its behavior.
433 These flags will be set in an event as a
442 ZIO_FLAG_DONT_AGGREGATE:0x00000001
443 ZIO_FLAG_IO_REPAIR:0x00000002
444 ZIO_FLAG_SELF_HEAL:0x00000004
445 ZIO_FLAG_RESILVER:0x00000008
446 ZIO_FLAG_SCRUB:0x00000010
447 ZIO_FLAG_SCAN_THREAD:0x00000020
448 ZIO_FLAG_PHYSICAL:0x00000040
450 ZIO_FLAG_CANFAIL:0x00000080
451 ZIO_FLAG_SPECULATIVE:0x00000100
452 ZIO_FLAG_CONFIG_WRITER:0x00000200
453 ZIO_FLAG_DONT_RETRY:0x00000400
454 ZIO_FLAG_NODATA:0x00001000
455 ZIO_FLAG_INDUCE_DAMAGE:0x00002000
457 ZIO_FLAG_IO_ALLOCATING:0x00004000
458 ZIO_FLAG_IO_RETRY:0x00008000
459 ZIO_FLAG_PROBE:0x00010000
460 ZIO_FLAG_TRYHARD:0x00020000
461 ZIO_FLAG_OPTIONAL:0x00040000
463 ZIO_FLAG_DONT_QUEUE:0x00080000
464 ZIO_FLAG_DONT_PROPAGATE:0x00100000
465 ZIO_FLAG_IO_BYPASS:0x00200000
466 ZIO_FLAG_IO_REWRITE:0x00400000
467 ZIO_FLAG_RAW_COMPRESS:0x00800000
468 ZIO_FLAG_RAW_ENCRYPT:0x01000000
470 ZIO_FLAG_GANG_CHILD:0x02000000
471 ZIO_FLAG_DDT_CHILD:0x04000000
472 ZIO_FLAG_GODFATHER:0x08000000
473 ZIO_FLAG_NOPWRITE:0x10000000
474 ZIO_FLAG_REEXECUTED:0x20000000
475 ZIO_FLAG_DELEGATED:0x40000000
476 ZIO_FLAG_FASTWRITE:0x80000000