required command to remove the ZFS snapshot via CLI

powersupport

Well-Known Member
Jan 18, 2020
295
2
58
30
Hi,

we have listed the snapshot using 'zfs list -t snapshot' but Could you please let me know how to remove the snapshot from command line?

Looking forward to your reply.

Regards
 

Attachments

  • zfs list.png
    zfs list.png
    90.4 KB · Views: 22
zfs destroy YourPool/SomeDatasetOrZvol@Snapshotname. Its the same as deleting a dataset or zvol just with the "@Snapshotname" after it.
 
Hi,

Seems like it is not working, Our ZFS pool is ool is completely full this might fail. I have attached the screenshot.

May I know if there is any way to remove these snapshots.

Please advise.zfs storage.png
 
Hi,

In this case, If we run "zfs destroy zfs_pool_01/vm-100-disk-0@__replicate_100-0_1650456000__ ". It will remove the snapshot? Also, may I confirm it will not affect storage data?

Please advise.
 
Hi,

In this case, If we run "zfs destroy zfs_pool_01/vm-100-disk-0@__replicate_100-0_1650456000__ ". It will remove the snapshot? Also, may I confirm it will not affect storage data?

Please advise.
Yes, this will only delete the snapshot, not the zvol itself. But looks like you are working with replicated zfs pools. Not sure if that could screw up something else, if the snapshot created by the replication service is suddenly missing.
 
Hi,

So, there is no other way to remove the zfs snapshot without affecting other data files?

Please advise.