Todos Nuevo

user:thomas gists creados por el usuario

title:mygist gists con el título indicado

filename:myfile.txt gists que contienen archivos con el nombre indicado

extension:yml gists que contienen archivos con la extensión indicada

language:go gists que contienen archivos con el lenguaje indicado

topic:homelab gists with given topic

Registrarse

Iniciar sesión


Todos Nuevo Registrarse Iniciar sesión

All gists matching topic ZFS

Recientemente creado
Menos reciente creado
Recientemente actualizado
Menos reciente actualizado
ZZ's Avatar

ZZ / zfs_release_holds.sh

0 gustos
0 bifurcaciones
1 archivos
Última actividad 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 )"
Siguiente Anterior

Desarrollado por Opengist ⋅ Load: 23ms⋅

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