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 9eda14cbcSMatt Macy.\" or http://www.opensolaris.org/os/licensing. 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 52*3ff01b23SMartin Matuskathat can be generated see 53*3ff01b23SMartin Matuska.Sx EVENTS 54*3ff01b23SMartin Matuskaand the following sections. 55*3ff01b23SMartin Matuska. 56*3ff01b23SMartin 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. 70*3ff01b23SMartin Matuska.Sh EVENTS 71*3ff01b23SMartin MatuskaTheese are the different event subclasses. 72*3ff01b23SMartin MatuskaThe full event name would be 73*3ff01b23SMartin Matuska.Sy ereport.fs.zfs.\& Ns Em SUBCLASS , 74*3ff01b23SMartin Matuskabut only the last part is listed here. 75*3ff01b23SMartin Matuska.Pp 76*3ff01b23SMartin Matuska.Bl -tag -compact -width "vdev.bad_guid_sum" 77*3ff01b23SMartin Matuska.It Sy checksum 78*3ff01b23SMartin MatuskaIssued when a checksum error has been detected. 79*3ff01b23SMartin Matuska.It Sy io 80*3ff01b23SMartin MatuskaIssued when there is an I/O error in a vdev in the pool. 81*3ff01b23SMartin Matuska.It Sy data 82*3ff01b23SMartin MatuskaIssued when there have been data errors in the pool. 83*3ff01b23SMartin Matuska.It Sy deadman 84*3ff01b23SMartin MatuskaIssued when an I/O request is determined to be "hung", this can be caused 85*3ff01b23SMartin Matuskaby lost completion events due to flaky hardware or drivers. 86*3ff01b23SMartin MatuskaSee 87*3ff01b23SMartin Matuska.Sy zfs_deadman_failmode 88*3ff01b23SMartin Matuskain 89*3ff01b23SMartin Matuska.Xr zfs 4 90*3ff01b23SMartin Matuskafor additional information regarding "hung" I/O detection and configuration. 91*3ff01b23SMartin Matuska.It Sy delay 92*3ff01b23SMartin MatuskaIssued when a completed I/O request exceeds the maximum allowed time 93*3ff01b23SMartin Matuskaspecified by the 94*3ff01b23SMartin Matuska.Sy zio_slow_io_ms 95*3ff01b23SMartin Matuskamodule parameter. 96*3ff01b23SMartin MatuskaThis can be an indicator of problems with the underlying storage device. 97*3ff01b23SMartin MatuskaThe number of delay events is ratelimited by the 98*3ff01b23SMartin Matuska.Sy zfs_slow_io_events_per_second 99*3ff01b23SMartin Matuskamodule parameter. 100*3ff01b23SMartin Matuska.It Sy config 101*3ff01b23SMartin MatuskaIssued every time a vdev change have been done to the pool. 102*3ff01b23SMartin Matuska.It Sy zpool 103*3ff01b23SMartin MatuskaIssued when a pool cannot be imported. 104*3ff01b23SMartin Matuska.It Sy zpool.destroy 105*3ff01b23SMartin MatuskaIssued when a pool is destroyed. 106*3ff01b23SMartin Matuska.It Sy zpool.export 107*3ff01b23SMartin MatuskaIssued when a pool is exported. 108*3ff01b23SMartin Matuska.It Sy zpool.import 109*3ff01b23SMartin MatuskaIssued when a pool is imported. 110*3ff01b23SMartin Matuska.It Sy zpool.reguid 111*3ff01b23SMartin MatuskaIssued when a REGUID (new unique identifier for the pool have been regenerated) have been detected. 112*3ff01b23SMartin Matuska.It Sy vdev.unknown 113*3ff01b23SMartin MatuskaIssued when the vdev is unknown. 114*3ff01b23SMartin MatuskaSuch as trying to clear device errors on a vdev that have failed/been kicked 115*3ff01b23SMartin Matuskafrom the system/pool and is no longer available. 116*3ff01b23SMartin Matuska.It Sy vdev.open_failed 117*3ff01b23SMartin MatuskaIssued when a vdev could not be opened (because it didn't exist for example). 118*3ff01b23SMartin Matuska.It Sy vdev.corrupt_data 119*3ff01b23SMartin MatuskaIssued when corrupt data have been detected on a vdev. 120*3ff01b23SMartin Matuska.It Sy vdev.no_replicas 121*3ff01b23SMartin MatuskaIssued when there are no more replicas to sustain the pool. 122*3ff01b23SMartin MatuskaThis would lead to the pool being 123*3ff01b23SMartin Matuska.Em DEGRADED . 124*3ff01b23SMartin Matuska.It Sy vdev.bad_guid_sum 125*3ff01b23SMartin MatuskaIssued when a missing device in the pool have been detected. 126*3ff01b23SMartin Matuska.It Sy vdev.too_small 127*3ff01b23SMartin MatuskaIssued when the system (kernel) have removed a device, and ZFS 128*3ff01b23SMartin Matuskanotices that the device isn't there any more. 129*3ff01b23SMartin MatuskaThis is usually followed by a 130*3ff01b23SMartin Matuska.Sy probe_failure 131*3ff01b23SMartin Matuskaevent. 132*3ff01b23SMartin Matuska.It Sy vdev.bad_label 133*3ff01b23SMartin MatuskaIssued when the label is OK but invalid. 134*3ff01b23SMartin Matuska.It Sy vdev.bad_ashift 135*3ff01b23SMartin MatuskaIssued when the ashift alignment requirement has increased. 136*3ff01b23SMartin Matuska.It Sy vdev.remove 137*3ff01b23SMartin MatuskaIssued when a vdev is detached from a mirror (or a spare detached from a 138*3ff01b23SMartin Matuskavdev where it have been used to replace a failed drive - only works if 139*3ff01b23SMartin Matuskathe original drive have been readded). 140*3ff01b23SMartin Matuska.It Sy vdev.clear 141*3ff01b23SMartin MatuskaIssued when clearing device errors in a pool. 142*3ff01b23SMartin MatuskaSuch as running 143*3ff01b23SMartin Matuska.Nm zpool Cm clear 144*3ff01b23SMartin Matuskaon a device in the pool. 145*3ff01b23SMartin Matuska.It Sy vdev.check 146*3ff01b23SMartin MatuskaIssued when a check to see if a given vdev could be opened is started. 147*3ff01b23SMartin Matuska.It Sy vdev.spare 148*3ff01b23SMartin MatuskaIssued when a spare have kicked in to replace a failed device. 149*3ff01b23SMartin Matuska.It Sy vdev.autoexpand 150*3ff01b23SMartin MatuskaIssued when a vdev can be automatically expanded. 151*3ff01b23SMartin Matuska.It Sy io_failure 152*3ff01b23SMartin MatuskaIssued when there is an I/O failure in a vdev in the pool. 153*3ff01b23SMartin Matuska.It Sy probe_failure 154*3ff01b23SMartin MatuskaIssued when a probe fails on a vdev. 155*3ff01b23SMartin MatuskaThis would occur if a vdev 156*3ff01b23SMartin Matuskahave been kicked from the system outside of ZFS (such as the kernel 157*3ff01b23SMartin Matuskahave removed the device). 158*3ff01b23SMartin Matuska.It Sy log_replay 159*3ff01b23SMartin MatuskaIssued when the intent log cannot be replayed. 160*3ff01b23SMartin MatuskaThe can occur in the case of a missing or damaged log device. 161*3ff01b23SMartin Matuska.It Sy resilver.start 162*3ff01b23SMartin MatuskaIssued when a resilver is started. 163*3ff01b23SMartin Matuska.It Sy resilver.finish 164*3ff01b23SMartin MatuskaIssued when the running resilver have finished. 165*3ff01b23SMartin Matuska.It Sy scrub.start 166*3ff01b23SMartin MatuskaIssued when a scrub is started on a pool. 167*3ff01b23SMartin Matuska.It Sy scrub.finish 168*3ff01b23SMartin MatuskaIssued when a pool has finished scrubbing. 169*3ff01b23SMartin Matuska.It Sy scrub.abort 170*3ff01b23SMartin MatuskaIssued when a scrub is aborted on a pool. 171*3ff01b23SMartin Matuska.It Sy scrub.resume 172*3ff01b23SMartin MatuskaIssued when a scrub is resumed on a pool. 173*3ff01b23SMartin Matuska.It Sy scrub.paused 174*3ff01b23SMartin MatuskaIssued when a scrub is paused on a pool. 175*3ff01b23SMartin Matuska.It Sy bootfs.vdev.attach 176*3ff01b23SMartin Matuska.El 177*3ff01b23SMartin Matuska. 178*3ff01b23SMartin Matuska.Sh PAYLOADS 179*3ff01b23SMartin MatuskaThis is the payload (data, information) that accompanies an 180*3ff01b23SMartin Matuskaevent. 181*3ff01b23SMartin Matuska.Pp 182*3ff01b23SMartin MatuskaFor 183*3ff01b23SMartin Matuska.Xr zed 8 , 184*3ff01b23SMartin Matuskathese are set to uppercase and prefixed with 185*3ff01b23SMartin Matuska.Sy ZEVENT_ . 186*3ff01b23SMartin Matuska.Pp 187*3ff01b23SMartin Matuska.Bl -tag -compact -width "vdev_cksum_errors" 188*3ff01b23SMartin Matuska.It Sy pool 189*3ff01b23SMartin MatuskaPool name. 190*3ff01b23SMartin Matuska.It Sy pool_failmode 191*3ff01b23SMartin MatuskaFailmode - 192*3ff01b23SMartin Matuska.Sy wait , 193*3ff01b23SMartin Matuska.Sy continue , 194*3ff01b23SMartin Matuskaor 195*3ff01b23SMartin Matuska.Sy panic . 196*3ff01b23SMartin MatuskaSee the 197*3ff01b23SMartin Matuska.Sy failmode 198*3ff01b23SMartin Matuskaproperty in 199*3ff01b23SMartin Matuska.Xr zpoolprops 7 200*3ff01b23SMartin Matuskafor more information. 201*3ff01b23SMartin Matuska.It Sy pool_guid 202*3ff01b23SMartin MatuskaThe GUID of the pool. 203*3ff01b23SMartin Matuska.It Sy pool_context 204*3ff01b23SMartin MatuskaThe load state for the pool (0=none, 1=open, 2=import, 3=tryimport, 4=recover 205*3ff01b23SMartin Matuska5=error). 206*3ff01b23SMartin Matuska.It Sy vdev_guid 207*3ff01b23SMartin MatuskaThe GUID of the vdev in question (the vdev failing or operated upon with 208*3ff01b23SMartin Matuska.Nm zpool Cm clear , 209*3ff01b23SMartin Matuskaetc.). 210*3ff01b23SMartin Matuska.It Sy vdev_type 211*3ff01b23SMartin MatuskaType of vdev - 212*3ff01b23SMartin Matuska.Sy disk , 213*3ff01b23SMartin Matuska.Sy file , 214*3ff01b23SMartin Matuska.Sy mirror , 215*3ff01b23SMartin Matuskaetc. 216*3ff01b23SMartin MatuskaSee the 217*3ff01b23SMartin Matuska.Sy Virtual Devices 218*3ff01b23SMartin Matuskasection of 219*3ff01b23SMartin Matuska.Xr zpoolconcepts 7 220*3ff01b23SMartin Matuskafor more information on possible values. 221*3ff01b23SMartin Matuska.It Sy vdev_path 222*3ff01b23SMartin MatuskaFull path of the vdev, including any 223*3ff01b23SMartin Matuska.Em -partX . 224*3ff01b23SMartin Matuska.It Sy vdev_devid 225*3ff01b23SMartin MatuskaID of vdev (if any). 226*3ff01b23SMartin Matuska.It Sy vdev_fru 227*3ff01b23SMartin MatuskaPhysical FRU location. 228*3ff01b23SMartin Matuska.It Sy vdev_state 229*3ff01b23SMartin MatuskaState of vdev (0=uninitialized, 1=closed, 2=offline, 3=removed, 4=failed to open, 5=faulted, 6=degraded, 7=healthy). 230*3ff01b23SMartin Matuska.It Sy vdev_ashift 231*3ff01b23SMartin MatuskaThe ashift value of the vdev. 232*3ff01b23SMartin Matuska.It Sy vdev_complete_ts 233*3ff01b23SMartin MatuskaThe time the last I/O request completed for the specified vdev. 234*3ff01b23SMartin Matuska.It Sy vdev_delta_ts 235*3ff01b23SMartin MatuskaThe time since the last I/O request completed for the specified vdev. 236*3ff01b23SMartin Matuska.It Sy vdev_spare_paths 237*3ff01b23SMartin MatuskaList of spares, including full path and any 238*3ff01b23SMartin Matuska.Em -partX . 239*3ff01b23SMartin Matuska.It Sy vdev_spare_guids 240*3ff01b23SMartin MatuskaGUID(s) of spares. 241*3ff01b23SMartin Matuska.It Sy vdev_read_errors 242*3ff01b23SMartin MatuskaHow many read errors that have been detected on the vdev. 243*3ff01b23SMartin Matuska.It Sy vdev_write_errors 244*3ff01b23SMartin MatuskaHow many write errors that have been detected on the vdev. 245*3ff01b23SMartin Matuska.It Sy vdev_cksum_errors 246*3ff01b23SMartin MatuskaHow many checksum errors that have been detected on the vdev. 247*3ff01b23SMartin Matuska.It Sy parent_guid 248*3ff01b23SMartin MatuskaGUID of the vdev parent. 249*3ff01b23SMartin Matuska.It Sy parent_type 250*3ff01b23SMartin MatuskaType of parent. 251*3ff01b23SMartin MatuskaSee 252*3ff01b23SMartin Matuska.Sy vdev_type . 253*3ff01b23SMartin Matuska.It Sy parent_path 254*3ff01b23SMartin MatuskaPath of the vdev parent (if any). 255*3ff01b23SMartin Matuska.It Sy parent_devid 256*3ff01b23SMartin MatuskaID of the vdev parent (if any). 257*3ff01b23SMartin Matuska.It Sy zio_objset 258*3ff01b23SMartin MatuskaThe object set number for a given I/O request. 259*3ff01b23SMartin Matuska.It Sy zio_object 260*3ff01b23SMartin MatuskaThe object number for a given I/O request. 261*3ff01b23SMartin Matuska.It Sy zio_level 262*3ff01b23SMartin MatuskaThe indirect level for the block. 263*3ff01b23SMartin MatuskaLevel 0 is the lowest level and includes data blocks. 264*3ff01b23SMartin MatuskaValues > 0 indicate metadata blocks at the appropriate level. 265*3ff01b23SMartin Matuska.It Sy zio_blkid 266*3ff01b23SMartin MatuskaThe block ID for a given I/O request. 267*3ff01b23SMartin Matuska.It Sy zio_err 268*3ff01b23SMartin MatuskaThe error number for a failure when handling a given I/O request, 269*3ff01b23SMartin Matuskacompatible with 270*3ff01b23SMartin Matuska.Xr errno 3 271*3ff01b23SMartin Matuskawith the value of 272*3ff01b23SMartin Matuska.Sy EBADE 273*3ff01b23SMartin Matuskaused to indicate a ZFS checksum error. 274*3ff01b23SMartin Matuska.It Sy zio_offset 275*3ff01b23SMartin MatuskaThe offset in bytes of where to write the I/O request for the specified vdev. 276*3ff01b23SMartin Matuska.It Sy zio_size 277*3ff01b23SMartin MatuskaThe size in bytes of the I/O request. 278*3ff01b23SMartin Matuska.It Sy zio_flags 279*3ff01b23SMartin MatuskaThe current flags describing how the I/O request should be handled. 280*3ff01b23SMartin MatuskaSee the 281*3ff01b23SMartin Matuska.Sy I/O FLAGS 282*3ff01b23SMartin Matuskasection for the full list of I/O flags. 283*3ff01b23SMartin Matuska.It Sy zio_stage 284*3ff01b23SMartin MatuskaThe current stage of the I/O in the pipeline. 285*3ff01b23SMartin MatuskaSee the 286*3ff01b23SMartin Matuska.Sy I/O STAGES 287*3ff01b23SMartin Matuskasection for a full list of all the I/O stages. 288*3ff01b23SMartin Matuska.It Sy zio_pipeline 289*3ff01b23SMartin MatuskaThe valid pipeline stages for the I/O. 290*3ff01b23SMartin MatuskaSee the 291*3ff01b23SMartin Matuska.Sy I/O STAGES 292*3ff01b23SMartin Matuskasection for a full list of all the I/O stages. 293*3ff01b23SMartin Matuska.It Sy zio_delay 294*3ff01b23SMartin MatuskaThe time elapsed (in nanoseconds) waiting for the block layer to complete the 295*3ff01b23SMartin MatuskaI/O request. 296*3ff01b23SMartin MatuskaUnlike 297*3ff01b23SMartin Matuska.Sy zio_delta , 298*3ff01b23SMartin Matuskathis does not include any vdev queuing time and is 299*3ff01b23SMartin Matuskatherefore solely a measure of the block layer performance. 300*3ff01b23SMartin Matuska.It Sy zio_timestamp 301*3ff01b23SMartin MatuskaThe time when a given I/O request was submitted. 302*3ff01b23SMartin Matuska.It Sy zio_delta 303*3ff01b23SMartin MatuskaThe time required to service a given I/O request. 304*3ff01b23SMartin Matuska.It Sy prev_state 305*3ff01b23SMartin MatuskaThe previous state of the vdev. 306*3ff01b23SMartin Matuska.It Sy cksum_expected 307*3ff01b23SMartin MatuskaThe expected checksum value for the block. 308*3ff01b23SMartin Matuska.It Sy cksum_actual 309*3ff01b23SMartin MatuskaThe actual checksum value for an errant block. 310*3ff01b23SMartin Matuska.It Sy cksum_algorithm 311*3ff01b23SMartin MatuskaChecksum algorithm used. 312*3ff01b23SMartin MatuskaSee 313*3ff01b23SMartin Matuska.Xr zfsprops 7 314*3ff01b23SMartin Matuskafor more information on the available checksum algorithms. 315*3ff01b23SMartin Matuska.It Sy cksum_byteswap 316*3ff01b23SMartin MatuskaWhether or not the data is byteswapped. 317*3ff01b23SMartin Matuska.It Sy bad_ranges 318*3ff01b23SMartin Matuska.No [\& Ns Ar start , end ) 319*3ff01b23SMartin Matuskapairs of corruption offsets. 320*3ff01b23SMartin MatuskaOffsets are always aligned on a 64-bit boundary, 321*3ff01b23SMartin Matuskaand can include some gaps of non-corruption. 322*3ff01b23SMartin Matuska(See 323*3ff01b23SMartin Matuska.Sy bad_ranges_min_gap ) 324*3ff01b23SMartin Matuska.It Sy bad_ranges_min_gap 325*3ff01b23SMartin MatuskaIn order to bound the size of the 326*3ff01b23SMartin Matuska.Sy bad_ranges 327*3ff01b23SMartin Matuskaarray, gaps of non-corruption 328*3ff01b23SMartin Matuskaless than or equal to 329*3ff01b23SMartin Matuska.Sy bad_ranges_min_gap 330*3ff01b23SMartin Matuskabytes have been merged with 331*3ff01b23SMartin Matuskaadjacent corruption. 332*3ff01b23SMartin MatuskaAlways at least 8 bytes, since corruption is detected on a 64-bit word basis. 333*3ff01b23SMartin Matuska.It Sy bad_range_sets 334*3ff01b23SMartin MatuskaThis array has one element per range in 335*3ff01b23SMartin Matuska.Sy bad_ranges . 336*3ff01b23SMartin MatuskaEach element contains 337*3ff01b23SMartin Matuskathe count of bits in that range which were clear in the good data and set 338*3ff01b23SMartin Matuskain the bad data. 339*3ff01b23SMartin Matuska.It Sy bad_range_clears 340*3ff01b23SMartin MatuskaThis array has one element per range in 341*3ff01b23SMartin Matuska.Sy bad_ranges . 342*3ff01b23SMartin MatuskaEach element contains 343*3ff01b23SMartin Matuskathe count of bits for that range which were set in the good data and clear in 344*3ff01b23SMartin Matuskathe bad data. 345*3ff01b23SMartin Matuska.It Sy bad_set_bits 346*3ff01b23SMartin MatuskaIf this field exists, it is an array of 347*3ff01b23SMartin Matuska.Pq Ar bad data No & ~( Ns Ar good data ) ; 348*3ff01b23SMartin Matuskathat is, the bits set in the bad data which are cleared in the good data. 349*3ff01b23SMartin MatuskaEach element corresponds a byte whose offset is in a range in 350*3ff01b23SMartin Matuska.Sy bad_ranges , 351*3ff01b23SMartin Matuskaand the array is ordered by offset. 352*3ff01b23SMartin MatuskaThus, the first element is the first byte in the first 353*3ff01b23SMartin Matuska.Sy bad_ranges 354*3ff01b23SMartin Matuskarange, and the last element is the last byte in the last 355*3ff01b23SMartin Matuska.Sy bad_ranges 356*3ff01b23SMartin Matuskarange. 357*3ff01b23SMartin Matuska.It Sy bad_cleared_bits 358*3ff01b23SMartin MatuskaLike 359*3ff01b23SMartin Matuska.Sy bad_set_bits , 360*3ff01b23SMartin Matuskabut contains 361*3ff01b23SMartin Matuska.Pq Ar good data No & ~( Ns Ar bad data ) ; 362*3ff01b23SMartin Matuskathat is, the bits set in the good data which are cleared in the bad data. 363*3ff01b23SMartin Matuska.It Sy bad_set_histogram 364*3ff01b23SMartin MatuskaIf this field exists, it is an array of counters. 365*3ff01b23SMartin MatuskaEach entry counts bits set in a particular bit of a big-endian uint64 type. 366*3ff01b23SMartin MatuskaThe first entry counts bits 367*3ff01b23SMartin Matuskaset in the high-order bit of the first byte, the 9th byte, etc, and the last 368*3ff01b23SMartin Matuskaentry counts bits set of the low-order bit of the 8th byte, the 16th byte, etc. 369*3ff01b23SMartin MatuskaThis information is useful for observing a stuck bit in a parallel data path, 370*3ff01b23SMartin Matuskasuch as IDE or parallel SCSI. 371*3ff01b23SMartin Matuska.It Sy bad_cleared_histogram 372*3ff01b23SMartin MatuskaIf this field exists, it is an array of counters. 373*3ff01b23SMartin MatuskaEach entry counts bit clears in a particular bit of a big-endian uint64 type. 374*3ff01b23SMartin MatuskaThe first entry counts bits 375*3ff01b23SMartin Matuskaclears of the high-order bit of the first byte, the 9th byte, etc, and the 376*3ff01b23SMartin Matuskalast entry counts clears of the low-order bit of the 8th byte, the 16th byte, etc. 377*3ff01b23SMartin MatuskaThis information is useful for observing a stuck bit in a parallel data 378*3ff01b23SMartin Matuskapath, such as IDE or parallel SCSI. 379*3ff01b23SMartin Matuska.El 380*3ff01b23SMartin Matuska. 381*3ff01b23SMartin Matuska.Sh I/O STAGES 382*3ff01b23SMartin MatuskaThe ZFS I/O pipeline is comprised of various stages which are defined below. 383*3ff01b23SMartin MatuskaThe individual stages are used to construct these basic I/O 384*3ff01b23SMartin Matuskaoperations: Read, Write, Free, Claim, and Ioctl. 385*3ff01b23SMartin MatuskaThese stages may be 386*3ff01b23SMartin Matuskaset on an event to describe the life cycle of a given I/O request. 387*3ff01b23SMartin Matuska.Pp 388*3ff01b23SMartin Matuska.TS 389*3ff01b23SMartin Matuskatab(:); 390*3ff01b23SMartin Matuskal l l . 391*3ff01b23SMartin MatuskaStage:Bit Mask:Operations 392*3ff01b23SMartin Matuska_:_:_ 393*3ff01b23SMartin MatuskaZIO_STAGE_OPEN:0x00000001:RWFCI 394*3ff01b23SMartin Matuska 395*3ff01b23SMartin MatuskaZIO_STAGE_READ_BP_INIT:0x00000002:R---- 396*3ff01b23SMartin MatuskaZIO_STAGE_WRITE_BP_INIT:0x00000004:-W--- 397*3ff01b23SMartin MatuskaZIO_STAGE_FREE_BP_INIT:0x00000008:--F-- 398*3ff01b23SMartin MatuskaZIO_STAGE_ISSUE_ASYNC:0x00000010:RWF-- 399*3ff01b23SMartin MatuskaZIO_STAGE_WRITE_COMPRESS:0x00000020:-W--- 400*3ff01b23SMartin Matuska 401*3ff01b23SMartin MatuskaZIO_STAGE_ENCRYPT:0x00000040:-W--- 402*3ff01b23SMartin MatuskaZIO_STAGE_CHECKSUM_GENERATE:0x00000080:-W--- 403*3ff01b23SMartin Matuska 404*3ff01b23SMartin MatuskaZIO_STAGE_NOP_WRITE:0x00000100:-W--- 405*3ff01b23SMartin Matuska 406*3ff01b23SMartin MatuskaZIO_STAGE_DDT_READ_START:0x00000200:R---- 407*3ff01b23SMartin MatuskaZIO_STAGE_DDT_READ_DONE:0x00000400:R---- 408*3ff01b23SMartin MatuskaZIO_STAGE_DDT_WRITE:0x00000800:-W--- 409*3ff01b23SMartin MatuskaZIO_STAGE_DDT_FREE:0x00001000:--F-- 410*3ff01b23SMartin Matuska 411*3ff01b23SMartin MatuskaZIO_STAGE_GANG_ASSEMBLE:0x00002000:RWFC- 412*3ff01b23SMartin MatuskaZIO_STAGE_GANG_ISSUE:0x00004000:RWFC- 413*3ff01b23SMartin Matuska 414*3ff01b23SMartin MatuskaZIO_STAGE_DVA_THROTTLE:0x00008000:-W--- 415*3ff01b23SMartin MatuskaZIO_STAGE_DVA_ALLOCATE:0x00010000:-W--- 416*3ff01b23SMartin MatuskaZIO_STAGE_DVA_FREE:0x00020000:--F-- 417*3ff01b23SMartin MatuskaZIO_STAGE_DVA_CLAIM:0x00040000:---C- 418*3ff01b23SMartin Matuska 419*3ff01b23SMartin MatuskaZIO_STAGE_READY:0x00080000:RWFCI 420*3ff01b23SMartin Matuska 421*3ff01b23SMartin MatuskaZIO_STAGE_VDEV_IO_START:0x00100000:RW--I 422*3ff01b23SMartin MatuskaZIO_STAGE_VDEV_IO_DONE:0x00200000:RW--I 423*3ff01b23SMartin MatuskaZIO_STAGE_VDEV_IO_ASSESS:0x00400000:RW--I 424*3ff01b23SMartin Matuska 425*3ff01b23SMartin MatuskaZIO_STAGE_CHECKSUM_VERIFY:0x00800000:R---- 426*3ff01b23SMartin Matuska 427*3ff01b23SMartin MatuskaZIO_STAGE_DONE:0x01000000:RWFCI 428*3ff01b23SMartin Matuska.TE 429*3ff01b23SMartin Matuska. 430*3ff01b23SMartin Matuska.Sh I/O FLAGS 431*3ff01b23SMartin MatuskaEvery I/O request in the pipeline contains a set of flags which describe its 432*3ff01b23SMartin Matuskafunction and are used to govern its behavior. 433*3ff01b23SMartin MatuskaThese flags will be set in an event as a 434*3ff01b23SMartin Matuska.Sy zio_flags 435*3ff01b23SMartin Matuskapayload entry. 436*3ff01b23SMartin Matuska.Pp 437*3ff01b23SMartin Matuska.TS 438*3ff01b23SMartin Matuskatab(:); 439*3ff01b23SMartin Matuskal l . 440*3ff01b23SMartin MatuskaFlag:Bit Mask 441*3ff01b23SMartin Matuska_:_ 442*3ff01b23SMartin MatuskaZIO_FLAG_DONT_AGGREGATE:0x00000001 443*3ff01b23SMartin MatuskaZIO_FLAG_IO_REPAIR:0x00000002 444*3ff01b23SMartin MatuskaZIO_FLAG_SELF_HEAL:0x00000004 445*3ff01b23SMartin MatuskaZIO_FLAG_RESILVER:0x00000008 446*3ff01b23SMartin MatuskaZIO_FLAG_SCRUB:0x00000010 447*3ff01b23SMartin MatuskaZIO_FLAG_SCAN_THREAD:0x00000020 448*3ff01b23SMartin MatuskaZIO_FLAG_PHYSICAL:0x00000040 449*3ff01b23SMartin Matuska 450*3ff01b23SMartin MatuskaZIO_FLAG_CANFAIL:0x00000080 451*3ff01b23SMartin MatuskaZIO_FLAG_SPECULATIVE:0x00000100 452*3ff01b23SMartin MatuskaZIO_FLAG_CONFIG_WRITER:0x00000200 453*3ff01b23SMartin MatuskaZIO_FLAG_DONT_RETRY:0x00000400 454*3ff01b23SMartin MatuskaZIO_FLAG_DONT_CACHE:0x00000800 455*3ff01b23SMartin MatuskaZIO_FLAG_NODATA:0x00001000 456*3ff01b23SMartin MatuskaZIO_FLAG_INDUCE_DAMAGE:0x00002000 457*3ff01b23SMartin Matuska 458*3ff01b23SMartin MatuskaZIO_FLAG_IO_ALLOCATING:0x00004000 459*3ff01b23SMartin MatuskaZIO_FLAG_IO_RETRY:0x00008000 460*3ff01b23SMartin MatuskaZIO_FLAG_PROBE:0x00010000 461*3ff01b23SMartin MatuskaZIO_FLAG_TRYHARD:0x00020000 462*3ff01b23SMartin MatuskaZIO_FLAG_OPTIONAL:0x00040000 463*3ff01b23SMartin Matuska 464*3ff01b23SMartin MatuskaZIO_FLAG_DONT_QUEUE:0x00080000 465*3ff01b23SMartin MatuskaZIO_FLAG_DONT_PROPAGATE:0x00100000 466*3ff01b23SMartin MatuskaZIO_FLAG_IO_BYPASS:0x00200000 467*3ff01b23SMartin MatuskaZIO_FLAG_IO_REWRITE:0x00400000 468*3ff01b23SMartin MatuskaZIO_FLAG_RAW_COMPRESS:0x00800000 469*3ff01b23SMartin MatuskaZIO_FLAG_RAW_ENCRYPT:0x01000000 470*3ff01b23SMartin Matuska 471*3ff01b23SMartin MatuskaZIO_FLAG_GANG_CHILD:0x02000000 472*3ff01b23SMartin MatuskaZIO_FLAG_DDT_CHILD:0x04000000 473*3ff01b23SMartin MatuskaZIO_FLAG_GODFATHER:0x08000000 474*3ff01b23SMartin MatuskaZIO_FLAG_NOPWRITE:0x10000000 475*3ff01b23SMartin MatuskaZIO_FLAG_REEXECUTED:0x20000000 476*3ff01b23SMartin MatuskaZIO_FLAG_DELEGATED:0x40000000 477*3ff01b23SMartin MatuskaZIO_FLAG_FASTWRITE:0x80000000 478*3ff01b23SMartin Matuska.TE 479*3ff01b23SMartin Matuska. 480eda14cbcSMatt Macy.Sh SEE ALSO 481*3ff01b23SMartin Matuska.Xr zfs 4 , 48216038816SMartin Matuska.Xr zed 8 , 48316038816SMartin Matuska.Xr zpool-wait 8 484