LINBIT / linstor-server

High Performance Software-Defined Block Storage for container, cloud and virtualisation. Fully integrated with Docker, Kubernetes, Openstack, Proxmox etc.
https://docs.linbit.com/docs/linstor-guide/
GNU General Public License v3.0
984 stars 76 forks source link

add option to force deletion of zfs snapshots #209

Open ggzengel opened 3 years ago

ggzengel commented 3 years ago

I like to make snapshots with zfs-auto-snapshot. If somebody delete/move VMs/VHDs the storage won't be deleted.

Please give the option (like ZfscreateOptions) to call zfs delete with "-r". Proxmox does it already with local ZFS volumes.

Description:
    (Node: 'px4') Failed to delete zfs volume
Details:
    Command 'zfs destroy zpool1/drbd/vm-401-disk-1_00000' returned with exitcode 1. 

    Standard out: 

    Error message: 
    cannot destroy 'zpool1/drbd/vm-401-disk-1_00000': volume has children
    use '-r' to destroy the following datasets:
    zpool1/drbd/vm-401-disk-1_00000@zfs-auto-snap_hourly-2020-12-30-0417
ggzengel commented 1 year ago

I still miss this option very often