xref: /freebsd/sys/contrib/openzfs/man/man8/zpool-events.8 (revision 2a58b312b62f908ec92311d1bd8536dbaeb8e55b)
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.
28eda14cbcSMatt Macy.\"
2916038816SMartin Matuska.Dd May 27, 2021
30eda14cbcSMatt Macy.Dt ZPOOL-EVENTS 8
31eda14cbcSMatt Macy.Os
3216038816SMartin Matuska.
33eda14cbcSMatt Macy.Sh NAME
347877fdebSMatt Macy.Nm zpool-events
3516038816SMartin Matuska.Nd list recent events generated by kernel
36eda14cbcSMatt Macy.Sh SYNOPSIS
377877fdebSMatt Macy.Nm zpool
38eda14cbcSMatt Macy.Cm events
3916038816SMartin Matuska.Op Fl vHf
4016038816SMartin Matuska.Op Ar pool
417877fdebSMatt Macy.Nm zpool
42eda14cbcSMatt Macy.Cm events
4316038816SMartin Matuska.Fl c
4416038816SMartin Matuska.
4516038816SMartin Matuska.Sh DESCRIPTION
4616038816SMartin MatuskaLists all recent events generated by the ZFS kernel modules.
4716038816SMartin MatuskaThese events are consumed by the
48eda14cbcSMatt Macy.Xr zed 8
49eda14cbcSMatt Macyand used to automate administrative tasks such as replacing a failed device
5016038816SMartin Matuskawith a hot spare.
5116038816SMartin MatuskaFor more information about the subclasses and event payloads
523ff01b23SMartin Matuskathat can be generated see
533ff01b23SMartin Matuska.Sx EVENTS
543ff01b23SMartin Matuskaand the following sections.
553ff01b23SMartin Matuska.
563ff01b23SMartin Matuska.Sh OPTIONS
5716038816SMartin Matuska.Bl -tag -compact -width Ds
58eda14cbcSMatt Macy.It Fl c
59eda14cbcSMatt MacyClear all previous events.
60eda14cbcSMatt Macy.It Fl f
61eda14cbcSMatt MacyFollow mode.
62eda14cbcSMatt Macy.It Fl H
6316038816SMartin MatuskaScripted mode.
6416038816SMartin MatuskaDo not display headers, and separate fields by a
65eda14cbcSMatt Macysingle tab instead of arbitrary space.
66eda14cbcSMatt Macy.It Fl v
67eda14cbcSMatt MacyPrint the entire payload for each event.
68eda14cbcSMatt Macy.El
6916038816SMartin Matuska.
703ff01b23SMartin Matuska.Sh EVENTS
71e92ffd9bSMartin MatuskaThese are the different event subclasses.
723ff01b23SMartin MatuskaThe full event name would be
733ff01b23SMartin Matuska.Sy ereport.fs.zfs.\& Ns Em SUBCLASS ,
743ff01b23SMartin Matuskabut only the last part is listed here.
753ff01b23SMartin Matuska.Pp
763ff01b23SMartin Matuska.Bl -tag -compact -width "vdev.bad_guid_sum"
773ff01b23SMartin Matuska.It Sy checksum
783ff01b23SMartin MatuskaIssued when a checksum error has been detected.
793ff01b23SMartin Matuska.It Sy io
803ff01b23SMartin MatuskaIssued when there is an I/O error in a vdev in the pool.
813ff01b23SMartin Matuska.It Sy data
823ff01b23SMartin MatuskaIssued when there have been data errors in the pool.
833ff01b23SMartin Matuska.It Sy deadman
843ff01b23SMartin MatuskaIssued when an I/O request is determined to be "hung", this can be caused
853ff01b23SMartin Matuskaby lost completion events due to flaky hardware or drivers.
863ff01b23SMartin MatuskaSee
873ff01b23SMartin Matuska.Sy zfs_deadman_failmode
883ff01b23SMartin Matuskain
893ff01b23SMartin Matuska.Xr zfs 4
903ff01b23SMartin Matuskafor additional information regarding "hung" I/O detection and configuration.
913ff01b23SMartin Matuska.It Sy delay
923ff01b23SMartin MatuskaIssued when a completed I/O request exceeds the maximum allowed time
933ff01b23SMartin Matuskaspecified by the
943ff01b23SMartin Matuska.Sy zio_slow_io_ms
953ff01b23SMartin Matuskamodule parameter.
963ff01b23SMartin MatuskaThis can be an indicator of problems with the underlying storage device.
973ff01b23SMartin MatuskaThe number of delay events is ratelimited by the
983ff01b23SMartin Matuska.Sy zfs_slow_io_events_per_second
993ff01b23SMartin Matuskamodule parameter.
1003ff01b23SMartin Matuska.It Sy config
1013ff01b23SMartin MatuskaIssued every time a vdev change have been done to the pool.
1023ff01b23SMartin Matuska.It Sy zpool
1033ff01b23SMartin MatuskaIssued when a pool cannot be imported.
1043ff01b23SMartin Matuska.It Sy zpool.destroy
1053ff01b23SMartin MatuskaIssued when a pool is destroyed.
1063ff01b23SMartin Matuska.It Sy zpool.export
1073ff01b23SMartin MatuskaIssued when a pool is exported.
1083ff01b23SMartin Matuska.It Sy zpool.import
1093ff01b23SMartin MatuskaIssued when a pool is imported.
1103ff01b23SMartin Matuska.It Sy zpool.reguid
111bb2d13b6SMartin MatuskaIssued when a REGUID (new unique identifier for the pool have been regenerated)
112bb2d13b6SMartin Matuskahave been detected.
1133ff01b23SMartin Matuska.It Sy vdev.unknown
1143ff01b23SMartin MatuskaIssued when the vdev is unknown.
1153ff01b23SMartin MatuskaSuch as trying to clear device errors on a vdev that have failed/been kicked
1163ff01b23SMartin Matuskafrom the system/pool and is no longer available.
1173ff01b23SMartin Matuska.It Sy vdev.open_failed
1183ff01b23SMartin MatuskaIssued when a vdev could not be opened (because it didn't exist for example).
1193ff01b23SMartin Matuska.It Sy vdev.corrupt_data
1203ff01b23SMartin MatuskaIssued when corrupt data have been detected on a vdev.
1213ff01b23SMartin Matuska.It Sy vdev.no_replicas
1223ff01b23SMartin MatuskaIssued when there are no more replicas to sustain the pool.
1233ff01b23SMartin MatuskaThis would lead to the pool being
1243ff01b23SMartin Matuska.Em DEGRADED .
1253ff01b23SMartin Matuska.It Sy vdev.bad_guid_sum
1263ff01b23SMartin MatuskaIssued when a missing device in the pool have been detected.
1273ff01b23SMartin Matuska.It Sy vdev.too_small
1283ff01b23SMartin MatuskaIssued when the system (kernel) have removed a device, and ZFS
1293ff01b23SMartin Matuskanotices that the device isn't there any more.
1303ff01b23SMartin MatuskaThis is usually followed by a
1313ff01b23SMartin Matuska.Sy probe_failure
1323ff01b23SMartin Matuskaevent.
1333ff01b23SMartin Matuska.It Sy vdev.bad_label
1343ff01b23SMartin MatuskaIssued when the label is OK but invalid.
1353ff01b23SMartin Matuska.It Sy vdev.bad_ashift
1363ff01b23SMartin MatuskaIssued when the ashift alignment requirement has increased.
1373ff01b23SMartin Matuska.It Sy vdev.remove
1383ff01b23SMartin MatuskaIssued when a vdev is detached from a mirror (or a spare detached from a
1393ff01b23SMartin Matuskavdev where it have been used to replace a failed drive - only works if
140e92ffd9bSMartin Matuskathe original drive have been re-added).
1413ff01b23SMartin Matuska.It Sy vdev.clear
1423ff01b23SMartin MatuskaIssued when clearing device errors in a pool.
1433ff01b23SMartin MatuskaSuch as running
1443ff01b23SMartin Matuska.Nm zpool Cm clear
1453ff01b23SMartin Matuskaon a device in the pool.
1463ff01b23SMartin Matuska.It Sy vdev.check
1473ff01b23SMartin MatuskaIssued when a check to see if a given vdev could be opened is started.
1483ff01b23SMartin Matuska.It Sy vdev.spare
1493ff01b23SMartin MatuskaIssued when a spare have kicked in to replace a failed device.
1503ff01b23SMartin Matuska.It Sy vdev.autoexpand
1513ff01b23SMartin MatuskaIssued when a vdev can be automatically expanded.
1523ff01b23SMartin Matuska.It Sy io_failure
1533ff01b23SMartin MatuskaIssued when there is an I/O failure in a vdev in the pool.
1543ff01b23SMartin Matuska.It Sy probe_failure
1553ff01b23SMartin MatuskaIssued when a probe fails on a vdev.
1563ff01b23SMartin MatuskaThis would occur if a vdev
1573ff01b23SMartin Matuskahave been kicked from the system outside of ZFS (such as the kernel
1583ff01b23SMartin Matuskahave removed the device).
1593ff01b23SMartin Matuska.It Sy log_replay
1603ff01b23SMartin MatuskaIssued when the intent log cannot be replayed.
1613ff01b23SMartin MatuskaThe can occur in the case of a missing or damaged log device.
1623ff01b23SMartin Matuska.It Sy resilver.start
1633ff01b23SMartin MatuskaIssued when a resilver is started.
1643ff01b23SMartin Matuska.It Sy resilver.finish
1653ff01b23SMartin MatuskaIssued when the running resilver have finished.
1663ff01b23SMartin Matuska.It Sy scrub.start
1673ff01b23SMartin MatuskaIssued when a scrub is started on a pool.
1683ff01b23SMartin Matuska.It Sy scrub.finish
1693ff01b23SMartin MatuskaIssued when a pool has finished scrubbing.
1703ff01b23SMartin Matuska.It Sy scrub.abort
1713ff01b23SMartin MatuskaIssued when a scrub is aborted on a pool.
1723ff01b23SMartin Matuska.It Sy scrub.resume
1733ff01b23SMartin MatuskaIssued when a scrub is resumed on a pool.
1743ff01b23SMartin Matuska.It Sy scrub.paused
1753ff01b23SMartin MatuskaIssued when a scrub is paused on a pool.
1763ff01b23SMartin Matuska.It Sy bootfs.vdev.attach
1773ff01b23SMartin Matuska.El
1783ff01b23SMartin Matuska.
1793ff01b23SMartin Matuska.Sh PAYLOADS
1803ff01b23SMartin MatuskaThis is the payload (data, information) that accompanies an
1813ff01b23SMartin Matuskaevent.
1823ff01b23SMartin Matuska.Pp
1833ff01b23SMartin MatuskaFor
1843ff01b23SMartin Matuska.Xr zed 8 ,
1853ff01b23SMartin Matuskathese are set to uppercase and prefixed with
1863ff01b23SMartin Matuska.Sy ZEVENT_ .
1873ff01b23SMartin Matuska.Pp
1883ff01b23SMartin Matuska.Bl -tag -compact -width "vdev_cksum_errors"
1893ff01b23SMartin Matuska.It Sy pool
1903ff01b23SMartin MatuskaPool name.
1913ff01b23SMartin Matuska.It Sy pool_failmode
1923ff01b23SMartin MatuskaFailmode -
1933ff01b23SMartin Matuska.Sy wait ,
1943ff01b23SMartin Matuska.Sy continue ,
1953ff01b23SMartin Matuskaor
1963ff01b23SMartin Matuska.Sy panic .
1973ff01b23SMartin MatuskaSee the
1983ff01b23SMartin Matuska.Sy failmode
1993ff01b23SMartin Matuskaproperty in
2003ff01b23SMartin Matuska.Xr zpoolprops 7
2013ff01b23SMartin Matuskafor more information.
2023ff01b23SMartin Matuska.It Sy pool_guid
2033ff01b23SMartin MatuskaThe GUID of the pool.
2043ff01b23SMartin Matuska.It Sy pool_context
2053ff01b23SMartin MatuskaThe load state for the pool (0=none, 1=open, 2=import, 3=tryimport, 4=recover
2063ff01b23SMartin Matuska5=error).
2073ff01b23SMartin Matuska.It Sy vdev_guid
2083ff01b23SMartin MatuskaThe GUID of the vdev in question (the vdev failing or operated upon with
2093ff01b23SMartin Matuska.Nm zpool Cm clear ,
2103ff01b23SMartin Matuskaetc.).
2113ff01b23SMartin Matuska.It Sy vdev_type
2123ff01b23SMartin MatuskaType of vdev -
2133ff01b23SMartin Matuska.Sy disk ,
2143ff01b23SMartin Matuska.Sy file ,
2153ff01b23SMartin Matuska.Sy mirror ,
2163ff01b23SMartin Matuskaetc.
2173ff01b23SMartin MatuskaSee the
2183ff01b23SMartin Matuska.Sy Virtual Devices
2193ff01b23SMartin Matuskasection of
2203ff01b23SMartin Matuska.Xr zpoolconcepts 7
2213ff01b23SMartin Matuskafor more information on possible values.
2223ff01b23SMartin Matuska.It Sy vdev_path
2233ff01b23SMartin MatuskaFull path of the vdev, including any
2243ff01b23SMartin Matuska.Em -partX .
2253ff01b23SMartin Matuska.It Sy vdev_devid
2263ff01b23SMartin MatuskaID of vdev (if any).
2273ff01b23SMartin Matuska.It Sy vdev_fru
2283ff01b23SMartin MatuskaPhysical FRU location.
2293ff01b23SMartin Matuska.It Sy vdev_state
230bb2d13b6SMartin MatuskaState of vdev (0=uninitialized, 1=closed, 2=offline, 3=removed, 4=failed to
231bb2d13b6SMartin Matuskaopen, 5=faulted, 6=degraded, 7=healthy).
2323ff01b23SMartin Matuska.It Sy vdev_ashift
2333ff01b23SMartin MatuskaThe ashift value of the vdev.
2343ff01b23SMartin Matuska.It Sy vdev_complete_ts
2353ff01b23SMartin MatuskaThe time the last I/O request completed for the specified vdev.
2363ff01b23SMartin Matuska.It Sy vdev_delta_ts
2373ff01b23SMartin MatuskaThe time since the last I/O request completed for the specified vdev.
2383ff01b23SMartin Matuska.It Sy vdev_spare_paths
2393ff01b23SMartin MatuskaList of spares, including full path and any
2403ff01b23SMartin Matuska.Em -partX .
2413ff01b23SMartin Matuska.It Sy vdev_spare_guids
2423ff01b23SMartin MatuskaGUID(s) of spares.
2433ff01b23SMartin Matuska.It Sy vdev_read_errors
2443ff01b23SMartin MatuskaHow many read errors that have been detected on the vdev.
2453ff01b23SMartin Matuska.It Sy vdev_write_errors
2463ff01b23SMartin MatuskaHow many write errors that have been detected on the vdev.
2473ff01b23SMartin Matuska.It Sy vdev_cksum_errors
2483ff01b23SMartin MatuskaHow many checksum errors that have been detected on the vdev.
2493ff01b23SMartin Matuska.It Sy parent_guid
2503ff01b23SMartin MatuskaGUID of the vdev parent.
2513ff01b23SMartin Matuska.It Sy parent_type
2523ff01b23SMartin MatuskaType of parent.
2533ff01b23SMartin MatuskaSee
2543ff01b23SMartin Matuska.Sy vdev_type .
2553ff01b23SMartin Matuska.It Sy parent_path
2563ff01b23SMartin MatuskaPath of the vdev parent (if any).
2573ff01b23SMartin Matuska.It Sy parent_devid
2583ff01b23SMartin MatuskaID of the vdev parent (if any).
2593ff01b23SMartin Matuska.It Sy zio_objset
2603ff01b23SMartin MatuskaThe object set number for a given I/O request.
2613ff01b23SMartin Matuska.It Sy zio_object
2623ff01b23SMartin MatuskaThe object number for a given I/O request.
2633ff01b23SMartin Matuska.It Sy zio_level
2643ff01b23SMartin MatuskaThe indirect level for the block.
2653ff01b23SMartin MatuskaLevel 0 is the lowest level and includes data blocks.
2663ff01b23SMartin MatuskaValues > 0 indicate metadata blocks at the appropriate level.
2673ff01b23SMartin Matuska.It Sy zio_blkid
2683ff01b23SMartin MatuskaThe block ID for a given I/O request.
2693ff01b23SMartin Matuska.It Sy zio_err
2703ff01b23SMartin MatuskaThe error number for a failure when handling a given I/O request,
2713ff01b23SMartin Matuskacompatible with
2723ff01b23SMartin Matuska.Xr errno 3
2733ff01b23SMartin Matuskawith the value of
2743ff01b23SMartin Matuska.Sy EBADE
2753ff01b23SMartin Matuskaused to indicate a ZFS checksum error.
2763ff01b23SMartin Matuska.It Sy zio_offset
2773ff01b23SMartin MatuskaThe offset in bytes of where to write the I/O request for the specified vdev.
2783ff01b23SMartin Matuska.It Sy zio_size
2793ff01b23SMartin MatuskaThe size in bytes of the I/O request.
2803ff01b23SMartin Matuska.It Sy zio_flags
2813ff01b23SMartin MatuskaThe current flags describing how the I/O request should be handled.
2823ff01b23SMartin MatuskaSee the
2833ff01b23SMartin Matuska.Sy I/O FLAGS
2843ff01b23SMartin Matuskasection for the full list of I/O flags.
2853ff01b23SMartin Matuska.It Sy zio_stage
2863ff01b23SMartin MatuskaThe current stage of the I/O in the pipeline.
2873ff01b23SMartin MatuskaSee the
2883ff01b23SMartin Matuska.Sy I/O STAGES
2893ff01b23SMartin Matuskasection for a full list of all the I/O stages.
2903ff01b23SMartin Matuska.It Sy zio_pipeline
2913ff01b23SMartin MatuskaThe valid pipeline stages for the I/O.
2923ff01b23SMartin MatuskaSee the
2933ff01b23SMartin Matuska.Sy I/O STAGES
2943ff01b23SMartin Matuskasection for a full list of all the I/O stages.
2953ff01b23SMartin Matuska.It Sy zio_delay
2963ff01b23SMartin MatuskaThe time elapsed (in nanoseconds) waiting for the block layer to complete the
2973ff01b23SMartin MatuskaI/O request.
2983ff01b23SMartin MatuskaUnlike
2993ff01b23SMartin Matuska.Sy zio_delta ,
3003ff01b23SMartin Matuskathis does not include any vdev queuing time and is
3013ff01b23SMartin Matuskatherefore solely a measure of the block layer performance.
3023ff01b23SMartin Matuska.It Sy zio_timestamp
3033ff01b23SMartin MatuskaThe time when a given I/O request was submitted.
3043ff01b23SMartin Matuska.It Sy zio_delta
3053ff01b23SMartin MatuskaThe time required to service a given I/O request.
3063ff01b23SMartin Matuska.It Sy prev_state
3073ff01b23SMartin MatuskaThe previous state of the vdev.
3083ff01b23SMartin Matuska.It Sy cksum_expected
3093ff01b23SMartin MatuskaThe expected checksum value for the block.
3103ff01b23SMartin Matuska.It Sy cksum_actual
3113ff01b23SMartin MatuskaThe actual checksum value for an errant block.
3123ff01b23SMartin Matuska.It Sy cksum_algorithm
3133ff01b23SMartin MatuskaChecksum algorithm used.
3143ff01b23SMartin MatuskaSee
3153ff01b23SMartin Matuska.Xr zfsprops 7
3163ff01b23SMartin Matuskafor more information on the available checksum algorithms.
3173ff01b23SMartin Matuska.It Sy cksum_byteswap
3183ff01b23SMartin MatuskaWhether or not the data is byteswapped.
3193ff01b23SMartin Matuska.It Sy bad_ranges
3203ff01b23SMartin Matuska.No [\& Ns Ar start , end )
3213ff01b23SMartin Matuskapairs of corruption offsets.
3223ff01b23SMartin MatuskaOffsets are always aligned on a 64-bit boundary,
3233ff01b23SMartin Matuskaand can include some gaps of non-corruption.
3243ff01b23SMartin Matuska(See
3253ff01b23SMartin Matuska.Sy bad_ranges_min_gap )
3263ff01b23SMartin Matuska.It Sy bad_ranges_min_gap
3273ff01b23SMartin MatuskaIn order to bound the size of the
3283ff01b23SMartin Matuska.Sy bad_ranges
3293ff01b23SMartin Matuskaarray, gaps of non-corruption
3303ff01b23SMartin Matuskaless than or equal to
3313ff01b23SMartin Matuska.Sy bad_ranges_min_gap
3323ff01b23SMartin Matuskabytes have been merged with
3333ff01b23SMartin Matuskaadjacent corruption.
3343ff01b23SMartin MatuskaAlways at least 8 bytes, since corruption is detected on a 64-bit word basis.
3353ff01b23SMartin Matuska.It Sy bad_range_sets
3363ff01b23SMartin MatuskaThis array has one element per range in
3373ff01b23SMartin Matuska.Sy bad_ranges .
3383ff01b23SMartin MatuskaEach element contains
3393ff01b23SMartin Matuskathe count of bits in that range which were clear in the good data and set
3403ff01b23SMartin Matuskain the bad data.
3413ff01b23SMartin Matuska.It Sy bad_range_clears
3423ff01b23SMartin MatuskaThis array has one element per range in
3433ff01b23SMartin Matuska.Sy bad_ranges .
3443ff01b23SMartin MatuskaEach element contains
3453ff01b23SMartin Matuskathe count of bits for that range which were set in the good data and clear in
3463ff01b23SMartin Matuskathe bad data.
3473ff01b23SMartin Matuska.It Sy bad_set_bits
3483ff01b23SMartin MatuskaIf this field exists, it is an array of
3493ff01b23SMartin Matuska.Pq Ar bad data No & ~( Ns Ar good data ) ;
3503ff01b23SMartin Matuskathat is, the bits set in the bad data which are cleared in the good data.
3513ff01b23SMartin MatuskaEach element corresponds a byte whose offset is in a range in
3523ff01b23SMartin Matuska.Sy bad_ranges ,
3533ff01b23SMartin Matuskaand the array is ordered by offset.
3543ff01b23SMartin MatuskaThus, the first element is the first byte in the first
3553ff01b23SMartin Matuska.Sy bad_ranges
3563ff01b23SMartin Matuskarange, and the last element is the last byte in the last
3573ff01b23SMartin Matuska.Sy bad_ranges
3583ff01b23SMartin Matuskarange.
3593ff01b23SMartin Matuska.It Sy bad_cleared_bits
3603ff01b23SMartin MatuskaLike
3613ff01b23SMartin Matuska.Sy bad_set_bits ,
3623ff01b23SMartin Matuskabut contains
3633ff01b23SMartin Matuska.Pq Ar good data No & ~( Ns Ar bad data ) ;
3643ff01b23SMartin Matuskathat is, the bits set in the good data which are cleared in the bad data.
3653ff01b23SMartin Matuska.It Sy bad_set_histogram
3663ff01b23SMartin MatuskaIf this field exists, it is an array of counters.
3673ff01b23SMartin MatuskaEach entry counts bits set in a particular bit of a big-endian uint64 type.
3683ff01b23SMartin MatuskaThe first entry counts bits
3693ff01b23SMartin Matuskaset in the high-order bit of the first byte, the 9th byte, etc, and the last
3703ff01b23SMartin Matuskaentry counts bits set of the low-order bit of the 8th byte, the 16th byte, etc.
3713ff01b23SMartin MatuskaThis information is useful for observing a stuck bit in a parallel data path,
3723ff01b23SMartin Matuskasuch as IDE or parallel SCSI.
3733ff01b23SMartin Matuska.It Sy bad_cleared_histogram
3743ff01b23SMartin MatuskaIf this field exists, it is an array of counters.
3753ff01b23SMartin MatuskaEach entry counts bit clears in a particular bit of a big-endian uint64 type.
3763ff01b23SMartin MatuskaThe first entry counts bits
3773ff01b23SMartin Matuskaclears of the high-order bit of the first byte, the 9th byte, etc, and the
378bb2d13b6SMartin Matuskalast entry counts clears of the low-order bit of the 8th byte, the 16th byte,
379bb2d13b6SMartin Matuskaetc.
3803ff01b23SMartin MatuskaThis information is useful for observing a stuck bit in a parallel data
3813ff01b23SMartin Matuskapath, such as IDE or parallel SCSI.
3823ff01b23SMartin Matuska.El
3833ff01b23SMartin Matuska.
3843ff01b23SMartin Matuska.Sh I/O STAGES
3853ff01b23SMartin MatuskaThe ZFS I/O pipeline is comprised of various stages which are defined below.
3863ff01b23SMartin MatuskaThe individual stages are used to construct these basic I/O
3873ff01b23SMartin Matuskaoperations: Read, Write, Free, Claim, and Ioctl.
3883ff01b23SMartin MatuskaThese stages may be
3893ff01b23SMartin Matuskaset on an event to describe the life cycle of a given I/O request.
3903ff01b23SMartin Matuska.Pp
3913ff01b23SMartin Matuska.TS
3923ff01b23SMartin Matuskatab(:);
3933ff01b23SMartin Matuskal l l .
3943ff01b23SMartin MatuskaStage:Bit Mask:Operations
3953ff01b23SMartin Matuska_:_:_
3963ff01b23SMartin MatuskaZIO_STAGE_OPEN:0x00000001:RWFCI
3973ff01b23SMartin Matuska
3983ff01b23SMartin MatuskaZIO_STAGE_READ_BP_INIT:0x00000002:R----
3993ff01b23SMartin MatuskaZIO_STAGE_WRITE_BP_INIT:0x00000004:-W---
4003ff01b23SMartin MatuskaZIO_STAGE_FREE_BP_INIT:0x00000008:--F--
4013ff01b23SMartin MatuskaZIO_STAGE_ISSUE_ASYNC:0x00000010:RWF--
4023ff01b23SMartin MatuskaZIO_STAGE_WRITE_COMPRESS:0x00000020:-W---
4033ff01b23SMartin Matuska
4043ff01b23SMartin MatuskaZIO_STAGE_ENCRYPT:0x00000040:-W---
4053ff01b23SMartin MatuskaZIO_STAGE_CHECKSUM_GENERATE:0x00000080:-W---
4063ff01b23SMartin Matuska
4073ff01b23SMartin MatuskaZIO_STAGE_NOP_WRITE:0x00000100:-W---
4083ff01b23SMartin Matuska
409*2a58b312SMartin MatuskaZIO_STAGE_BRT_FREE:0x00000200:--F--
4103ff01b23SMartin Matuska
411*2a58b312SMartin MatuskaZIO_STAGE_DDT_READ_START:0x00000400:R----
412*2a58b312SMartin MatuskaZIO_STAGE_DDT_READ_DONE:0x00000800:R----
413*2a58b312SMartin MatuskaZIO_STAGE_DDT_WRITE:0x00001000:-W---
414*2a58b312SMartin MatuskaZIO_STAGE_DDT_FREE:0x00002000:--F--
4153ff01b23SMartin Matuska
416*2a58b312SMartin MatuskaZIO_STAGE_GANG_ASSEMBLE:0x00004000:RWFC-
417*2a58b312SMartin MatuskaZIO_STAGE_GANG_ISSUE:0x00008000:RWFC-
4183ff01b23SMartin Matuska
419*2a58b312SMartin MatuskaZIO_STAGE_DVA_THROTTLE:0x00010000:-W---
420*2a58b312SMartin MatuskaZIO_STAGE_DVA_ALLOCATE:0x00020000:-W---
421*2a58b312SMartin MatuskaZIO_STAGE_DVA_FREE:0x00040000:--F--
422*2a58b312SMartin MatuskaZIO_STAGE_DVA_CLAIM:0x00080000:---C-
4233ff01b23SMartin Matuska
424*2a58b312SMartin MatuskaZIO_STAGE_READY:0x00100000:RWFCI
4253ff01b23SMartin Matuska
426*2a58b312SMartin MatuskaZIO_STAGE_VDEV_IO_START:0x00200000:RW--I
427*2a58b312SMartin MatuskaZIO_STAGE_VDEV_IO_DONE:0x00400000:RW--I
428*2a58b312SMartin MatuskaZIO_STAGE_VDEV_IO_ASSESS:0x00800000:RW--I
4293ff01b23SMartin Matuska
430*2a58b312SMartin MatuskaZIO_STAGE_CHECKSUM_VERIFY:0x01000000:R----
431*2a58b312SMartin Matuska
432*2a58b312SMartin MatuskaZIO_STAGE_DONE:0x02000000:RWFCI
4333ff01b23SMartin Matuska.TE
4343ff01b23SMartin Matuska.
4353ff01b23SMartin Matuska.Sh I/O FLAGS
4363ff01b23SMartin MatuskaEvery I/O request in the pipeline contains a set of flags which describe its
4373ff01b23SMartin Matuskafunction and are used to govern its behavior.
4383ff01b23SMartin MatuskaThese flags will be set in an event as a
4393ff01b23SMartin Matuska.Sy zio_flags
4403ff01b23SMartin Matuskapayload entry.
4413ff01b23SMartin Matuska.Pp
4423ff01b23SMartin Matuska.TS
4433ff01b23SMartin Matuskatab(:);
4443ff01b23SMartin Matuskal l .
4453ff01b23SMartin MatuskaFlag:Bit Mask
4463ff01b23SMartin Matuska_:_
4473ff01b23SMartin MatuskaZIO_FLAG_DONT_AGGREGATE:0x00000001
4483ff01b23SMartin MatuskaZIO_FLAG_IO_REPAIR:0x00000002
4493ff01b23SMartin MatuskaZIO_FLAG_SELF_HEAL:0x00000004
4503ff01b23SMartin MatuskaZIO_FLAG_RESILVER:0x00000008
4513ff01b23SMartin MatuskaZIO_FLAG_SCRUB:0x00000010
4523ff01b23SMartin MatuskaZIO_FLAG_SCAN_THREAD:0x00000020
4533ff01b23SMartin MatuskaZIO_FLAG_PHYSICAL:0x00000040
4543ff01b23SMartin Matuska
4553ff01b23SMartin MatuskaZIO_FLAG_CANFAIL:0x00000080
4563ff01b23SMartin MatuskaZIO_FLAG_SPECULATIVE:0x00000100
4573ff01b23SMartin MatuskaZIO_FLAG_CONFIG_WRITER:0x00000200
4583ff01b23SMartin MatuskaZIO_FLAG_DONT_RETRY:0x00000400
4593ff01b23SMartin MatuskaZIO_FLAG_DONT_CACHE:0x00000800
4603ff01b23SMartin MatuskaZIO_FLAG_NODATA:0x00001000
4613ff01b23SMartin MatuskaZIO_FLAG_INDUCE_DAMAGE:0x00002000
4623ff01b23SMartin Matuska
4633ff01b23SMartin MatuskaZIO_FLAG_IO_ALLOCATING:0x00004000
4643ff01b23SMartin MatuskaZIO_FLAG_IO_RETRY:0x00008000
4653ff01b23SMartin MatuskaZIO_FLAG_PROBE:0x00010000
4663ff01b23SMartin MatuskaZIO_FLAG_TRYHARD:0x00020000
4673ff01b23SMartin MatuskaZIO_FLAG_OPTIONAL:0x00040000
4683ff01b23SMartin Matuska
4693ff01b23SMartin MatuskaZIO_FLAG_DONT_QUEUE:0x00080000
4703ff01b23SMartin MatuskaZIO_FLAG_DONT_PROPAGATE:0x00100000
4713ff01b23SMartin MatuskaZIO_FLAG_IO_BYPASS:0x00200000
4723ff01b23SMartin MatuskaZIO_FLAG_IO_REWRITE:0x00400000
4733ff01b23SMartin MatuskaZIO_FLAG_RAW_COMPRESS:0x00800000
4743ff01b23SMartin MatuskaZIO_FLAG_RAW_ENCRYPT:0x01000000
4753ff01b23SMartin Matuska
4763ff01b23SMartin MatuskaZIO_FLAG_GANG_CHILD:0x02000000
4773ff01b23SMartin MatuskaZIO_FLAG_DDT_CHILD:0x04000000
4783ff01b23SMartin MatuskaZIO_FLAG_GODFATHER:0x08000000
4793ff01b23SMartin MatuskaZIO_FLAG_NOPWRITE:0x10000000
4803ff01b23SMartin MatuskaZIO_FLAG_REEXECUTED:0x20000000
4813ff01b23SMartin MatuskaZIO_FLAG_DELEGATED:0x40000000
4823ff01b23SMartin MatuskaZIO_FLAG_FASTWRITE:0x80000000
4833ff01b23SMartin Matuska.TE
4843ff01b23SMartin Matuska.
485eda14cbcSMatt Macy.Sh SEE ALSO
4863ff01b23SMartin Matuska.Xr zfs 4 ,
48716038816SMartin Matuska.Xr zed 8 ,
48816038816SMartin Matuska.Xr zpool-wait 8
489