Skip to content

Recursive tag release does not work. #18126

@thystra

Description

@thystra

System information

Type Version/Name
Distribution Name Ubuntu
Distribution Version 24.04
Kernel Version 6.8.0-90-generic
Architecture amd64
OpenZFS Version zfs-2.2.9-0arter97~ubuntu24.04.1
zfs-kmod-2.2.2-0ubuntu9.4

Describe the problem you're observing

Attempting to recursively remove a tag (introduced by syncoid, syncoid_fafnir). Man page indicates that zfs release -r tag system should release the tag on all descendant systems, but does not do so.

Describe how to reproduce the problem

use zfs release -r syncoid_fafnir to release holds on snapshots

Include any warning/errors/backtraces from the system logs

Image
root@nidhoggur:~/scripts# zfs holds NEST-ARCHIVE-ZFS/alanbackups/fafnirLTS-2026/root@autosnap_2026-01-08_08:00:02_hourly
NAME                                                                                  TAG             TIMESTAMP
NEST-ARCHIVE-ZFS/alanbackups/fafnirLTS-2026/root@autosnap_2026-01-08_08:00:02_hourly  syncoid_fafnir  Thu Jan  8 03:49 2026
root@nidhoggur:~/scripts# zfs release syncoid_fafnir NEST-ARCHIVE-ZFS/alanbackups/fafnirLTS-2026 -r
'NEST-ARCHIVE-ZFS/alanbackups/fafnirLTS-2026' is not a snapshot
root@nidhoggur:~/scripts# zfs release syncoid_fafnir NEST-ARCHIVE-ZFS/alanbackups/fafnirLTS-2026@autosnap_2026-01-10_08:00:10_hourly -r
root@nidhoggur:~/scripts# zfs destroy -r NEST-ARCHIVE-ZFS/alanbackups/fafnirLTS-2026
cannot destroy snapshot NEST-ARCHIVE-ZFS/alanbackups/fafnirLTS-2026/home@autosnap_2026-01-10_08:00:09_hourly: dataset is busy
cannot destroy snapshot NEST-ARCHIVE-ZFS/alanbackups/fafnirLTS-2026/replicant/Dropbox@autosnap_2026-01-10_09:00:10_hourly: dataset is busy
cannot destroy snapshot NEST-ARCHIVE-ZFS/alanbackups/fafnirLTS-2026/replicant/storage@autosnap_2026-01-10_09:00:10_hourly: dataset is busy
cannot destroy snapshot NEST-ARCHIVE-ZFS/alanbackups/fafnirLTS-2026/replicant/Nextcloud@autosnap_2026-01-10_09:00:10_hourly: dataset is busy
cannot destroy snapshot NEST-ARCHIVE-ZFS/alanbackups/fafnirLTS-2026/replicant/photos@autosnap_2026-01-10_09:00:10_hourly: dataset is busy
cannot destroy 'NEST-ARCHIVE-ZFS/alanbackups/fafnirLTS-2026/replicant': dataset already exists
cannot destroy snapshot NEST-ARCHIVE-ZFS/alanbackups/fafnirLTS-2026/var/lib@autosnap_2026-01-08_08:00:02_hourly: dataset is busy
cannot destroy snapshot NEST-ARCHIVE-ZFS/alanbackups/fafnirLTS-2026/var@autosnap_2026-01-08_08:00:02_hourly: dataset is busy
cannot destroy snapshot NEST-ARCHIVE-ZFS/alanbackups/fafnirLTS-2026/root@autosnap_2026-01-08_08:00:02_hourly: dataset is busy
cannot destroy 'NEST-ARCHIVE-ZFS/alanbackups/fafnirLTS-2026': dataset already exists
root@nidhoggur:~/scripts# zfs release -r syncoid_fafnir NEST-ARCHIVE-ZFS/alanbackups/fafnirLTS-2026
'NEST-ARCHIVE-ZFS/alanbackups/fafnirLTS-2026' is not a snapshot
root@nidhoggur:~/scripts# zfs release -r syncoid_fafnir NEST-ARCHIVE-ZFS/alanbackups/fafnirLTS-2026
'NEST-ARCHIVE-ZFS/alanbackups/fafnirLTS-2026' is not a snapshot
root@nidhoggur:~/scripts# zfs release -r syncoid_fafnir NEST-ARCHIVE-ZFS/alanbackups/fafnirLTS-2026@autosnap_2026-01-10_08:00:10_hourly
cannot release hold from snapshot 'NEST-ARCHIVE-ZFS/alanbackups/fafnirLTS-2026@autosnap_2026-01-10_08:00:10_hourly': dataset does not exist

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: DefectIncorrect behavior (e.g. crash, hang)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions