ZFS-PROMOTE(8)
β¨ ZFS-PROMOTE β¨
okay bestie, welcome to zfs-promote β the glow-up command for your clones π
π NAME π
zfs-promote β promote a clone dataset so it no longer depends on its origin snapshot π¦
πΈ SYNOPSIS πΈ
zfs promote clone
π DESCRIPTION π
The zfs promote command is the moment your clone stops being a clone and becomes the main character. It makes it possible to destroy the dataset that the clone was created from β yes, literally destroy your origin. π
The clone parent-child dependency relationship gets reversed, so the origin dataset becomes a clone of the dataset you specified. It's giving "we swapped places, no cap." π
The snapshot that was cloned, plus any snapshots previous to that snapshot, are now owned by the promoted clone. The space they use moves from the origin dataset over to the promoted clone, so enough space must be available to accommodate these snapshots. No new space is consumed by this operation, but the space accounting is adjusted. Periodt. π«
Also, the promoted clone must not have any conflicting snapshot names of its own. If it does, the zfs rename subcommand can be used to rename any conflicting snapshots. Fix it before it fixes you, fr fr. π
π EXAMPLES π
β Example 1: Promoting a ZFS Clone
The following commands illustrate how to test out changes to a file system, and then replace the original file system with the changed one, using clones, clone promotion, and renaming. Follow along bestie, this is the whole plot π:
# zfs create pool/project/production
populate /pool/project/production with data
# zfs snapshot pool/project/production@today
# zfs clone pool/project/production@today pool/project/beta
make changes to /pool/project/beta and test them
# zfs promote pool/project/beta
# zfs rename pool/project/production pool/project/legacy
# zfs rename pool/project/beta pool/project/production
once the legacy version is no longer needed, it can be destroyed
# zfs destroy pool/project/legacy
see how beta went from side character to lead role?? iconic behavior honestly π
π SEE ALSO π
and that's the whole page, bestie π«Ά this one comes to you from OpenZFS, dated July 11, 2022 β so go promote something and live your truth πβ¨
π¦ 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) 2009 Sun Microsystems, Inc. All Rights Reserved
- Copyright 2011 Joshua M. Clulow <josh@sysmgr.org>
- Copyright (c) 2011, 2019 by Delphix. All rights reserved
- Copyright (c) 2013 by Saso Kiselkov. All rights reserved
- Copyright (c) 2014, Joyent, Inc. All rights reserved
- Copyright (c) 2014 by Adam Stevko. All rights reserved
- Copyright (c) 2014 Integros [integros.com]
- Copyright 2019 Richard Laager. All rights reserved
- Copyright 2018 Nexenta Systems, Inc
- Copyright 2019 Joyent, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms