ZPOOL-CLEAR(8)
β¨ zpool-clear β the glow-up your pool's error log desperately needed π
okay bestie, so this is the zpool-clear(8) page, straight out of the System Manager's Manual, and it's literally the "clear the drama" button for ZFS storage pools. errors? gone. reset. periodt. π§β¨
πΈ SYNOPSIS πΈ
zpool clear [--power] pool [device]β¦
that's it. that's the whole vibe. you pass a pool, you optionally pass some devices, and we clean house. π«Ά
π DESCRIPTION π
So like, this command clears device errors in a pool. That's the whole job. Not me overexplaining, that's genuinely it. π
- If you specify no arguments, all device errors within the pool get cleared. every last one. spring cleaning energy. π§Ήβ¨
- If you specify one or more devices, only those errors associated with the specified device or devices get cleared. surgical. precise. main character. π
Also, and this is the important bit so listen up: if the pool was suspended, it will be brought back online β provided the devices can actually be accessed. it's giving "we can fix her but only if the hardware cooperates." π
β οΈ but wait. Pools with multihost enabled which have been suspended cannot be resumed when there is evidence that the pool was imported by another host. no cap, that's a hard no. The same checks performed during an import will be applied before the clear proceeds, so it's not just vibes β there's an actual gate check. π§
π --power π
--powerβ powers on the device's slot in the storage enclosure, then waits for the device to show up before attempting to clear errors. and yes, this is done on all the devices specified. all of them. collectively. group effort. πͺ
Alternatively β and this is a cute lil shortcut β you can set the ZPOOL_AUTO_POWER_ON_SLOT environment variable to always enable this behavior, so you never have to type the flag again. obsessed. β¨
π Note: This flag currently works on Linux only. sorry to the other platforms, it's not you it's the kernel. π
π₯ SEE ALSO π₯
iykyk. go read those next, bestie. πβ¨
and that's a wrap on this page, which shipped as part of OpenZFS, dated April 29, 2024 β so yeah, go clear those errors and slay. you've got this. πππΈ
π¦ where this page comes from
- alpine 3.23: zfs-doc 2.4.4-r0 Β· CDDL-1.0
- alpine 3.24: zfs-doc 2.4.4-r0 Β· CDDL-1.0
- nixos 26.05: zfs-user 2.4.4
- nixpkgs unstable: zfs-user 2.4.4
- ubuntu resolute: zfsutils-linux 2.4.1-1ubuntu5 Β· CDDL-1.0
- ubuntu resolute: zfsutils-linux 2.4.1-1ubuntu5.1 Β· CDDL-1.0
- ubuntu stonking: zfsutils-linux 2.4.4-1ubuntu4 Β· CDDL-1.0
- π the page's license: CDDL-1.0
- Copyright (c) 2007, Sun Microsystems, Inc. All Rights Reserved
- Copyright (c) 2012, 2018 by Delphix. All rights reserved
- Copyright (c) 2012 Cyril Plisko. All Rights Reserved
- Copyright (c) 2017 Datto Inc
- Copyright (c) 2018 George Melikov. All Rights Reserved
- Copyright 2017 Nexenta Systems, Inc
- Copyright (c) 2017 Open-E, Inc. All Rights Reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms