xref: /freebsd-src/sys/contrib/openzfs/man/man8/zpool-events.8 (revision 783d3ff6d7fae619db8a7990b8a6387de0c677b5)
1eda14cbcSMatt Macy.\"
2eda14cbcSMatt Macy.\" CDDL HEADER START
3eda14cbcSMatt Macy.\"
4eda14cbcSMatt Macy.\" The contents of this file are subject to the terms of the
5eda14cbcSMatt Macy.\" Common Development and Distribution License (the "License").
6eda14cbcSMatt Macy.\" You may not use this file except in compliance with the License.
7eda14cbcSMatt Macy.\"
8eda14cbcSMatt Macy.\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9271171e0SMartin Matuska.\" or https://opensource.org/licenses/CDDL-1.0.
10eda14cbcSMatt Macy.\" See the License for the specific language governing permissions
11eda14cbcSMatt Macy.\" and limitations under the License.
12eda14cbcSMatt Macy.\"
13eda14cbcSMatt Macy.\" When distributing Covered Code, include this CDDL HEADER in each
14eda14cbcSMatt Macy.\" file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15eda14cbcSMatt Macy.\" If applicable, add the following below this CDDL HEADER, with the
16eda14cbcSMatt Macy.\" fields enclosed by brackets "[]" replaced with your own identifying
17eda14cbcSMatt Macy.\" information: Portions Copyright [yyyy] [name of copyright owner]
18eda14cbcSMatt Macy.\"
19eda14cbcSMatt Macy.\" CDDL HEADER END
20eda14cbcSMatt Macy.\"
21eda14cbcSMatt Macy.\" Copyright (c) 2007, Sun Microsystems, Inc. All Rights Reserved.
22eda14cbcSMatt Macy.\" Copyright (c) 2012, 2018 by Delphix. All rights reserved.
23eda14cbcSMatt Macy.\" Copyright (c) 2012 Cyril Plisko. All Rights Reserved.
24eda14cbcSMatt Macy.\" Copyright (c) 2017 Datto Inc.
25eda14cbcSMatt Macy.\" Copyright (c) 2018 George Melikov. All Rights Reserved.
26eda14cbcSMatt Macy.\" Copyright 2017 Nexenta Systems, Inc.
27eda14cbcSMatt Macy.\" Copyright (c) 2017 Open-E, Inc. All Rights Reserved.
28*783d3ff6SMartin Matuska.\" Copyright (c) 2024, Klara Inc.
29eda14cbcSMatt Macy.\"
30*783d3ff6SMartin Matuska.Dd February 28, 2024
31eda14cbcSMatt Macy.Dt ZPOOL-EVENTS 8
32eda14cbcSMatt Macy.Os
3316038816SMartin Matuska.
34eda14cbcSMatt Macy.Sh NAME
357877fdebSMatt Macy.Nm zpool-events
3616038816SMartin Matuska.Nd list recent events generated by kernel
37eda14cbcSMatt Macy.Sh SYNOPSIS
387877fdebSMatt Macy.Nm zpool
39eda14cbcSMatt Macy.Cm events
4016038816SMartin Matuska.Op Fl vHf
4116038816SMartin Matuska.Op Ar pool
427877fdebSMatt Macy.Nm zpool
43eda14cbcSMatt Macy.Cm events
4416038816SMartin Matuska.Fl c
4516038816SMartin Matuska.
4616038816SMartin Matuska.Sh DESCRIPTION
4716038816SMartin MatuskaLists all recent events generated by the ZFS kernel modules.
4816038816SMartin MatuskaThese events are consumed by the
49eda14cbcSMatt Macy.Xr zed 8
50eda14cbcSMatt Macyand used to automate administrative tasks such as replacing a failed device
5116038816SMartin Matuskawith a hot spare.
5216038816SMartin MatuskaFor more information about the subclasses and event payloads
533ff01b23SMartin Matuskathat can be generated see
543ff01b23SMartin Matuska.Sx EVENTS
553ff01b23SMartin Matuskaand the following sections.
563ff01b23SMartin Matuska.
573ff01b23SMartin Matuska.Sh OPTIONS
5816038816SMartin Matuska.Bl -tag -compact -width Ds
59eda14cbcSMatt Macy.It Fl c
60eda14cbcSMatt MacyClear all previous events.
61eda14cbcSMatt Macy.It Fl f
62eda14cbcSMatt MacyFollow mode.
63eda14cbcSMatt Macy.It Fl H
6416038816SMartin MatuskaScripted mode.
6516038816SMartin MatuskaDo not display headers, and separate fields by a
66eda14cbcSMatt Macysingle tab instead of arbitrary space.
67eda14cbcSMatt Macy.It Fl v
68eda14cbcSMatt MacyPrint the entire payload for each event.
69eda14cbcSMatt Macy.El
7016038816SMartin Matuska.
713ff01b23SMartin Matuska.Sh EVENTS
72e92ffd9bSMartin MatuskaThese are the different event subclasses.
733ff01b23SMartin MatuskaThe full event name would be
743ff01b23SMartin Matuska.Sy ereport.fs.zfs.\& Ns Em SUBCLASS ,
753ff01b23SMartin Matuskabut only the last part is listed here.
763ff01b23SMartin Matuska.Pp
773ff01b23SMartin Matuska.Bl -tag -compact -width "vdev.bad_guid_sum"
783ff01b23SMartin Matuska.It Sy checksum
793ff01b23SMartin MatuskaIssued when a checksum error has been detected.
803ff01b23SMartin Matuska.It Sy io
813ff01b23SMartin MatuskaIssued when there is an I/O error in a vdev in the pool.
823ff01b23SMartin Matuska.It Sy data
833ff01b23SMartin MatuskaIssued when there have been data errors in the pool.
843ff01b23SMartin Matuska.It Sy deadman
853ff01b23SMartin MatuskaIssued when an I/O request is determined to be "hung", this can be caused
863ff01b23SMartin Matuskaby lost completion events due to flaky hardware or drivers.
873ff01b23SMartin MatuskaSee
883ff01b23SMartin Matuska.Sy zfs_deadman_failmode
893ff01b23SMartin Matuskain
903ff01b23SMartin Matuska.Xr zfs 4
913ff01b23SMartin Matuskafor additional information regarding "hung" I/O detection and configuration.
923ff01b23SMartin Matuska.It Sy delay
933ff01b23SMartin MatuskaIssued when a completed I/O request exceeds the maximum allowed time
943ff01b23SMartin Matuskaspecified by the
953ff01b23SMartin Matuska.Sy zio_slow_io_ms
963ff01b23SMartin Matuskamodule parameter.
973ff01b23SMartin MatuskaThis can be an indicator of problems with the underlying storage device.
983ff01b23SMartin MatuskaThe number of delay events is ratelimited by the
993ff01b23SMartin Matuska.Sy zfs_slow_io_events_per_second
1003ff01b23SMartin Matuskamodule parameter.
1013ff01b23SMartin Matuska.It Sy config
1023ff01b23SMartin MatuskaIssued every time a vdev change have been done to the pool.
1033ff01b23SMartin Matuska.It Sy zpool
1043ff01b23SMartin MatuskaIssued when a pool cannot be imported.
1053ff01b23SMartin Matuska.It Sy zpool.destroy
1063ff01b23SMartin MatuskaIssued when a pool is destroyed.
1073ff01b23SMartin Matuska.It Sy zpool.export
1083ff01b23SMartin MatuskaIssued when a pool is exported.
1093ff01b23SMartin Matuska.It Sy zpool.import
1103ff01b23SMartin MatuskaIssued when a pool is imported.
1113ff01b23SMartin Matuska.It Sy zpool.reguid
112bb2d13b6SMartin MatuskaIssued when a REGUID (new unique identifier for the pool have been regenerated)
113bb2d13b6SMartin Matuskahave been detected.
1143ff01b23SMartin Matuska.It Sy vdev.unknown
1153ff01b23SMartin MatuskaIssued when the vdev is unknown.
1163ff01b23SMartin MatuskaSuch as trying to clear device errors on a vdev that have failed/been kicked
1173ff01b23SMartin Matuskafrom the system/pool and is no longer available.
1183ff01b23SMartin Matuska.It Sy vdev.open_failed
1193ff01b23SMartin MatuskaIssued when a vdev could not be opened (because it didn't exist for example).
1203ff01b23SMartin Matuska.It Sy vdev.corrupt_data
1213ff01b23SMartin MatuskaIssued when corrupt data have been detected on a vdev.
1223ff01b23SMartin Matuska.It Sy vdev.no_replicas
1233ff01b23SMartin MatuskaIssued when there are no more replicas to sustain the pool.
1243ff01b23SMartin MatuskaThis would lead to the pool being
1253ff01b23SMartin Matuska.Em DEGRADED .
1263ff01b23SMartin Matuska.It Sy vdev.bad_guid_sum
1273ff01b23SMartin MatuskaIssued when a missing device in the pool have been detected.
1283ff01b23SMartin Matuska.It Sy vdev.too_small
1293ff01b23SMartin MatuskaIssued when the system (kernel) have removed a device, and ZFS
1303ff01b23SMartin Matuskanotices that the device isn't there any more.
1313ff01b23SMartin MatuskaThis is usually followed by a
1323ff01b23SMartin Matuska.Sy probe_failure
1333ff01b23SMartin Matuskaevent.
1343ff01b23SMartin Matuska.It Sy vdev.bad_label
1353ff01b23SMartin MatuskaIssued when the label is OK but invalid.
1363ff01b23SMartin Matuska.It Sy vdev.bad_ashift
1373ff01b23SMartin MatuskaIssued when the ashift alignment requirement has increased.
1383ff01b23SMartin Matuska.It Sy vdev.remove
1393ff01b23SMartin MatuskaIssued when a vdev is detached from a mirror (or a spare detached from a
1403ff01b23SMartin Matuskavdev where it have been used to replace a failed drive - only works if
141e92ffd9bSMartin Matuskathe original drive have been re-added).
1423ff01b23SMartin Matuska.It Sy vdev.clear
1433ff01b23SMartin MatuskaIssued when clearing device errors in a pool.
1443ff01b23SMartin MatuskaSuch as running
1453ff01b23SMartin Matuska.Nm zpool Cm clear
1463ff01b23SMartin Matuskaon a device in the pool.
1473ff01b23SMartin Matuska.It Sy vdev.check
1483ff01b23SMartin MatuskaIssued when a check to see if a given vdev could be opened is started.
1493ff01b23SMartin Matuska.It Sy vdev.spare
1503ff01b23SMartin MatuskaIssued when a spare have kicked in to replace a failed device.
1513ff01b23SMartin Matuska.It Sy vdev.autoexpand
1523ff01b23SMartin MatuskaIssued when a vdev can be automatically expanded.
1533ff01b23SMartin Matuska.It Sy io_failure
1543ff01b23SMartin MatuskaIssued when there is an I/O failure in a vdev in the pool.
1553ff01b23SMartin Matuska.It Sy probe_failure
1563ff01b23SMartin MatuskaIssued when a probe fails on a vdev.
1573ff01b23SMartin MatuskaThis would occur if a vdev
1583ff01b23SMartin Matuskahave been kicked from the system outside of ZFS (such as the kernel
1593ff01b23SMartin Matuskahave removed the device).
1603ff01b23SMartin Matuska.It Sy log_replay
1613ff01b23SMartin MatuskaIssued when the intent log cannot be replayed.
1623ff01b23SMartin MatuskaThe can occur in the case of a missing or damaged log device.
1633ff01b23SMartin Matuska.It Sy resilver.start
1643ff01b23SMartin MatuskaIssued when a resilver is started.
1653ff01b23SMartin Matuska.It Sy resilver.finish
1663ff01b23SMartin MatuskaIssued when the running resilver have finished.
1673ff01b23SMartin Matuska.It Sy scrub.start
1683ff01b23SMartin MatuskaIssued when a scrub is started on a pool.
1693ff01b23SMartin Matuska.It Sy scrub.finish
1703ff01b23SMartin MatuskaIssued when a pool has finished scrubbing.
1713ff01b23SMartin Matuska.It Sy scrub.abort
1723ff01b23SMartin MatuskaIssued when a scrub is aborted on a pool.
1733ff01b23SMartin Matuska.It Sy scrub.resume
1743ff01b23SMartin MatuskaIssued when a scrub is resumed on a pool.
1753ff01b23SMartin Matuska.It Sy scrub.paused
1763ff01b23SMartin MatuskaIssued when a scrub is paused on a pool.
1773ff01b23SMartin Matuska.It Sy bootfs.vdev.attach
1783ff01b23SMartin Matuska.El
1793ff01b23SMartin Matuska.
1803ff01b23SMartin Matuska.Sh PAYLOADS
1813ff01b23SMartin MatuskaThis is the payload (data, information) that accompanies an
1823ff01b23SMartin Matuskaevent.
1833ff01b23SMartin Matuska.Pp
1843ff01b23SMartin MatuskaFor
1853ff01b23SMartin Matuska.Xr zed 8 ,
1863ff01b23SMartin Matuskathese are set to uppercase and prefixed with
1873ff01b23SMartin Matuska.Sy ZEVENT_ .
1883ff01b23SMartin Matuska.Pp
1893ff01b23SMartin Matuska.Bl -tag -compact -width "vdev_cksum_errors"
1903ff01b23SMartin Matuska.It Sy pool
1913ff01b23SMartin MatuskaPool name.
1923ff01b23SMartin Matuska.It Sy pool_failmode
1933ff01b23SMartin MatuskaFailmode -
1943ff01b23SMartin Matuska.Sy wait ,
1953ff01b23SMartin Matuska.Sy continue ,
1963ff01b23SMartin Matuskaor
1973ff01b23SMartin Matuska.Sy panic .
1983ff01b23SMartin MatuskaSee the
1993ff01b23SMartin Matuska.Sy failmode
2003ff01b23SMartin Matuskaproperty in
2013ff01b23SMartin Matuska.Xr zpoolprops 7
2023ff01b23SMartin Matuskafor more information.
2033ff01b23SMartin Matuska.It Sy pool_guid
2043ff01b23SMartin MatuskaThe GUID of the pool.
2053ff01b23SMartin Matuska.It Sy pool_context
2063ff01b23SMartin MatuskaThe load state for the pool (0=none, 1=open, 2=import, 3=tryimport, 4=recover
2073ff01b23SMartin Matuska5=error).
2083ff01b23SMartin Matuska.It Sy vdev_guid
2093ff01b23SMartin MatuskaThe GUID of the vdev in question (the vdev failing or operated upon with
2103ff01b23SMartin Matuska.Nm zpool Cm clear ,
2113ff01b23SMartin Matuskaetc.).
2123ff01b23SMartin Matuska.It Sy vdev_type
2133ff01b23SMartin MatuskaType of vdev -
2143ff01b23SMartin Matuska.Sy disk ,
2153ff01b23SMartin Matuska.Sy file ,
2163ff01b23SMartin Matuska.Sy mirror ,
2173ff01b23SMartin Matuskaetc.
2183ff01b23SMartin MatuskaSee the
2193ff01b23SMartin Matuska.Sy Virtual Devices
2203ff01b23SMartin Matuskasection of
2213ff01b23SMartin Matuska.Xr zpoolconcepts 7
2223ff01b23SMartin Matuskafor more information on possible values.
2233ff01b23SMartin Matuska.It Sy vdev_path
2243ff01b23SMartin MatuskaFull path of the vdev, including any
2253ff01b23SMartin Matuska.Em -partX .
2263ff01b23SMartin Matuska.It Sy vdev_devid
2273ff01b23SMartin MatuskaID of vdev (if any).
2283ff01b23SMartin Matuska.It Sy vdev_fru
2293ff01b23SMartin MatuskaPhysical FRU location.
2303ff01b23SMartin Matuska.It Sy vdev_state
231bb2d13b6SMartin MatuskaState of vdev (0=uninitialized, 1=closed, 2=offline, 3=removed, 4=failed to
232bb2d13b6SMartin Matuskaopen, 5=faulted, 6=degraded, 7=healthy).
2333ff01b23SMartin Matuska.It Sy vdev_ashift
2343ff01b23SMartin MatuskaThe ashift value of the vdev.
2353ff01b23SMartin Matuska.It Sy vdev_complete_ts
2363ff01b23SMartin MatuskaThe time the last I/O request completed for the specified vdev.
2373ff01b23SMartin Matuska.It Sy vdev_delta_ts
2383ff01b23SMartin MatuskaThe time since the last I/O request completed for the specified vdev.
2393ff01b23SMartin Matuska.It Sy vdev_spare_paths
2403ff01b23SMartin MatuskaList of spares, including full path and any
2413ff01b23SMartin Matuska.Em -partX .
2423ff01b23SMartin Matuska.It Sy vdev_spare_guids
2433ff01b23SMartin MatuskaGUID(s) of spares.
2443ff01b23SMartin Matuska.It Sy vdev_read_errors
2453ff01b23SMartin MatuskaHow many read errors that have been detected on the vdev.
2463ff01b23SMartin Matuska.It Sy vdev_write_errors
2473ff01b23SMartin MatuskaHow many write errors that have been detected on the vdev.
2483ff01b23SMartin Matuska.It Sy vdev_cksum_errors
2493ff01b23SMartin MatuskaHow many checksum errors that have been detected on the vdev.
2503ff01b23SMartin Matuska.It Sy parent_guid
2513ff01b23SMartin MatuskaGUID of the vdev parent.
2523ff01b23SMartin Matuska.It Sy parent_type
2533ff01b23SMartin MatuskaType of parent.
2543ff01b23SMartin MatuskaSee
2553ff01b23SMartin Matuska.Sy vdev_type .
2563ff01b23SMartin Matuska.It Sy parent_path
2573ff01b23SMartin MatuskaPath of the vdev parent (if any).
2583ff01b23SMartin Matuska.It Sy parent_devid
2593ff01b23SMartin MatuskaID of the vdev parent (if any).
2603ff01b23SMartin Matuska.It Sy zio_objset
2613ff01b23SMartin MatuskaThe object set number for a given I/O request.
2623ff01b23SMartin Matuska.It Sy zio_object
2633ff01b23SMartin MatuskaThe object number for a given I/O request.
2643ff01b23SMartin Matuska.It Sy zio_level
2653ff01b23SMartin MatuskaThe indirect level for the block.
2663ff01b23SMartin MatuskaLevel 0 is the lowest level and includes data blocks.
2673ff01b23SMartin MatuskaValues > 0 indicate metadata blocks at the appropriate level.
2683ff01b23SMartin Matuska.It Sy zio_blkid
2693ff01b23SMartin MatuskaThe block ID for a given I/O request.
2703ff01b23SMartin Matuska.It Sy zio_err
2713ff01b23SMartin MatuskaThe error number for a failure when handling a given I/O request,
2723ff01b23SMartin Matuskacompatible with
2733ff01b23SMartin Matuska.Xr errno 3
2743ff01b23SMartin Matuskawith the value of
2753ff01b23SMartin Matuska.Sy EBADE
2763ff01b23SMartin Matuskaused to indicate a ZFS checksum error.
2773ff01b23SMartin Matuska.It Sy zio_offset
2783ff01b23SMartin MatuskaThe offset in bytes of where to write the I/O request for the specified vdev.
2793ff01b23SMartin Matuska.It Sy zio_size
2803ff01b23SMartin MatuskaThe size in bytes of the I/O request.
2813ff01b23SMartin Matuska.It Sy zio_flags
2823ff01b23SMartin MatuskaThe current flags describing how the I/O request should be handled.
2833ff01b23SMartin MatuskaSee the
2843ff01b23SMartin Matuska.Sy I/O FLAGS
2853ff01b23SMartin Matuskasection for the full list of I/O flags.
2863ff01b23SMartin Matuska.It Sy zio_stage
2873ff01b23SMartin MatuskaThe current stage of the I/O in the pipeline.
2883ff01b23SMartin MatuskaSee the
2893ff01b23SMartin Matuska.Sy I/O STAGES
2903ff01b23SMartin Matuskasection for a full list of all the I/O stages.
2913ff01b23SMartin Matuska.It Sy zio_pipeline
2923ff01b23SMartin MatuskaThe valid pipeline stages for the I/O.
2933ff01b23SMartin MatuskaSee the
2943ff01b23SMartin Matuska.Sy I/O STAGES
2953ff01b23SMartin Matuskasection for a full list of all the I/O stages.
2963ff01b23SMartin Matuska.It Sy zio_delay
2973ff01b23SMartin MatuskaThe time elapsed (in nanoseconds) waiting for the block layer to complete the
2983ff01b23SMartin MatuskaI/O request.
2993ff01b23SMartin MatuskaUnlike
3003ff01b23SMartin Matuska.Sy zio_delta ,
3013ff01b23SMartin Matuskathis does not include any vdev queuing time and is
3023ff01b23SMartin Matuskatherefore solely a measure of the block layer performance.
3033ff01b23SMartin Matuska.It Sy zio_timestamp
3043ff01b23SMartin MatuskaThe time when a given I/O request was submitted.
3053ff01b23SMartin Matuska.It Sy zio_delta
3063ff01b23SMartin MatuskaThe time required to service a given I/O request.
3073ff01b23SMartin Matuska.It Sy prev_state
3083ff01b23SMartin MatuskaThe previous state of the vdev.
3093ff01b23SMartin Matuska.It Sy cksum_algorithm
3103ff01b23SMartin MatuskaChecksum algorithm used.
3113ff01b23SMartin MatuskaSee
3123ff01b23SMartin Matuska.Xr zfsprops 7
3133ff01b23SMartin Matuskafor more information on the available checksum algorithms.
3143ff01b23SMartin Matuska.It Sy cksum_byteswap
3153ff01b23SMartin MatuskaWhether or not the data is byteswapped.
3163ff01b23SMartin Matuska.It Sy bad_ranges
3173ff01b23SMartin Matuska.No [\& Ns Ar start , end )
3183ff01b23SMartin Matuskapairs of corruption offsets.
3193ff01b23SMartin MatuskaOffsets are always aligned on a 64-bit boundary,
3203ff01b23SMartin Matuskaand can include some gaps of non-corruption.
3213ff01b23SMartin Matuska(See
3223ff01b23SMartin Matuska.Sy bad_ranges_min_gap )
3233ff01b23SMartin Matuska.It Sy bad_ranges_min_gap
3243ff01b23SMartin MatuskaIn order to bound the size of the
3253ff01b23SMartin Matuska.Sy bad_ranges
3263ff01b23SMartin Matuskaarray, gaps of non-corruption
3273ff01b23SMartin Matuskaless than or equal to
3283ff01b23SMartin Matuska.Sy bad_ranges_min_gap
3293ff01b23SMartin Matuskabytes have been merged with
3303ff01b23SMartin Matuskaadjacent corruption.
3313ff01b23SMartin MatuskaAlways at least 8 bytes, since corruption is detected on a 64-bit word basis.
3323ff01b23SMartin Matuska.It Sy bad_range_sets
3333ff01b23SMartin MatuskaThis array has one element per range in
3343ff01b23SMartin Matuska.Sy bad_ranges .
3353ff01b23SMartin MatuskaEach element contains
3363ff01b23SMartin Matuskathe count of bits in that range which were clear in the good data and set
3373ff01b23SMartin Matuskain the bad data.
3383ff01b23SMartin Matuska.It Sy bad_range_clears
3393ff01b23SMartin MatuskaThis array has one element per range in
3403ff01b23SMartin Matuska.Sy bad_ranges .
3413ff01b23SMartin MatuskaEach element contains
3423ff01b23SMartin Matuskathe count of bits for that range which were set in the good data and clear in
3433ff01b23SMartin Matuskathe bad data.
3443ff01b23SMartin Matuska.It Sy bad_set_bits
3453ff01b23SMartin MatuskaIf this field exists, it is an array of
3463ff01b23SMartin Matuska.Pq Ar bad data No & ~( Ns Ar good data ) ;
3473ff01b23SMartin Matuskathat is, the bits set in the bad data which are cleared in the good data.
3483ff01b23SMartin MatuskaEach element corresponds a byte whose offset is in a range in
3493ff01b23SMartin Matuska.Sy bad_ranges ,
3503ff01b23SMartin Matuskaand the array is ordered by offset.
3513ff01b23SMartin MatuskaThus, the first element is the first byte in the first
3523ff01b23SMartin Matuska.Sy bad_ranges
3533ff01b23SMartin Matuskarange, and the last element is the last byte in the last
3543ff01b23SMartin Matuska.Sy bad_ranges
3553ff01b23SMartin Matuskarange.
3563ff01b23SMartin Matuska.It Sy bad_cleared_bits
3573ff01b23SMartin MatuskaLike
3583ff01b23SMartin Matuska.Sy bad_set_bits ,
3593ff01b23SMartin Matuskabut contains
3603ff01b23SMartin Matuska.Pq Ar good data No & ~( Ns Ar bad data ) ;
3613ff01b23SMartin Matuskathat is, the bits set in the good data which are cleared in the bad data.
3623ff01b23SMartin Matuska.El
3633ff01b23SMartin Matuska.
3643ff01b23SMartin Matuska.Sh I/O STAGES
3653ff01b23SMartin MatuskaThe ZFS I/O pipeline is comprised of various stages which are defined below.
3663ff01b23SMartin MatuskaThe individual stages are used to construct these basic I/O
367*783d3ff6SMartin Matuskaoperations: Read, Write, Free, Claim, Ioctl and Trim.
3683ff01b23SMartin MatuskaThese stages may be
3693ff01b23SMartin Matuskaset on an event to describe the life cycle of a given I/O request.
3703ff01b23SMartin Matuska.Pp
3713ff01b23SMartin Matuska.TS
3723ff01b23SMartin Matuskatab(:);
3733ff01b23SMartin Matuskal l l .
3743ff01b23SMartin MatuskaStage:Bit Mask:Operations
3753ff01b23SMartin Matuska_:_:_
376*783d3ff6SMartin MatuskaZIO_STAGE_OPEN:0x00000001:RWFCIT
3773ff01b23SMartin Matuska
378*783d3ff6SMartin MatuskaZIO_STAGE_READ_BP_INIT:0x00000002:R-----
379*783d3ff6SMartin MatuskaZIO_STAGE_WRITE_BP_INIT:0x00000004:-W----
380*783d3ff6SMartin MatuskaZIO_STAGE_FREE_BP_INIT:0x00000008:--F---
381*783d3ff6SMartin MatuskaZIO_STAGE_ISSUE_ASYNC:0x00000010:-WF--T
382*783d3ff6SMartin MatuskaZIO_STAGE_WRITE_COMPRESS:0x00000020:-W----
3833ff01b23SMartin Matuska
384*783d3ff6SMartin MatuskaZIO_STAGE_ENCRYPT:0x00000040:-W----
385*783d3ff6SMartin MatuskaZIO_STAGE_CHECKSUM_GENERATE:0x00000080:-W----
3863ff01b23SMartin Matuska
387*783d3ff6SMartin MatuskaZIO_STAGE_NOP_WRITE:0x00000100:-W----
3883ff01b23SMartin Matuska
389*783d3ff6SMartin MatuskaZIO_STAGE_BRT_FREE:0x00000200:--F---
3903ff01b23SMartin Matuska
391*783d3ff6SMartin MatuskaZIO_STAGE_DDT_READ_START:0x00000400:R-----
392*783d3ff6SMartin MatuskaZIO_STAGE_DDT_READ_DONE:0x00000800:R-----
393*783d3ff6SMartin MatuskaZIO_STAGE_DDT_WRITE:0x00001000:-W----
394*783d3ff6SMartin MatuskaZIO_STAGE_DDT_FREE:0x00002000:--F---
3953ff01b23SMartin Matuska
396*783d3ff6SMartin MatuskaZIO_STAGE_GANG_ASSEMBLE:0x00004000:RWFC--
397*783d3ff6SMartin MatuskaZIO_STAGE_GANG_ISSUE:0x00008000:RWFC--
3983ff01b23SMartin Matuska
399*783d3ff6SMartin MatuskaZIO_STAGE_DVA_THROTTLE:0x00010000:-W----
400*783d3ff6SMartin MatuskaZIO_STAGE_DVA_ALLOCATE:0x00020000:-W----
401*783d3ff6SMartin MatuskaZIO_STAGE_DVA_FREE:0x00040000:--F---
402*783d3ff6SMartin MatuskaZIO_STAGE_DVA_CLAIM:0x00080000:---C--
4033ff01b23SMartin Matuska
404*783d3ff6SMartin MatuskaZIO_STAGE_READY:0x00100000:RWFCIT
4053ff01b23SMartin Matuska
406*783d3ff6SMartin MatuskaZIO_STAGE_VDEV_IO_START:0x00200000:RW--IT
407*783d3ff6SMartin MatuskaZIO_STAGE_VDEV_IO_DONE:0x00400000:RW---T
408*783d3ff6SMartin MatuskaZIO_STAGE_VDEV_IO_ASSESS:0x00800000:RW--IT
4093ff01b23SMartin Matuska
410*783d3ff6SMartin MatuskaZIO_STAGE_CHECKSUM_VERIFY:0x01000000:R-----
4112a58b312SMartin Matuska
412*783d3ff6SMartin MatuskaZIO_STAGE_DONE:0x02000000:RWFCIT
4133ff01b23SMartin Matuska.TE
4143ff01b23SMartin Matuska.
4153ff01b23SMartin Matuska.Sh I/O FLAGS
4163ff01b23SMartin MatuskaEvery I/O request in the pipeline contains a set of flags which describe its
4173ff01b23SMartin Matuskafunction and are used to govern its behavior.
4183ff01b23SMartin MatuskaThese flags will be set in an event as a
4193ff01b23SMartin Matuska.Sy zio_flags
4203ff01b23SMartin Matuskapayload entry.
4213ff01b23SMartin Matuska.Pp
4223ff01b23SMartin Matuska.TS
4233ff01b23SMartin Matuskatab(:);
4243ff01b23SMartin Matuskal l .
4253ff01b23SMartin MatuskaFlag:Bit Mask
4263ff01b23SMartin Matuska_:_
4273ff01b23SMartin MatuskaZIO_FLAG_DONT_AGGREGATE:0x00000001
4283ff01b23SMartin MatuskaZIO_FLAG_IO_REPAIR:0x00000002
4293ff01b23SMartin MatuskaZIO_FLAG_SELF_HEAL:0x00000004
4303ff01b23SMartin MatuskaZIO_FLAG_RESILVER:0x00000008
4313ff01b23SMartin MatuskaZIO_FLAG_SCRUB:0x00000010
4323ff01b23SMartin MatuskaZIO_FLAG_SCAN_THREAD:0x00000020
4333ff01b23SMartin MatuskaZIO_FLAG_PHYSICAL:0x00000040
4343ff01b23SMartin Matuska
4353ff01b23SMartin MatuskaZIO_FLAG_CANFAIL:0x00000080
4363ff01b23SMartin MatuskaZIO_FLAG_SPECULATIVE:0x00000100
4373ff01b23SMartin MatuskaZIO_FLAG_CONFIG_WRITER:0x00000200
4383ff01b23SMartin MatuskaZIO_FLAG_DONT_RETRY:0x00000400
4393ff01b23SMartin MatuskaZIO_FLAG_NODATA:0x00001000
4403ff01b23SMartin MatuskaZIO_FLAG_INDUCE_DAMAGE:0x00002000
4413ff01b23SMartin Matuska
4423ff01b23SMartin MatuskaZIO_FLAG_IO_ALLOCATING:0x00004000
4433ff01b23SMartin MatuskaZIO_FLAG_IO_RETRY:0x00008000
4443ff01b23SMartin MatuskaZIO_FLAG_PROBE:0x00010000
4453ff01b23SMartin MatuskaZIO_FLAG_TRYHARD:0x00020000
4463ff01b23SMartin MatuskaZIO_FLAG_OPTIONAL:0x00040000
4473ff01b23SMartin Matuska
4483ff01b23SMartin MatuskaZIO_FLAG_DONT_QUEUE:0x00080000
4493ff01b23SMartin MatuskaZIO_FLAG_DONT_PROPAGATE:0x00100000
4503ff01b23SMartin MatuskaZIO_FLAG_IO_BYPASS:0x00200000
4513ff01b23SMartin MatuskaZIO_FLAG_IO_REWRITE:0x00400000
4523ff01b23SMartin MatuskaZIO_FLAG_RAW_COMPRESS:0x00800000
4533ff01b23SMartin MatuskaZIO_FLAG_RAW_ENCRYPT:0x01000000
4543ff01b23SMartin Matuska
4553ff01b23SMartin MatuskaZIO_FLAG_GANG_CHILD:0x02000000
4563ff01b23SMartin MatuskaZIO_FLAG_DDT_CHILD:0x04000000
4573ff01b23SMartin MatuskaZIO_FLAG_GODFATHER:0x08000000
4583ff01b23SMartin MatuskaZIO_FLAG_NOPWRITE:0x10000000
4593ff01b23SMartin MatuskaZIO_FLAG_REEXECUTED:0x20000000
4603ff01b23SMartin MatuskaZIO_FLAG_DELEGATED:0x40000000
4613ff01b23SMartin MatuskaZIO_FLAG_FASTWRITE:0x80000000
4623ff01b23SMartin Matuska.TE
4633ff01b23SMartin Matuska.
464eda14cbcSMatt Macy.Sh SEE ALSO
4653ff01b23SMartin Matuska.Xr zfs 4 ,
46616038816SMartin Matuska.Xr zed 8 ,
46716038816SMartin Matuska.Xr zpool-wait 8
468