VM Metadata Backup VDI is full

Delete old metadata backups until the fix is released.

List the metadata backup VDI UUID: /opt/xensource/bin/xe-restore-metadata -p 2> /dev/null

e8defa67-ef63-41b9-a805-4917f3a7d879

List the device associated to the VDI: /opt/xensource/debug/with-vdi e8defa67-ef63-41b9-a805-4917f3a7d879

DEVICE=sm/backend/43f854b7-1709-72ad-c99e-a76e10577abf/e8defa67-ef63-41b9-a805-4917f3a7d879

Mount the device: mount /dev/sm/backend/43f854b7-1709-72ad-c99e-a76e10577abf/e8defa67-ef63-41b9-a805-4917f3a7d879 /mnt

List .db files, remove the old ones and verify:

cd /mnt

ls -l

total 2850

-rw——- 1 root root 721679 Dec 27 17:10 35cedfd5-ce02-1bd7-e964-573309d09a5b.db

-rw——- 1 root root 721679 Dec 27 17:09 35cedfd5-ce02-1bd7-e964-573309d09a5b.db.1

-rw——- 1 root root 721679 Dec 27 17:01 35cedfd5-ce02-1bd7-e964-573309d09a5b.db.2

-rw——- 1 root root 721679 Dec 27 17:00 35cedfd5-ce02-1bd7-e964-573309d09a5b.db.3

drwxr-xr-x 2 root root 1024 Dec 27 17:00 conf

drwx—— 2 root root 12288 Dec 27 17:00 lost+found

drwxr-xr-x 6 root root 1024 Dec 27 17:10 metadata

rm 35cedfd5-ce02-1bd7-e964-573309d09a5b.db.3 35cedfd5-ce02-1bd7-e964-573309d09a5b.db.2

List metadata folders, remove the old ones and verify:

cd metadata/

ls -l

total 4

drwxr-xr-x 4 root root 1024 Dec 27 17:00 2018-12-27-17-00-48

drwxr-xr-x 4 root root 1024 Dec 27 17:01 2018-12-27-17-01-32

drwxr-xr-x 4 root root 1024 Dec 27 17:09 2018-12-27-17-09-51

drwxr-xr-x 4 root root 1024 Dec 27 17:10 2018-12-27-17-10-00

rm -rf 2018-12-27-17-00-48 2018-12-27-17-01-32

ls -l

total 2

drwxr-xr-x 4 root root 1024 Dec 27 17:09 2018-12-27-17-09-51

drwxr-xr-x 4 root root 1024 Dec 27 17:10 2018-12-27-17-10-00

Notes:

– Remove the same amount of old .db files and folders inside metadata/

– Make sure that the removed items are the oldest ones

– After this you should have only newer metadata backups releasing some space from the VDI.

Related:

  • No Related Posts

Leave a Reply