Tutti Nuovi

user:thomas utente che ha creato il gist

title:mygist titolo del gist

filename:myfile.txt nome di file nel gist

extension:yml estensione del file nel gist

language:go linguaggio del file nel gist

topic:homelab gists with given topic

Registrati

Entra


Tutti Nuovi Registrati Entra

All gists matching topic Bash

Più recente creazione
Meno recente creazione
Più recente aggiornamento
Meno recente aggiornamento
ZZ's Avatar

ZZ / zfs_release_holds.sh

0 mi piace
0 forks
1 files
Ultima volta attivo 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 )"
Più nuovi Più vecchi

Creato da Opengist ⋅ Load: 27ms⋅

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