Files
lab/destroy
2022-10-17 09:44:48 +02:00

9 lines
365 B
Plaintext

## Using SSH:
## * Log in to hypervisor, retrieve list of running VMs
## * Log in to hypervisor, retrieve list of ZFS volumes
## * List any VM matching spec ^vpp[\d]+-[\d+]$
## * List any ZFS datasets matching matching spec ^ssd-vol0/vpp[\d]+-[\d+]$
## * If --force is set:
## * Destroy matching VMs
## * Recursively delete any matching ZFS datasets