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

Re: [Xen-users] Re: Mounting domU filesystem on Dom0. (xm mount)


  • To: xen-users@xxxxxxxxxxxxxxxxxxx
  • From: Siim Vahtre <siim_@xxxxxxxx>
  • Date: Thu, 15 Mar 2007 11:49:13 +0200 (EET)
  • Delivery-date: Thu, 15 Mar 2007 02:45:46 -0700
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

On Thu, 15 Mar 2007, Ligesh wrote:

In fact, that's a nice way to do perfect backup. Take an lvm snapshot and also save the ram image, and you can restore the state perfectly.

Don't forget that you need to get memory and LVM snapshots in the _exact_ time. But if you "xm pause" just before snapshot+save, it might actually work (I really don't know).

However, you won't have "perfect" state. You will, for example, probably have a nice mess with your network connections if you restore the ram image after some connections have already timed out. It _might_ be a problem.

lvm2 snapshot
e2fsck -f -y /dev/lvm-snapshot
mount -o ro /dev/lvm-snapshot /mnt/backup
rsync /mnt/backup

You don't need forced fsck. Journal reply should be enough. But occational full fsck might be useful nevertheless.

_______________________________________________
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®.