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 write has been
104 This event can only take place if the module parameter
105 .Sy zfs_vdev_direct_write_verify
109 for more details on the
110 .Sy zfs_vdev_direct_write_verify
113 Issued every time a vdev change have been done to the pool.
115 Issued when a pool cannot be imported.
117 Issued when a pool is destroyed.
119 Issued when a pool is exported.
121 Issued when a pool is imported.
123 Issued when a REGUID (new unique identifier for the pool have been regenerated)
126 Issued when the vdev is unknown.
127 Such as trying to clear device errors on a vdev that have failed/been kicked
128 from the system/pool and is no longer available.
129 .It Sy vdev.open_failed
130 Issued when a vdev could not be opened (because it didn't exist for example).
131 .It Sy vdev.corrupt_data
132 Issued when corrupt data have been detected on a vdev.
133 .It Sy vdev.no_replicas
134 Issued when there are no more replicas to sustain the pool.
135 This would lead to the pool being
137 .It Sy vdev.bad_guid_sum
138 Issued when a missing device in the pool have been detected.
139 .It Sy vdev.too_small
140 Issued when the system (kernel) have removed a device, and ZFS
141 notices that the device isn't there any more.
142 This is usually followed by a
145 .It Sy vdev.bad_label
146 Issued when the label is OK but invalid.
147 .It Sy vdev.bad_ashift
148 Issued when the ashift alignment requirement has increased.
150 Issued when a vdev is detached from a mirror (or a spare detached from a
151 vdev where it have been used to replace a failed drive - only works if
152 the original drive have been re-added).
154 Issued when clearing device errors in a pool.
157 on a device in the pool.
159 Issued when a check to see if a given vdev could be opened is started.
161 Issued when a spare have kicked in to replace a failed device.
162 .It Sy vdev.autoexpand
163 Issued when a vdev can be automatically expanded.
165 Issued when there is an I/O failure in a vdev in the pool.
167 Issued when a probe fails on a vdev.
168 This would occur if a vdev
169 have been kicked from the system outside of ZFS (such as the kernel
170 have removed the device).
172 Issued when the intent log cannot be replayed.
173 The can occur in the case of a missing or damaged log device.
174 .It Sy resilver.start
175 Issued when a resilver is started.
176 .It Sy resilver.finish
177 Issued when the running resilver have finished.
179 Issued when a scrub is started on a pool.
181 Issued when a pool has finished scrubbing.
183 Issued when a scrub is aborted on a pool.
185 Issued when a scrub is resumed on a pool.
187 Issued when a scrub is paused on a pool.
188 .It Sy bootfs.vdev.attach
192 This is the payload (data, information) that accompanies an
197 these are set to uppercase and prefixed with
200 .Bl -tag -compact -width "vdev_cksum_errors"
213 for more information.
215 The GUID of the pool.
217 The load state for the pool (0=none, 1=open, 2=import, 3=tryimport, 4=recover
220 The GUID of the vdev in question (the vdev failing or operated upon with
233 for more information on possible values.
235 Full path of the vdev, including any
240 Physical FRU location.
242 State of vdev (0=uninitialized, 1=closed, 2=offline, 3=removed, 4=failed to
243 open, 5=faulted, 6=degraded, 7=healthy).
245 The ashift value of the vdev.
246 .It Sy vdev_complete_ts
247 The time the last I/O request completed for the specified vdev.
249 The time since the last I/O request completed for the specified vdev.
250 .It Sy vdev_spare_paths
251 List of spares, including full path and any
253 .It Sy vdev_spare_guids
255 .It Sy vdev_read_errors
256 How many read errors that have been detected on the vdev.
257 .It Sy vdev_write_errors
258 How many write errors that have been detected on the vdev.
259 .It Sy vdev_cksum_errors
260 How many checksum errors that have been detected on the vdev.
262 GUID of the vdev parent.
268 Path of the vdev parent (if any).
270 ID of the vdev parent (if any).
272 The object set number for a given I/O request.
274 The object number for a given I/O request.
276 The indirect level for the block.
277 Level 0 is the lowest level and includes data blocks.
278 Values > 0 indicate metadata blocks at the appropriate level.
280 The block ID for a given I/O request.
282 The error number for a failure when handling a given I/O request,
287 used to indicate a ZFS checksum error.
289 The offset in bytes of where to write the I/O request for the specified vdev.
291 The size in bytes of the I/O request.
293 The current flags describing how the I/O request should be handled.
296 section for the full list of I/O flags.
298 The current stage of the I/O in the pipeline.
301 section for a full list of all the I/O stages.
303 The valid pipeline stages for the I/O.
306 section for a full list of all the I/O stages.
308 The time elapsed (in nanoseconds) waiting for the block layer to complete the
312 this does not include any vdev queuing time and is
313 therefore solely a measure of the block layer performance.
315 The time when a given I/O request was submitted.
317 The time required to service a given I/O request.
319 The previous state of the vdev.
320 .It Sy cksum_algorithm
321 Checksum algorithm used.
324 for more information on the available checksum algorithms.
325 .It Sy cksum_byteswap
326 Whether or not the data is byteswapped.
328 .No [\& Ns Ar start , end )
329 pairs of corruption offsets.
330 Offsets are always aligned on a 64-bit boundary,
331 and can include some gaps of non-corruption.
333 .Sy bad_ranges_min_gap )
334 .It Sy bad_ranges_min_gap
335 In order to bound the size of the
337 array, gaps of non-corruption
338 less than or equal to
339 .Sy bad_ranges_min_gap
340 bytes have been merged with
342 Always at least 8 bytes, since corruption is detected on a 64-bit word basis.
343 .It Sy bad_range_sets
344 This array has one element per range in
346 Each element contains
347 the count of bits in that range which were clear in the good data and set
349 .It Sy bad_range_clears
350 This array has one element per range in
352 Each element contains
353 the count of bits for that range which were set in the good data and clear in
356 If this field exists, it is an array of
357 .Pq Ar bad data No & ~( Ns Ar good data ) ;
358 that is, the bits set in the bad data which are cleared in the good data.
359 Each element corresponds a byte whose offset is in a range in
361 and the array is ordered by offset.
362 Thus, the first element is the first byte in the first
364 range, and the last element is the last byte in the last
367 .It Sy bad_cleared_bits
371 .Pq Ar good data No & ~( Ns Ar bad data ) ;
372 that is, the bits set in the good data which are cleared in the bad data.
376 The ZFS I/O pipeline is comprised of various stages which are defined below.
377 The individual stages are used to construct these basic I/O
378 operations: Read, Write, Free, Claim, Flush and Trim.
380 set on an event to describe the life cycle of a given I/O request.
385 Stage:Bit Mask:Operations
387 ZIO_STAGE_OPEN:0x00000001:RWFCXT
389 ZIO_STAGE_READ_BP_INIT:0x00000002:R-----
390 ZIO_STAGE_WRITE_BP_INIT:0x00000004:-W----
391 ZIO_STAGE_FREE_BP_INIT:0x00000008:--F---
392 ZIO_STAGE_ISSUE_ASYNC:0x00000010:-WF--T
393 ZIO_STAGE_WRITE_COMPRESS:0x00000020:-W----
395 ZIO_STAGE_ENCRYPT:0x00000040:-W----
396 ZIO_STAGE_CHECKSUM_GENERATE:0x00000080:-W----
398 ZIO_STAGE_NOP_WRITE:0x00000100:-W----
400 ZIO_STAGE_BRT_FREE:0x00000200:--F---
402 ZIO_STAGE_DDT_READ_START:0x00000400:R-----
403 ZIO_STAGE_DDT_READ_DONE:0x00000800:R-----
404 ZIO_STAGE_DDT_WRITE:0x00001000:-W----
405 ZIO_STAGE_DDT_FREE:0x00002000:--F---
407 ZIO_STAGE_GANG_ASSEMBLE:0x00004000:RWFC--
408 ZIO_STAGE_GANG_ISSUE:0x00008000:RWFC--
410 ZIO_STAGE_DVA_THROTTLE:0x00010000:-W----
411 ZIO_STAGE_DVA_ALLOCATE:0x00020000:-W----
412 ZIO_STAGE_DVA_FREE:0x00040000:--F---
413 ZIO_STAGE_DVA_CLAIM:0x00080000:---C--
415 ZIO_STAGE_READY:0x00100000:RWFCIT
417 ZIO_STAGE_VDEV_IO_START:0x00200000:RW--XT
418 ZIO_STAGE_VDEV_IO_DONE:0x00400000:RW--XT
419 ZIO_STAGE_VDEV_IO_ASSESS:0x00800000:RW--XT
421 ZIO_STAGE_CHECKSUM_VERIFY:0x01000000:R-----
422 ZIO_STAGE_DIO_CHECKSUM_VERIFY:0x02000000:-W----
424 ZIO_STAGE_DONE:0x04000000:RWFCXT
428 Every I/O request in the pipeline contains a set of flags which describe its
429 function and are used to govern its behavior.
430 These flags will be set in an event as a
439 ZIO_FLAG_DONT_AGGREGATE:0x00000001
440 ZIO_FLAG_IO_REPAIR:0x00000002
441 ZIO_FLAG_SELF_HEAL:0x00000004
442 ZIO_FLAG_RESILVER:0x00000008
443 ZIO_FLAG_SCRUB:0x00000010
444 ZIO_FLAG_SCAN_THREAD:0x00000020
445 ZIO_FLAG_PHYSICAL:0x00000040
447 ZIO_FLAG_CANFAIL:0x00000080
448 ZIO_FLAG_SPECULATIVE:0x00000100
449 ZIO_FLAG_CONFIG_WRITER:0x00000200
450 ZIO_FLAG_DONT_RETRY:0x00000400
451 ZIO_FLAG_NODATA:0x00001000
452 ZIO_FLAG_INDUCE_DAMAGE:0x00002000
454 ZIO_FLAG_IO_ALLOCATING:0x00004000
455 ZIO_FLAG_IO_RETRY:0x00008000
456 ZIO_FLAG_PROBE:0x00010000
457 ZIO_FLAG_TRYHARD:0x00020000
458 ZIO_FLAG_OPTIONAL:0x00040000
460 ZIO_FLAG_DONT_QUEUE:0x00080000
461 ZIO_FLAG_DONT_PROPAGATE:0x00100000
462 ZIO_FLAG_IO_BYPASS:0x00200000
463 ZIO_FLAG_IO_REWRITE:0x00400000
464 ZIO_FLAG_RAW_COMPRESS:0x00800000
465 ZIO_FLAG_RAW_ENCRYPT:0x01000000
467 ZIO_FLAG_GANG_CHILD:0x02000000
468 ZIO_FLAG_DDT_CHILD:0x04000000
469 ZIO_FLAG_GODFATHER:0x08000000
470 ZIO_FLAG_NOPWRITE:0x10000000
471 ZIO_FLAG_REEXECUTED:0x20000000
472 ZIO_FLAG_DELEGATED:0x40000000
473 ZIO_FLAG_FASTWRITE:0x80000000