Thanks Kir, yes just after posting my question I realized I misunderstood the output from snapshot-list and also the snapshot without a UUID was actually a snapshot to be deleted.
Thanks also for the explanation of the difference between ploop and vzctl snapshots, that will come in handy! One thing I don't really understand, why isn't it possible to just delete all snapshots with a single command? Like for example by using vzctl snapshot VEID without --id would just delete all snapshots? I'm sure I could whip up a script to do this using a combination of snapshot-list and snapshot-delete, but why not just have that built in? Would there be any security risk or is it very difficult to do? On Tue, Mar 24, 2015 at 12:19 AM, Kirill Kolyshkin <kolysh...@gmail.com> wrote: > On 23 March 2015 at 05:35, Rene C. <ope...@dokbua.com> wrote: > > but if I go to /vz/private/2202/root.hdd I find > > > > 4.0K DiskDescriptor.xml > > 0 DiskDescriptor.xml.lck > > 300G root.hdd > > 161G root.hdd.{8c40287b-2e17-45d1-b58f-1119b3b58b53} > > 138G root.hdd.{fb7ba001-cb78-4dd3-9ac8-cb0c8cbab4f6} > > > > It doesn't seem that there are any snapshots though, so I guess somehow > some > > of these files are orphans? > > > > # vzctl snapshot-list 2202 > > PARENT_UUID C UUID > > DATE NAME > > * > > {a684e175-e9a0-4e22-aece-98a11081e2f0} 2014-08-10 18:00:01 > > > > Any way I can check what is safe to delete? > > So, you definitely have 1 vzctl snapshots (which you are free to delete). > > Note that there are vzctl snapshots and there are ploop snapshots. A > vzctl snapshot > is a ploop snapshot plus CT config file plus CT dump (if CT was > running while making > a snapshot). But you can also create ploop snapshots which vzctl knows > nothing > about, so if you did that you have to remove such a snapshot using > ploop command. > > See ploop man page for more details. > > As for which files are used by which snapshots, ploop snapshot-list > will give you an idea. > > NOTE that if a snapshot was created by vzctl, it's best to use vzctl > to remove it, as otherwise > vzctl snapshot-list will list a snapshot which is no longer valid, and > vzctl snapshot-delete > will fail to remove it (as it's already partly removed), The last > issue is fixed in the future > vzctl version, but it's still better to use the tool you used to > create snapshot to delete it. > _______________________________________________ > Users mailing list > Users@openvz.org > https://lists.openvz.org/mailman/listinfo/users >
_______________________________________________ Users mailing list Users@openvz.org https://lists.openvz.org/mailman/listinfo/users