Alle Neu

user:thomas Gists erstellt von Nutzer

title:mygist Gists mit Titel

filename:myfile.txt Gists mit Dateinamen

extension:yml Gists mit Dateiendung

language:go Gists in Sprache

topic:homelab gists with given topic

Registrieren

Anmelden


Alle Neu Registrieren Anmelden

All gists matching topic ZFS

Neueste erstellt
Älteste erstellt
Neueste bearbeitet
Älteste bearbeitet

Z / zfs_release_holds.sh

0 Favoriten
0 Forks
1 Dateien
Zuletzt aktiv 1760505205
Bash ZFS
1 # zfs.hold.release: $zfs_dataset $zfs_hold_name "mirror"
2 # arc - archive
3 # arc or mirror
4 # How to check that all ZFS snapshots within a pool are without holds before destroying that pool - Server Fault - https://serverfault.com/questions/456301/how-to-check-that-all-zfs-snapshots-within-a-pool-are-without-holds-before-destr
5 alias zfs.release="zfs.hold.release"
6 zfs.hold.release(){
7
8 zfs_dataset="${1:-""}"
9 zfs_hold_name="${2:-"mirror"}"
10 zfs_snapshot_userrefs="$(zfs get -Ht snapshot userrefs "$zfs_dataset" | grep -v $'\t'0 | cut -d $'\t' -f 1 )"
Neuer Älter

Powered by Opengist ⋅ Load: 46ms⋅

Deutsch
Čeština Deutsch English Español Français Magyar Italiano 日本語 Polski Português Русский Türkçe Українська 中文 繁體中文