From d5879275993e06a067f8a5735f19d21379143de1 Mon Sep 17 00:00:00 2001 From: Patrick Wagner Date: Wed, 29 Nov 2023 07:56:14 +0100 Subject: [PATCH] Update FreeBSD.md --- FreeBSD.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/FreeBSD.md b/FreeBSD.md index 4098e7d..8b2acc8 100644 --- a/FreeBSD.md +++ b/FreeBSD.md @@ -20,11 +20,19 @@ iocage create -n ip4_addr="10.192.0.28/24" defaultrouter="10.192.0.1" ## zfs +### Show holds on a specific snapshot + +If snapshots return as dataset is busy upon deletion, they are either dependent or use a tag that prevents them from being deleted. The command below will display any holds on a snapshot. + +```sh +zfs holds -r +``` + ### Migrate dataset to new pool ```sh -zfs snapshot -r old_pool/dataset_name@relocate -zfs send -Rv old_pool/dataset_name@relocate | zfs receive -d new_pool/new_dataset_name +zfs snapshot -r old_pool/@relocate +zfs send -Rv old_pool/@relocate | zfs receive -d new_pool/ ``` ## tcsh