xref: /freebsd/sys/contrib/openzfs/man/man8/zpool-events.8 (revision 87bf66d4a7488c496af110d4d05cc0273d49f82e)
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.
28783d3ff6SMartin Matuska.\" Copyright (c) 2024, Klara Inc.
29eda14cbcSMatt Macy.\"
30783d3ff6SMartin 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.
101*87bf66d4SMartin Matuska.It Sy dio_verify_rd
102*87bf66d4SMartin MatuskaIssued when there was a checksum verify error after a Direct I/O read has been
103*87bf66d4SMartin Matuskaissued.
104*87bf66d4SMartin Matuska.It Sy dio_verify_wr
1057a7741afSMartin MatuskaIssued when there was a checksum verify error after a Direct I/O write has been
1067a7741afSMartin Matuskaissued.
1077a7741afSMartin MatuskaThis event can only take place if the module parameter
1087a7741afSMartin Matuska.Sy zfs_vdev_direct_write_verify
1097a7741afSMartin Matuskais not set to zero.
1107a7741afSMartin MatuskaSee
1117a7741afSMartin Matuska.Xr zfs 4
1127a7741afSMartin Matuskafor more details on the
1137a7741afSMartin Matuska.Sy zfs_vdev_direct_write_verify
1147a7741afSMartin Matuskamodule paramter.
1153ff01b23SMartin Matuska.It Sy config
1163ff01b23SMartin MatuskaIssued every time a vdev change have been done to the pool.
1173ff01b23SMartin Matuska.It Sy zpool
1183ff01b23SMartin MatuskaIssued when a pool cannot be imported.
1193ff01b23SMartin Matuska.It Sy zpool.destroy
1203ff01b23SMartin MatuskaIssued when a pool is destroyed.
1213ff01b23SMartin Matuska.It Sy zpool.export
1223ff01b23SMartin MatuskaIssued when a pool is exported.
1233ff01b23SMartin Matuska.It Sy zpool.import
1243ff01b23SMartin MatuskaIssued when a pool is imported.
1253ff01b23SMartin Matuska.It Sy zpool.reguid
126bb2d13b6SMartin MatuskaIssued when a REGUID (new unique identifier for the pool have been regenerated)
127bb2d13b6SMartin Matuskahave been detected.
1283ff01b23SMartin Matuska.It Sy vdev.unknown
1293ff01b23SMartin MatuskaIssued when the vdev is unknown.
1303ff01b23SMartin MatuskaSuch as trying to clear device errors on a vdev that have failed/been kicked
1313ff01b23SMartin Matuskafrom the system/pool and is no longer available.
1323ff01b23SMartin Matuska.It Sy vdev.open_failed
1333ff01b23SMartin MatuskaIssued when a vdev could not be opened (because it didn't exist for example).
1343ff01b23SMartin Matuska.It Sy vdev.corrupt_data
1353ff01b23SMartin MatuskaIssued when corrupt data have been detected on a vdev.
1363ff01b23SMartin Matuska.It Sy vdev.no_replicas
1373ff01b23SMartin MatuskaIssued when there are no more replicas to sustain the pool.
1383ff01b23SMartin MatuskaThis would lead to the pool being
1393ff01b23SMartin Matuska.Em DEGRADED .
1403ff01b23SMartin Matuska.It Sy vdev.bad_guid_sum
1413ff01b23SMartin MatuskaIssued when a missing device in the pool have been detected.
1423ff01b23SMartin Matuska.It Sy vdev.too_small
1433ff01b23SMartin MatuskaIssued when the system (kernel) have removed a device, and ZFS
1443ff01b23SMartin Matuskanotices that the device isn't there any more.
1453ff01b23SMartin MatuskaThis is usually followed by a
1463ff01b23SMartin Matuska.Sy probe_failure
1473ff01b23SMartin Matuskaevent.
1483ff01b23SMartin Matuska.It Sy vdev.bad_label
1493ff01b23SMartin MatuskaIssued when the label is OK but invalid.
1503ff01b23SMartin Matuska.It Sy vdev.bad_ashift
1513ff01b23SMartin MatuskaIssued when the ashift alignment requirement has increased.
1523ff01b23SMartin Matuska.It Sy vdev.remove
1533ff01b23SMartin MatuskaIssued when a vdev is detached from a mirror (or a spare detached from a
1543ff01b23SMartin Matuskavdev where it have been used to replace a failed drive - only works if
155e92ffd9bSMartin Matuskathe original drive have been re-added).
1563ff01b23SMartin Matuska.It Sy vdev.clear
1573ff01b23SMartin MatuskaIssued when clearing device errors in a pool.
1583ff01b23SMartin MatuskaSuch as running
1593ff01b23SMartin Matuska.Nm zpool Cm clear
1603ff01b23SMartin Matuskaon a device in the pool.
1613ff01b23SMartin Matuska.It Sy vdev.check
1623ff01b23SMartin MatuskaIssued when a check to see if a given vdev could be opened is started.
1633ff01b23SMartin Matuska.It Sy vdev.spare
1643ff01b23SMartin MatuskaIssued when a spare have kicked in to replace a failed device.
1653ff01b23SMartin Matuska.It Sy vdev.autoexpand
1663ff01b23SMartin MatuskaIssued when a vdev can be automatically expanded.
1673ff01b23SMartin Matuska.It Sy io_failure
1683ff01b23SMartin MatuskaIssued when there is an I/O failure in a vdev in the pool.
1693ff01b23SMartin Matuska.It Sy probe_failure
1703ff01b23SMartin MatuskaIssued when a probe fails on a vdev.
1713ff01b23SMartin MatuskaThis would occur if a vdev
1723ff01b23SMartin Matuskahave been kicked from the system outside of ZFS (such as the kernel
1733ff01b23SMartin Matuskahave removed the device).
1743ff01b23SMartin Matuska.It Sy log_replay
1753ff01b23SMartin MatuskaIssued when the intent log cannot be replayed.
1763ff01b23SMartin MatuskaThe can occur in the case of a missing or damaged log device.
1773ff01b23SMartin Matuska.It Sy resilver.start
1783ff01b23SMartin MatuskaIssued when a resilver is started.
1793ff01b23SMartin Matuska.It Sy resilver.finish
1803ff01b23SMartin MatuskaIssued when the running resilver have finished.
1813ff01b23SMartin Matuska.It Sy scrub.start
1823ff01b23SMartin MatuskaIssued when a scrub is started on a pool.
1833ff01b23SMartin Matuska.It Sy scrub.finish
1843ff01b23SMartin MatuskaIssued when a pool has finished scrubbing.
1853ff01b23SMartin Matuska.It Sy scrub.abort
1863ff01b23SMartin MatuskaIssued when a scrub is aborted on a pool.
1873ff01b23SMartin Matuska.It Sy scrub.resume
1883ff01b23SMartin MatuskaIssued when a scrub is resumed on a pool.
1893ff01b23SMartin Matuska.It Sy scrub.paused
1903ff01b23SMartin MatuskaIssued when a scrub is paused on a pool.
1913ff01b23SMartin Matuska.It Sy bootfs.vdev.attach
1923ff01b23SMartin Matuska.El
1933ff01b23SMartin Matuska.
1943ff01b23SMartin Matuska.Sh PAYLOADS
1953ff01b23SMartin MatuskaThis is the payload (data, information) that accompanies an
1963ff01b23SMartin Matuskaevent.
1973ff01b23SMartin Matuska.Pp
1983ff01b23SMartin MatuskaFor
1993ff01b23SMartin Matuska.Xr zed 8 ,
2003ff01b23SMartin Matuskathese are set to uppercase and prefixed with
2013ff01b23SMartin Matuska.Sy ZEVENT_ .
2023ff01b23SMartin Matuska.Pp
2033ff01b23SMartin Matuska.Bl -tag -compact -width "vdev_cksum_errors"
2043ff01b23SMartin Matuska.It Sy pool
2053ff01b23SMartin MatuskaPool name.
2063ff01b23SMartin Matuska.It Sy pool_failmode
2073ff01b23SMartin MatuskaFailmode -
2083ff01b23SMartin Matuska.Sy wait ,
2093ff01b23SMartin Matuska.Sy continue ,
2103ff01b23SMartin Matuskaor
2113ff01b23SMartin Matuska.Sy panic .
2123ff01b23SMartin MatuskaSee the
2133ff01b23SMartin Matuska.Sy failmode
2143ff01b23SMartin Matuskaproperty in
2153ff01b23SMartin Matuska.Xr zpoolprops 7
2163ff01b23SMartin Matuskafor more information.
2173ff01b23SMartin Matuska.It Sy pool_guid
2183ff01b23SMartin MatuskaThe GUID of the pool.
2193ff01b23SMartin Matuska.It Sy pool_context
2203ff01b23SMartin MatuskaThe load state for the pool (0=none, 1=open, 2=import, 3=tryimport, 4=recover
2213ff01b23SMartin Matuska5=error).
2223ff01b23SMartin Matuska.It Sy vdev_guid
2233ff01b23SMartin MatuskaThe GUID of the vdev in question (the vdev failing or operated upon with
2243ff01b23SMartin Matuska.Nm zpool Cm clear ,
2253ff01b23SMartin Matuskaetc.).
2263ff01b23SMartin Matuska.It Sy vdev_type
2273ff01b23SMartin MatuskaType of vdev -
2283ff01b23SMartin Matuska.Sy disk ,
2293ff01b23SMartin Matuska.Sy file ,
2303ff01b23SMartin Matuska.Sy mirror ,
2313ff01b23SMartin Matuskaetc.
2323ff01b23SMartin MatuskaSee the
2333ff01b23SMartin Matuska.Sy Virtual Devices
2343ff01b23SMartin Matuskasection of
2353ff01b23SMartin Matuska.Xr zpoolconcepts 7
2363ff01b23SMartin Matuskafor more information on possible values.
2373ff01b23SMartin Matuska.It Sy vdev_path
2383ff01b23SMartin MatuskaFull path of the vdev, including any
2393ff01b23SMartin Matuska.Em -partX .
2403ff01b23SMartin Matuska.It Sy vdev_devid
2413ff01b23SMartin MatuskaID of vdev (if any).
2423ff01b23SMartin Matuska.It Sy vdev_fru
2433ff01b23SMartin MatuskaPhysical FRU location.
2443ff01b23SMartin Matuska.It Sy vdev_state
245bb2d13b6SMartin MatuskaState of vdev (0=uninitialized, 1=closed, 2=offline, 3=removed, 4=failed to
246bb2d13b6SMartin Matuskaopen, 5=faulted, 6=degraded, 7=healthy).
2473ff01b23SMartin Matuska.It Sy vdev_ashift
2483ff01b23SMartin MatuskaThe ashift value of the vdev.
2493ff01b23SMartin Matuska.It Sy vdev_complete_ts
2503ff01b23SMartin MatuskaThe time the last I/O request completed for the specified vdev.
2513ff01b23SMartin Matuska.It Sy vdev_delta_ts
2523ff01b23SMartin MatuskaThe time since the last I/O request completed for the specified vdev.
2533ff01b23SMartin Matuska.It Sy vdev_spare_paths
2543ff01b23SMartin MatuskaList of spares, including full path and any
2553ff01b23SMartin Matuska.Em -partX .
2563ff01b23SMartin Matuska.It Sy vdev_spare_guids
2573ff01b23SMartin MatuskaGUID(s) of spares.
2583ff01b23SMartin Matuska.It Sy vdev_read_errors
2593ff01b23SMartin MatuskaHow many read errors that have been detected on the vdev.
2603ff01b23SMartin Matuska.It Sy vdev_write_errors
2613ff01b23SMartin MatuskaHow many write errors that have been detected on the vdev.
2623ff01b23SMartin Matuska.It Sy vdev_cksum_errors
2633ff01b23SMartin MatuskaHow many checksum errors that have been detected on the vdev.
2643ff01b23SMartin Matuska.It Sy parent_guid
2653ff01b23SMartin MatuskaGUID of the vdev parent.
2663ff01b23SMartin Matuska.It Sy parent_type
2673ff01b23SMartin MatuskaType of parent.
2683ff01b23SMartin MatuskaSee
2693ff01b23SMartin Matuska.Sy vdev_type .
2703ff01b23SMartin Matuska.It Sy parent_path
2713ff01b23SMartin MatuskaPath of the vdev parent (if any).
2723ff01b23SMartin Matuska.It Sy parent_devid
2733ff01b23SMartin MatuskaID of the vdev parent (if any).
2743ff01b23SMartin Matuska.It Sy zio_objset
2753ff01b23SMartin MatuskaThe object set number for a given I/O request.
2763ff01b23SMartin Matuska.It Sy zio_object
2773ff01b23SMartin MatuskaThe object number for a given I/O request.
2783ff01b23SMartin Matuska.It Sy zio_level
2793ff01b23SMartin MatuskaThe indirect level for the block.
2803ff01b23SMartin MatuskaLevel 0 is the lowest level and includes data blocks.
2813ff01b23SMartin MatuskaValues > 0 indicate metadata blocks at the appropriate level.
2823ff01b23SMartin Matuska.It Sy zio_blkid
2833ff01b23SMartin MatuskaThe block ID for a given I/O request.
2843ff01b23SMartin Matuska.It Sy zio_err
2853ff01b23SMartin MatuskaThe error number for a failure when handling a given I/O request,
2863ff01b23SMartin Matuskacompatible with
2873ff01b23SMartin Matuska.Xr errno 3
2883ff01b23SMartin Matuskawith the value of
2893ff01b23SMartin Matuska.Sy EBADE
2903ff01b23SMartin Matuskaused to indicate a ZFS checksum error.
2913ff01b23SMartin Matuska.It Sy zio_offset
2923ff01b23SMartin MatuskaThe offset in bytes of where to write the I/O request for the specified vdev.
2933ff01b23SMartin Matuska.It Sy zio_size
2943ff01b23SMartin MatuskaThe size in bytes of the I/O request.
2953ff01b23SMartin Matuska.It Sy zio_flags
2963ff01b23SMartin MatuskaThe current flags describing how the I/O request should be handled.
2973ff01b23SMartin MatuskaSee the
2983ff01b23SMartin Matuska.Sy I/O FLAGS
2993ff01b23SMartin Matuskasection for the full list of I/O flags.
3003ff01b23SMartin Matuska.It Sy zio_stage
3013ff01b23SMartin MatuskaThe current stage of the I/O in the pipeline.
3023ff01b23SMartin MatuskaSee the
3033ff01b23SMartin Matuska.Sy I/O STAGES
3043ff01b23SMartin Matuskasection for a full list of all the I/O stages.
3053ff01b23SMartin Matuska.It Sy zio_pipeline
3063ff01b23SMartin MatuskaThe valid pipeline stages for the I/O.
3073ff01b23SMartin MatuskaSee the
3083ff01b23SMartin Matuska.Sy I/O STAGES
3093ff01b23SMartin Matuskasection for a full list of all the I/O stages.
3103ff01b23SMartin Matuska.It Sy zio_delay
3113ff01b23SMartin MatuskaThe time elapsed (in nanoseconds) waiting for the block layer to complete the
3123ff01b23SMartin MatuskaI/O request.
3133ff01b23SMartin MatuskaUnlike
3143ff01b23SMartin Matuska.Sy zio_delta ,
3153ff01b23SMartin Matuskathis does not include any vdev queuing time and is
3163ff01b23SMartin Matuskatherefore solely a measure of the block layer performance.
3173ff01b23SMartin Matuska.It Sy zio_timestamp
3183ff01b23SMartin MatuskaThe time when a given I/O request was submitted.
3193ff01b23SMartin Matuska.It Sy zio_delta
3203ff01b23SMartin MatuskaThe time required to service a given I/O request.
3213ff01b23SMartin Matuska.It Sy prev_state
3223ff01b23SMartin MatuskaThe previous state of the vdev.
3233ff01b23SMartin Matuska.It Sy cksum_algorithm
3243ff01b23SMartin MatuskaChecksum algorithm used.
3253ff01b23SMartin MatuskaSee
3263ff01b23SMartin Matuska.Xr zfsprops 7
3273ff01b23SMartin Matuskafor more information on the available checksum algorithms.
3283ff01b23SMartin Matuska.It Sy cksum_byteswap
3293ff01b23SMartin MatuskaWhether or not the data is byteswapped.
3303ff01b23SMartin Matuska.It Sy bad_ranges
3313ff01b23SMartin Matuska.No [\& Ns Ar start , end )
3323ff01b23SMartin Matuskapairs of corruption offsets.
3333ff01b23SMartin MatuskaOffsets are always aligned on a 64-bit boundary,
3343ff01b23SMartin Matuskaand can include some gaps of non-corruption.
3353ff01b23SMartin Matuska(See
3363ff01b23SMartin Matuska.Sy bad_ranges_min_gap )
3373ff01b23SMartin Matuska.It Sy bad_ranges_min_gap
3383ff01b23SMartin MatuskaIn order to bound the size of the
3393ff01b23SMartin Matuska.Sy bad_ranges
3403ff01b23SMartin Matuskaarray, gaps of non-corruption
3413ff01b23SMartin Matuskaless than or equal to
3423ff01b23SMartin Matuska.Sy bad_ranges_min_gap
3433ff01b23SMartin Matuskabytes have been merged with
3443ff01b23SMartin Matuskaadjacent corruption.
3453ff01b23SMartin MatuskaAlways at least 8 bytes, since corruption is detected on a 64-bit word basis.
3463ff01b23SMartin Matuska.It Sy bad_range_sets
3473ff01b23SMartin MatuskaThis array has one element per range in
3483ff01b23SMartin Matuska.Sy bad_ranges .
3493ff01b23SMartin MatuskaEach element contains
3503ff01b23SMartin Matuskathe count of bits in that range which were clear in the good data and set
3513ff01b23SMartin Matuskain the bad data.
3523ff01b23SMartin Matuska.It Sy bad_range_clears
3533ff01b23SMartin MatuskaThis array has one element per range in
3543ff01b23SMartin Matuska.Sy bad_ranges .
3553ff01b23SMartin MatuskaEach element contains
3563ff01b23SMartin Matuskathe count of bits for that range which were set in the good data and clear in
3573ff01b23SMartin Matuskathe bad data.
3583ff01b23SMartin Matuska.It Sy bad_set_bits
3593ff01b23SMartin MatuskaIf this field exists, it is an array of
3603ff01b23SMartin Matuska.Pq Ar bad data No & ~( Ns Ar good data ) ;
3613ff01b23SMartin Matuskathat is, the bits set in the bad data which are cleared in the good data.
3623ff01b23SMartin MatuskaEach element corresponds a byte whose offset is in a range in
3633ff01b23SMartin Matuska.Sy bad_ranges ,
3643ff01b23SMartin Matuskaand the array is ordered by offset.
3653ff01b23SMartin MatuskaThus, the first element is the first byte in the first
3663ff01b23SMartin Matuska.Sy bad_ranges
3673ff01b23SMartin Matuskarange, and the last element is the last byte in the last
3683ff01b23SMartin Matuska.Sy bad_ranges
3693ff01b23SMartin Matuskarange.
3703ff01b23SMartin Matuska.It Sy bad_cleared_bits
3713ff01b23SMartin MatuskaLike
3723ff01b23SMartin Matuska.Sy bad_set_bits ,
3733ff01b23SMartin Matuskabut contains
3743ff01b23SMartin Matuska.Pq Ar good data No & ~( Ns Ar bad data ) ;
3753ff01b23SMartin Matuskathat is, the bits set in the good data which are cleared in the bad data.
3763ff01b23SMartin Matuska.El
3773ff01b23SMartin Matuska.
3783ff01b23SMartin Matuska.Sh I/O STAGES
3793ff01b23SMartin MatuskaThe ZFS I/O pipeline is comprised of various stages which are defined below.
3803ff01b23SMartin MatuskaThe individual stages are used to construct these basic I/O
3811719886fSMartin Matuskaoperations: Read, Write, Free, Claim, Flush and Trim.
3823ff01b23SMartin MatuskaThese stages may be
3833ff01b23SMartin Matuskaset on an event to describe the life cycle of a given I/O request.
3843ff01b23SMartin Matuska.Pp
3853ff01b23SMartin Matuska.TS
3863ff01b23SMartin Matuskatab(:);
3873ff01b23SMartin Matuskal l l .
3883ff01b23SMartin MatuskaStage:Bit Mask:Operations
3893ff01b23SMartin Matuska_:_:_
3901719886fSMartin MatuskaZIO_STAGE_OPEN:0x00000001:RWFCXT
3913ff01b23SMartin Matuska
392783d3ff6SMartin MatuskaZIO_STAGE_READ_BP_INIT:0x00000002:R-----
393783d3ff6SMartin MatuskaZIO_STAGE_WRITE_BP_INIT:0x00000004:-W----
394783d3ff6SMartin MatuskaZIO_STAGE_FREE_BP_INIT:0x00000008:--F---
395783d3ff6SMartin MatuskaZIO_STAGE_ISSUE_ASYNC:0x00000010:-WF--T
396783d3ff6SMartin MatuskaZIO_STAGE_WRITE_COMPRESS:0x00000020:-W----
3973ff01b23SMartin Matuska
398783d3ff6SMartin MatuskaZIO_STAGE_ENCRYPT:0x00000040:-W----
399783d3ff6SMartin MatuskaZIO_STAGE_CHECKSUM_GENERATE:0x00000080:-W----
4003ff01b23SMartin Matuska
401783d3ff6SMartin MatuskaZIO_STAGE_NOP_WRITE:0x00000100:-W----
4023ff01b23SMartin Matuska
403783d3ff6SMartin MatuskaZIO_STAGE_BRT_FREE:0x00000200:--F---
4043ff01b23SMartin Matuska
405783d3ff6SMartin MatuskaZIO_STAGE_DDT_READ_START:0x00000400:R-----
406783d3ff6SMartin MatuskaZIO_STAGE_DDT_READ_DONE:0x00000800:R-----
407783d3ff6SMartin MatuskaZIO_STAGE_DDT_WRITE:0x00001000:-W----
408783d3ff6SMartin MatuskaZIO_STAGE_DDT_FREE:0x00002000:--F---
4093ff01b23SMartin Matuska
410783d3ff6SMartin MatuskaZIO_STAGE_GANG_ASSEMBLE:0x00004000:RWFC--
411783d3ff6SMartin MatuskaZIO_STAGE_GANG_ISSUE:0x00008000:RWFC--
4123ff01b23SMartin Matuska
413783d3ff6SMartin MatuskaZIO_STAGE_DVA_THROTTLE:0x00010000:-W----
414783d3ff6SMartin MatuskaZIO_STAGE_DVA_ALLOCATE:0x00020000:-W----
415783d3ff6SMartin MatuskaZIO_STAGE_DVA_FREE:0x00040000:--F---
416783d3ff6SMartin MatuskaZIO_STAGE_DVA_CLAIM:0x00080000:---C--
4173ff01b23SMartin Matuska
418783d3ff6SMartin MatuskaZIO_STAGE_READY:0x00100000:RWFCIT
4193ff01b23SMartin Matuska
4201719886fSMartin MatuskaZIO_STAGE_VDEV_IO_START:0x00200000:RW--XT
4211719886fSMartin MatuskaZIO_STAGE_VDEV_IO_DONE:0x00400000:RW--XT
4221719886fSMartin MatuskaZIO_STAGE_VDEV_IO_ASSESS:0x00800000:RW--XT
4233ff01b23SMartin Matuska
424783d3ff6SMartin MatuskaZIO_STAGE_CHECKSUM_VERIFY:0x01000000:R-----
4257a7741afSMartin MatuskaZIO_STAGE_DIO_CHECKSUM_VERIFY:0x02000000:-W----
4262a58b312SMartin Matuska
4277a7741afSMartin MatuskaZIO_STAGE_DONE:0x04000000:RWFCXT
4283ff01b23SMartin Matuska.TE
4293ff01b23SMartin Matuska.
4303ff01b23SMartin Matuska.Sh I/O FLAGS
4313ff01b23SMartin MatuskaEvery I/O request in the pipeline contains a set of flags which describe its
4323ff01b23SMartin Matuskafunction and are used to govern its behavior.
4333ff01b23SMartin MatuskaThese flags will be set in an event as a
4343ff01b23SMartin Matuska.Sy zio_flags
4353ff01b23SMartin Matuskapayload entry.
4363ff01b23SMartin Matuska.Pp
4373ff01b23SMartin Matuska.TS
4383ff01b23SMartin Matuskatab(:);
4393ff01b23SMartin Matuskal l .
4403ff01b23SMartin MatuskaFlag:Bit Mask
4413ff01b23SMartin Matuska_:_
4423ff01b23SMartin MatuskaZIO_FLAG_DONT_AGGREGATE:0x00000001
4433ff01b23SMartin MatuskaZIO_FLAG_IO_REPAIR:0x00000002
4443ff01b23SMartin MatuskaZIO_FLAG_SELF_HEAL:0x00000004
4453ff01b23SMartin MatuskaZIO_FLAG_RESILVER:0x00000008
4463ff01b23SMartin MatuskaZIO_FLAG_SCRUB:0x00000010
4473ff01b23SMartin MatuskaZIO_FLAG_SCAN_THREAD:0x00000020
4483ff01b23SMartin MatuskaZIO_FLAG_PHYSICAL:0x00000040
4493ff01b23SMartin Matuska
4503ff01b23SMartin MatuskaZIO_FLAG_CANFAIL:0x00000080
4513ff01b23SMartin MatuskaZIO_FLAG_SPECULATIVE:0x00000100
4523ff01b23SMartin MatuskaZIO_FLAG_CONFIG_WRITER:0x00000200
4533ff01b23SMartin MatuskaZIO_FLAG_DONT_RETRY:0x00000400
4543ff01b23SMartin MatuskaZIO_FLAG_NODATA:0x00001000
4553ff01b23SMartin MatuskaZIO_FLAG_INDUCE_DAMAGE:0x00002000
4563ff01b23SMartin Matuska
4573ff01b23SMartin MatuskaZIO_FLAG_IO_ALLOCATING:0x00004000
4583ff01b23SMartin MatuskaZIO_FLAG_IO_RETRY:0x00008000
4593ff01b23SMartin MatuskaZIO_FLAG_PROBE:0x00010000
4603ff01b23SMartin MatuskaZIO_FLAG_TRYHARD:0x00020000
4613ff01b23SMartin MatuskaZIO_FLAG_OPTIONAL:0x00040000
4623ff01b23SMartin Matuska
4633ff01b23SMartin MatuskaZIO_FLAG_DONT_QUEUE:0x00080000
4643ff01b23SMartin MatuskaZIO_FLAG_DONT_PROPAGATE:0x00100000
4653ff01b23SMartin MatuskaZIO_FLAG_IO_BYPASS:0x00200000
4663ff01b23SMartin MatuskaZIO_FLAG_IO_REWRITE:0x00400000
4673ff01b23SMartin MatuskaZIO_FLAG_RAW_COMPRESS:0x00800000
4683ff01b23SMartin MatuskaZIO_FLAG_RAW_ENCRYPT:0x01000000
4693ff01b23SMartin Matuska
4703ff01b23SMartin MatuskaZIO_FLAG_GANG_CHILD:0x02000000
4713ff01b23SMartin MatuskaZIO_FLAG_DDT_CHILD:0x04000000
4723ff01b23SMartin MatuskaZIO_FLAG_GODFATHER:0x08000000
4733ff01b23SMartin MatuskaZIO_FLAG_NOPWRITE:0x10000000
4743ff01b23SMartin MatuskaZIO_FLAG_REEXECUTED:0x20000000
4753ff01b23SMartin MatuskaZIO_FLAG_DELEGATED:0x40000000
4763ff01b23SMartin MatuskaZIO_FLAG_FASTWRITE:0x80000000
4773ff01b23SMartin Matuska.TE
4783ff01b23SMartin Matuska.
479eda14cbcSMatt Macy.Sh SEE ALSO
4803ff01b23SMartin Matuska.Xr zfs 4 ,
48116038816SMartin Matuska.Xr zed 8 ,
48216038816SMartin Matuska.Xr zpool-wait 8
483