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
- 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