Has any1 created a cronjob that lists all VM's daily?
Some script that shows something similar than what Proxmox's Datacenter "Search" page does?
(Unfortunately even that won't show you what storage device it was on.)
I'm wondering what to put on that script.
The purpose of that script would be to help with restoration of virtual machines from backup if the host(s) dies.
The problem being that when the host dies there is no record of what was where so the restoration can be somewhat pain full.
What do you guys have to track those with?
I'm thinking something like this...
Then pipe those to a log file somewhere.
Comments?
Some script that shows something similar than what Proxmox's Datacenter "Search" page does?
(Unfortunately even that won't show you what storage device it was on.)
I'm wondering what to put on that script.
The purpose of that script would be to help with restoration of virtual machines from backup if the host(s) dies.
The problem being that when the host dies there is no record of what was where so the restoration can be somewhat pain full.
What do you guys have to track those with?
I'm thinking something like this...
cat /etc/pve/openvz/* |grep VE_PRIVATE=
VE_PRIVATE="/media/local3/private/102"
VE_PRIVATE="/media/local3/private/103"
VE_PRIVATE="/var/lib/vz/private/116"
VE_PRIVATE="/media/local4/private/121"
VE_PRIVATE="/var/lib/vz/private/140"
VE_PRIVATE="/media/local3/private/145"
VE_PRIVATE="/media/local4/private/190"
VE_PRIVATE="/media/local4/private/194"
VE_PRIVATE="/media/local4/private/195"
VE_PRIVATE="/media/local2/private/400"
VE_PRIVATE="/media/local2/private/401"
VE_PRIVATE="/media/local2/private/404"
VE_PRIVATE="/media/local3/private/406"
VE_PRIVATE="/var/lib/vz/private/411"
VE_PRIVATE="/media/local3/private/444"
VE_PRIVATE="/media/local3/private/445"
cat /etc/pve/qemu-server/* |grep ide
bootdisk: ide0
ide0: local4:172/vm-172-disk-1.qcow2,format=qcow2,size=10G
ide2: none,media=cdrom
bootdisk: ide0
ide0: local3:402/vm-402-disk-1.qcow2,format=qcow2,size=32G
ide2: none,media=cdrom
Then pipe those to a log file somewhere.
Comments?