[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] snapshot - backup for xen vm's


  • To: Ralf Schenk <rs@xxxxxxxxxx>
  • From: Nico Kadel-Garcia <nkadel@xxxxxxxxx>
  • Date: Sat, 19 May 2007 19:50:14 +0100
  • Cc: xen-users@xxxxxxxxxxxxxxxxxxx
  • Delivery-date: Sat, 19 May 2007 11:46:08 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; b=Ok2AplQxevuLGXAOXCr2f4veclxuqwpiwONxarfYt2n0uTl9vBduR1TCacqY4Kvagc/eFfRQlV3qVD3NIDhj6AZJ0cX7Q2lvQUALIKEh9S0IDDBjc7X01sn54IDabZTtUvmuvrHNzAUfXCLboboSoYZ0ta/Y4ZC7wnsvBuxU4fM=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

Ralf Schenk wrote:
it-news (Josef Lahmer) schrieb:
dear list,

is there a way to make a lvm-snapshot of an running xen-vm to implement a function like 
"snapshot-backup"?

- Connect to mysql of VM and issue "FLUSH TABLES WITH READ LOCK;FLUSH LOGS"
#) make snapshot
- Connect to mysql of VM and issue "UNLOCK tables"
#) mount snapshot
#) copy files
#) umount snapshot
#) remove snapshot

eg (http://tldp.org/HOWTO/LVM-HOWTO/snapshots_backup.html)

regards
josy

interessting: How to mount a XenVM filesystem on XenServer Host:
http://kb.xensource.com/entry.jspa?categoryID=14&externalID=162

Hello !

I do this every day. I added two points to your plan which I do with a
small perl script to get consistent Backups of my mysql Databases. I
also create/destroy the snapshot via this skript and mount the snapshot
volume. If you are interested I can send it via Mail.
Could I talk you into publishing that tool on the list, please? Or sending me a copy to save me some work?


_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.