[BlueOnyx:25688] Re: Deleting Aventurine Snapshots

Michael Stauber mstauber at blueonyx.it
Fri Nov 11 11:38:14 -05 2022


Hi Michael,

> When I run a prlctl snapshot-list (Snapshot_ID) on the servers without 
> problems it shows no snapshots. But on the one with the problem it shows:
> 
> PARENT_SNAPSHOT_ID                      SNAPSHOT_ID
>                                                                          
>              {8ea34399-eef7-43ba-a708-102ee9b08a10}
> {8ea34399-eef7-43ba-a708-102ee9b08a10}    
>   {335d5585-5ad9-42d1-8127-00eebed31981}
> {335d5585-5ad9-42d1-8127-00eebed31981}  
>   {ab1a9f3c-6468-4f6e-a6eb-f560c227a8e6}
> {ab1a9f3c-6468-4f6e-a6eb-f560c227a8e6}    
>   *{67f1a52a-817a-4efc-ba04-f56098f4865d}
> 
> and a new one seems to be added each night.
Yes, snapshots (these are like rollback-points on Windows) can be 
deleted. But they *must* be deleted with the "prlctl" tool.

See: 
https://docs.openvz.org/openvz_command_line_reference.webhelp/_prlctl_snapshot_snapshot_list_snapshot_switch_snapshot_delete_2.html

In my experience it is best to first get a tree view of the snapshot 
structure, as there might be several children snapshots that are tied 
into one or more parents. And you have to delete them from youngest to 
oldest.

You can list the snapshots in a tree view like this:

#> prlctl snapshot-list <VM_name> -t

And then delete them from youngest first like this:

#> prlctl snapshot-delete <VM_name> --id <snapshot_ID>

That should do it.

-- 
With best regards

Michael Stauber



More information about the Blueonyx mailing list