Unable to backup clones

My nightly backups have failed due to an issue with clones. Are clones not considered their own VM or something?

...
mysql-2.hldns.net    Snapshot of /dev/vg_h4/mysql-2_img failed :   -        
mysql-3.hldns.net    Snapshot of /dev/vg_h4/mysql-3_img failed :   -        
mysql-4.hldns.net    Snapshot of /dev/vg_h4/mysql-4_img failed :   -        
...
Backing up mysql-2.hldns.net to /backup/mysql-2.hldns.net.gz on host system ..
    Creating LVM snapshots for disks of mysql-2.hldns.net ..
.. backup failed : Snapshot of /dev/vg_h4/mysql-2_img failed :   Snapshots of snapshots are not supported.
 
 
Backing up mysql-3.hldns.net to /backup/mysql-3.hldns.net.gz on host system ..
    Creating LVM snapshots for disks of mysql-3.hldns.net ..
.. backup failed : Snapshot of /dev/vg_h4/mysql-3_img failed :   Snapshots of snapshots are not supported.
 
 
Backing up mysql-4.hldns.net to /backup/mysql-4.hldns.net.gz on host system ..
    Creating LVM snapshots for disks of mysql-4.hldns.net ..
.. backup failed : Snapshot of /dev/vg_h4/mysql-4_img failed :   Snapshots of snapshots are not supported.
Status: 
Active

Comments

Huh ... I didn't realize that snapshotting snapshots wasn't allowed.

There isn't really a good solution to this, other than disabling use of snapshots while cloning (which can be done on the Cloudmin Configuration page). This has the downside that cloning will be slightly slower though.

Steffan's picture
Submitted by Steffan on Fri, 10/07/2016 - 11:10 Pro Licensee

Ok, so how do I fix this issue so they will back up? Delete and redo the 3 VMs?

Also, I can find no such option you mention.

Steffan's picture
Submitted by Steffan on Fri, 10/07/2016 - 12:00 Pro Licensee

Reading on snapshots, I see this may be a problem if the clone is operating as a snapshot. Is there no way to convert it to a regular LVM or do I have to delete, create an image of my db server and then recreate all 3 VMs from the image?

I was wrong, there's no way to disable snapshotting when backing up. However, on the clone form there's an option to control if a snapshot is used or not.

The work-around is for each VM to create an image from it, delete the VM, and re-create from the image.

Steffan's picture
Submitted by Steffan on Fri, 10/07/2016 - 18:55 Pro Licensee

Where? See the attached screenshot. There's nothing on the clone form.

I'm not seeing a screenshot?

Steffan's picture
Submitted by Steffan on Fri, 10/07/2016 - 19:33 Pro Licensee

I edited the thread and attached it. I'll email it directly.

Oh right, it's the "Keep source system up while cloning" option. The only way a VM can be cloned live without corrupting the FS is to either use a snapshot, or shut it down during the process.

Steffan's picture
Submitted by Steffan on Sat, 10/08/2016 - 00:54 Pro Licensee

While you're at it the Create New System page should also offer the ability to select a bridge, not just the IP.

It should already, if you have multiple bridges selected on the Xen Host System page.

Steffan's picture
Submitted by Steffan on Sun, 10/09/2016 - 13:13 Pro Licensee

I do have multiple enabled but it is not showing that options. I'll send a screenshot.

On another note... I deleted those snapshots, made an image of the original and recreated them. I get this error now:

Backing up mysql-2.hldns.net to /backup/mysql-2.hldns.net.gz on host system ..
.. backup failed : All disks have been either excluded from the backup or are for swap
 
Backing up mysql-3.hldns.net to /backup/mysql-3.hldns.net.gz on host system ..
.. backup failed : All disks have been either excluded from the backup or are for swap
 
Backing up mysql-4.hldns.net to /backup/mysql-4.hldns.net.gz on host system ..
.. backup failed : All disks have been either excluded from the backup or are for swap

How can I fix this?

If you go to Resources -> Manage Disks and click on one of these disks, does it have the option checked to exclude it from the backup?