ZPOOL-EXPORT(8)

bestie, you're reading ZPOOL-EXPORT(8) from the System Manager's Manual β€” and it's literally the "yeet my ZFS pools outta here" page. πŸ’–βœ¨


✨ NAME ✨

zpool-export β€” export ZFS storage pools

🌸 SYNOPSIS 🌸

zpool export [-f] -a|pool…

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so this command exports the given pools from the system. All devices are marked as exported, but are still considered in use by other subsystems. Not free-free, just exported, bestie. The devices can be moved between systems β€” even those of different endianness β€” and imported as long as a sufficient number of devices are present. πŸ’…

Before exporting the pool, all datasets within the pool are unmounted. And no cap: a pool can not be exported if it has a shared spare that is currently being used. 🫠

For pools to be portable, you must give the zpool command whole disks, not just partitions, so that ZFS can label the disks with portable EFI labels. Otherwise, disk drivers on platforms of different endianness will not recognize the disks. Periodt. πŸ¦‹

The flags, bestie:

  • -a β€” Exports all pools imported on the system.
  • -f β€” Forcefully unmount all datasets, and allow export of pools with active shared spares.
⚠️ And the -f tea: This command will forcefully export the pool even if it has a shared spare that is currently being used. This may lead to potential data corruption. Like, potential data corruption is not the vibe. Be careful. 😭

🌈 EXAMPLES 🌈

πŸŽ€ Example 1: Exporting a ZFS Storage Pool πŸŽ€

The following command exports the devices in pool tank so that they can be relocated or later imported:

# zpool export tank

πŸ‘‘ SEE ALSO πŸ‘‘


kisses, OpenZFS πŸ’– β€” July 11, 2022, ZPOOL-EXPORT(8)

πŸ“¦ where this page comes from