What steps are needed to backup VM?

cdsJerry

Renowned Member
Sep 12, 2011
222
9
83
What are the steps needed to backup a Proxmox VM? Here's what I've done, but it doesn't work.

Mounted an Iomega StorCenterIX2 on my network and configured an NFS share called backup

Opened the Proxmox GUI and went to Storage then "Add NFS Share" from the Storage List menu and scanned the network to locate the NFS share (successful). I now have a "local" storage in addition to "backups" as an NFS share.

Then I went to Backup Configuration and selected "Create new job" from the "Backup Jobs" drop down and selected the storage: as Backups (nfs). Set it to backup every day at 2AM, Snapshot mode. Max files: 1 And then in the lower part of the screen I clicked the checkbox beside the VMID 101 box which is a Windows 2008 server that's running in kvm type. Then saved.

However... it doesn't appear that anything is being backed up. The destination drive on the Iomega has nothing in it. I don't see anything giving results from the attempted backup, failed, successful, or otherwise.

I tried looking on the Logfile but it's just line after line of "pvedaemon 8242 WARNING: Cannot encode 'meminfo' element as 'hash'. Will be encoded as 'map' instead" along with several lines of "proxwww 10222 Starting new child 10222" where the number involved keeps changing, but with the same error.

What have I done wrong?
 
you have described it right. as soon as you created the job, a cron job will be scheduled. check the syslog at 2 am.

(the warnings you mentioned are not related, ignore them).
 
The logs only show the last 100 lines and I don't know how to get to the older log files (I'm really new to Linux, sorry, I'm learning). So I changed the time in the backup configuration and told it to back up at 11:08 instead then copied the logs. This is what I got.
******************
11:07:01 cron 2636 (*system*vzdump) RELOAD (/etc/cron.d/vsdump)
11:08:01 cron 20264 (root) CMD (vzdump --quiet --snapshot --storage backups --maxfiles 1 --mailto myemail@gmail.com 101)
11:10:01 cron 20392 (root) CMD (test -x /usr/lib/atsar/atsa12 && /usr/lib/atsar/atsa1)
11:17:13 cron 20842 (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
******************

And yes, it has read/write access to the NFS. At least I think so. The Iomega software is a bit strange, but I've listed the IP and subnet as having write permissions to the NFS share.

Nothing ever shows up in my email saying if it completed or not, but there's nothing in the Iomega folder so it must not have worked.
 
As reported a few min. ago I reset the time so I could get the log file. The only change I made was to set the backup time in the backup set. It appears to be backing up! At least there are files now in the destination folder on the Iomega drive. They're tmp files and dat files, but they're there, and growing. Does Proxmox have something against working at 2AM?
 
Yesterday after it succeeded I changed the time back to 02:00 I'd like to report that it DID run successfully. Again, not sure why it's willing to work now when it wouldn't before, but it's working now and I'm happy.