Hello, Does anyone has an experience and can recommecnd about backup techniques and backup agents inside Xen domains ? Regards, Dave _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Tue, 2007-03-27 at 22:24 +0200, David Shwatrz wrote:> Hello, > Does anyone has an experience and can recommecnd about backup > techniques and backup agents inside Xen domains ? >Assuming this is for Linux/Unix. I still use amanda (haven''t jumped on the Bacula bandwagon yet, but I''ve heard many great things). Most of my domU''s have the amanda client installed, and I have daily and monthly D2D backups jobs with them to an eSATA drive. The amanda server is also a domU. A couple of domU''s are in a DMZ network, so I don''t have amanda agents on them. The way I back those up is, using a script, I make LVM snapshots of the DMZ domU''s from the dom0, then block-attach the snapshots to the backup server, from there the backup server mounts backs up the snapshots as it would a local disk. The snapshots are then unmounted, block-detached, and discarded. I also backup my physical machines from the same backup server and it''s been running well for a while now. Restores work as they would on any other amanda client. -- Albert W. Hopkins _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Tue, 2007-03-27 at 22:34 +0100, Alan Pearson wrote:> Albert, > > Could you explain block-attach ?[X-Posted to xen-users as others might find this useful.] The xm command have sub-commands called "block-attach" and "block-detach". The xm man page explains them (although I think "block-detach" has inaccurate documentation the last I checked). Basically they let you hotplug/unplug a (virtual) block device to a domU. This is done from the dom0. So basically what I do is: dom0# lvcreate -L1G -s -n mydomU sata1/mydomU-snap dom0# xm block-attach amandaserver phy:sata1/mydomU-snap dom0# blkid=$(xm block-list amandaserver| tail -n 1| awk ''{ print $1; }'') "xm block-list" lists the block devices attached to a domain. I''m making the assumption that the last item in the list is the one most recently attached. So far this is has worked but I haven''t seen it actually documented so the behavior could change. Unfortunately you have to block-detach by block id instead of the actual device/filename so we need to keep track of the block id. After the snapshot has been created and block-attached to the Amanda server. The backup server server fscks the newly attached devices, mounts them, does its backups, and unmounts the attached snapshots. Then from dom0: dom0# xm block-detach amandaserver $blkid dom0# lvremove -f sata1/mydomU-snap I''ve described how one would do this from the command line. Of course my actual backups use scripts. I can post those if you want. The command-line description hopefully gives you the basic idea though. You can also hot-attach network devices, but I haven''t played with that. -- Albert W. Hopkins _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hello, On Tue, 27 Mar 2007, David Shwatrz wrote:> Does anyone has an experience and can recommecnd about backup techniques > and backup agents inside Xen domains ?http://www.bacula.org/ _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Dave, What I have been doing for backups is to use lvm snapshots from dom0 and then use duplicity. something like this: # lvcreate --size 128M --snapshot --name snap /dev/vg00/web_root # mount /dev/vg00/snap /mnt/snap # duplicity /mnt/snap scp://remotehost/web_root # umount /mnt/snap # lvremove -f vg00/snap On Tue, Mar 27, 2007 at 10:24:17PM +0200, David Shwatrz wrote:> Hello, > Does anyone has an experience and can recommecnd about backup techniques > and backup agents inside Xen domains ? > > Regards, > Dave> _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users- -- Matt Okeson-Harlow Sen gutoj malgrandaj maro ne ekzistus -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) iD8DBQFGCkH6IC6c4rRklDURAgpzAJ9ym3UR5TrgOks2pl3pZEE3z7oSGQCeLcsJ C84v6pjKrJztACIiOYHTBdc=U3Xr -----END PGP SIGNATURE----- _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users