Dear All,
because the organization I work for has to enter the 21 century eventually, and encouraged by the the excellent wiki's available, I'm giving Xen a try.
I' ve tested setting it all up but I have this question concerning making backups.
i' ve noticed that virsh snaphot-create does not work, and googling this, I can find many posts describing making backups with rbackup, lvm , dd, ....
The thing is there is not always a date with these posts and articles, so before I dig into this:
Is this still the way this is done, or is there now a more straightforward way to backup ( Xen ) vm's?
Many thanks for any advise.
Greetings, J
On 02/13/2014 12:03 PM, Johan Vermeulen wrote:
Dear All,
because the organization I work for has to enter the 21 century eventually, and encouraged by the the excellent wiki's available, I'm giving Xen a try.
I' ve tested setting it all up but I have this question concerning making backups.
i' ve noticed that virsh snaphot-create does not work, and googling this, I can find many posts describing making backups with rbackup, lvm , dd, ....
The thing is there is not always a date with these posts and articles, so before I dig into this:
Is this still the way this is done, or is there now a more straightforward way to backup ( Xen ) vm's?
have a look "in the horse's mouth".
http://www.xenproject.org/component/search/?searchword=backup&searchphra...
[watch for line wrap]
Many thanks for any advise.
many welcomes.
op 13-02-14 13:34, g schreef:
On 02/13/2014 12:03 PM, Johan Vermeulen wrote:
Dear All,
because the organization I work for has to enter the 21 century eventually, and encouraged by the the excellent wiki's available, I'm giving Xen a try.
I' ve tested setting it all up but I have this question concerning making backups.
i' ve noticed that virsh snaphot-create does not work, and googling this, I can find many posts describing making backups with rbackup, lvm , dd, .... The thing is there is not always a date with these posts and articles, so before I dig into this:
Is this still the way this is done, or is there now a more straightforward way to backup ( Xen ) vm's?
have a look "in the horse's mouth".
http://www.xenproject.org/component/search/?searchword=backup&searchphra...
[watch for line wrap]
Many thanks for any advise.
many welcomes.
Hello g, hello All,
thanks for the reaction.
I see nothing on the Xen site applicable to my ( relatively simple ) Xen-on-Centos6 setup. I don't want to install a control panel or Xen Xcp.
I will try this one : http://www.jansipke.nl/creating-backups-of-running-vms-in-xenserver/
* Search for the uuid of the VMs to backup # xe vm-list is-control-domain=false is-a-snapshot=false * Create a snapshot of each (running) VM # xe vm-snapshot uuid=d61bfc1a-33b2-5406-7ea5-76e4f7113220 new-name-label=snapshotname * Save the snapshot to file # xe template-param-set is-a-template=false ha-always-run=false uuid=b759625c-eab5-4e0f- be5e-a05bcbad869a #xe vm-export vm=b759625c-eab5-4e0f-be5e-a05bcbad869a filename=filename.xva * Remove the created snapshot # xe vm-uninstall uuid=b759625c-eab5-4e0f-be5e-a05bcbad869a force=true
and see how it goes.
Greetings to All
On 02/14/2014 09:56 PM, Johan Vermeulen wrote:
I will try this one : http://www.jansipke.nl/creating-backups-of-running-vms-in-xenserver/
XenServer != Xen. these directions won't work for Xen4CentoS.
You probably want to put your VMs disk images on logical volumes (LVM), leave some empty space ont eh volume group, then use LVM snapshots, mount the snapshots in the dom0 and take your backup off of those. A good program which I have recently come across for taking the actual backup is backuppc.
Peter
op 14-02-14 10:49, Peter schreef:
On 02/14/2014 09:56 PM, Johan Vermeulen wrote:
I will try this one : http://www.jansipke.nl/creating-backups-of-running-vms-in-xenserver/
XenServer != Xen. these directions won't work for Xen4CentoS.
You probably want to put your VMs disk images on logical volumes (LVM), leave some empty space ont eh volume group, then use LVM snapshots, mount the snapshots in the dom0 and take your backup off of those. A good program which I have recently come across for taking the actual backup is backuppc.
Peter _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Hello Peter,
thanks for pointing me in the right direction. I will do some testing following your advise.
I guess that means that the partitioning for the machine should be in function of the planned number ans size of the vm's?
friendly regards, J.
On 02/17/2014 09:34 PM, Johan Vermeulen wrote:
I guess that means that the partitioning for the machine should be in function of the planned number ans size of the vm's?
Not necessarily. I would make one large LVM volume group (VG) for pretty much the entire disk space then for each VM create a logical volume (LV) that is as big as you think you will need, but it doesn't need to be too big, it is easy to grow the LV later on if you need to. As I said before, make sure you leave some free space on the VG for snapshots.
Peter
op 18-02-14 22:47, Peter schreef:
On 02/17/2014 09:34 PM, Johan Vermeulen wrote:
I guess that means that the partitioning for the machine should be in function of the planned number ans size of the vm's?
Not necessarily. I would make one large LVM volume group (VG) for pretty much the entire disk space then for each VM create a logical volume (LV) that is as big as you think you will need, but it doesn't need to be too big, it is easy to grow the LV later on if you need to. As I said before, make sure you leave some free space on the VG for snapshots.
Peter _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Hello Peter,
thanks for putting me on the right track.
I partitioned a testing machine accordingly.
[root@minas2 ~]# df -h Bestandssysteem Grtte Gebr Besch Geb% Aangekoppeld op /dev/mapper/vg_minas2-LogVol00 49G 753M 45G 2% / tmpfs 3,9G 0 3,9G 0% /dev/shm /dev/sda1 485M 32M 429M 7% /boot /dev/mapper/vg_minas2-LogVol02 9,7G 150M 9,0G 2% /home /dev/mapper/vg_minas2-LogVol04 9,7G 150M 9,0G 2% /ldap /dev/mapper/vg_minas2-LogVol05 49G 180M 46G 1% /mailserver /dev/mapper/vg_minas2-LogVol03 9,7G 150M 9,0G 2% /openvpn
anticipating the creation of an openvpn - ldap - and mailserver.
Greetings, J.
On 02/20/2014 01:19 AM, Johan Vermeulen wrote:
/dev/mapper/vg_minas2-LogVol04 9,7G 150M 9,0G 2% /ldap /dev/mapper/vg_minas2-LogVol05 49G 180M 46G 1% /mailserver /dev/mapper/vg_minas2-LogVol03 9,7G 150M 9,0G 2% /openvpn
anticipating the creation of an openvpn - ldap - and mailserver.
You cannot have those mounted in the dom0 and domU at the same time, the domU will refuse to start and if you manage it you will end up with filesystem corruption.
Peter