ZPOOL-INITIALIZE(8)

πŸ’– zpool-initialize β€” bestie, we're writing to the unallocated bits πŸ’–

okay so this is zpool-initialize(8), from the System Manager's Manual, and it's genuinely one of the most satisfying pool ops, no cap. let's get into it ✨


🌸 SYNOPSIS 🌸

zpool initialize [-c|-s |-u] [-w] -a|pool [device]…

πŸ¦‹ DESCRIPTION πŸ¦‹

So basically: this starts initializing stuff by writing to every single unallocated region on the devices you point at. Or, if you don't name any individual devices, it does all the eligible devices in the pool. periodt.

heads up bestie β€” only leaf data</> or log devices can be initialized. that's the vibe check and only those pass. πŸ’…

here's every flag, exactly as they come, no notes:

  • -a, --all β€” begin, cancel, or suspend initializing on all pools. all of them. every last one. πŸ‘‘
  • -c, --cancel β€” cancel initializing on the devices you name, or on all the eligible devices if you didn't name any. and listen: if one or more target devices are invalid or aren't currently being initialized, the command fails and no cancellation happens on any device. it's giving all-or-nothing, fr fr. 😭
  • -s, --suspend β€” suspend initializing on the named devices, or all eligible devices if you named none. same energy as above: if one or more target devices are invalid or not currently being initialized, the command fails and nothing gets suspended anywhere. then whenever you're ready, you resume by running zpool initialize with no flags on the relevant target devices. 🫢
  • -u, --uninit β€” clears the initialization state on the named devices, or all eligible devices if you didn't name any. but if the devices are being actively initialized, the command will fail. πŸ’€ once it's cleared, you can run zpool initialize with no flags to re-initialize all the unallocated regions on the relevant target devices. glow-up round two. ✨
  • -w, --wait β€” wait until the devices have actually finished initializing before returning. yes it just sits there. yes it's patient. main character behavior. 🌈

πŸ‘‘ SEE ALSO πŸ‘‘

zpool-add(8), zpool-attach(8), zpool-create(8), zpool-online(8), zpool-replace(8), zpool-trim(8)


mwah πŸ’œ that's the whole page. brought to you by OpenZFS, dated July 30, 2025 β€” the ZPOOL-INITIALIZE(8) era, and honestly? iconic. go initialize something responsibly, bestie πŸŽ€

πŸ“¦ where this page comes from