How to fixture out what is using backup storage?
-
I use an NFS device to backup XCP-NG. Is there a good way to figure out what VM is using all teh storage on an NFS backup device?
For example:
One directory is :
/blahblah/backups/vm-backups/a199a812-b2bd-f4d3-a485-44ac888ab355
and there are several files like this:/blahblah/backups/vm-backups/a199a812-b2bd-f4d3-a485-44ac888ab355/20250715T080016Z.xva
Is there an easy way to figure what belongs to what?
Thanks!
-
P poddingue marked this topic as a question
-
@abudef asked almost exactly this a few days ago over on 12466, and @pierrebrunet answered it there with a link to the doc describing the layout, so that thread's probably your quickest route.
For the specific "which VM is this folder" question, the UUID in the directory name is the VM's own UUID, so
xe vm-list uuid=<that-uuid> params=name-labelon a host should give you the name back.One thing that bite me when I tried it: if the VM has since been deleted, that command prints nothing at all and still exits cleanly, so silence means "no such VM here" rather than "the command didn't work".
Those silent ones are probably where your space has gone, if I had to guess. I'm not the backup expert here so someone may well have a tidier way of doing it.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login