WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

[Xen-users] Snapshotting LVM backed guests from dom0

To: Xen-Users List <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-users] Snapshotting LVM backed guests from dom0
From: chris <tknchris@xxxxxxxxx>
Date: Sat, 17 Apr 2010 14:53:07 -0400
Delivery-date: Sun, 18 Apr 2010 09:14:57 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:received:message-id :subject:from:to:content-type; bh=o8buaECg3Y7uHSTuKdEDJU8yuhZnnWGSNjgVl8kDNPs=; b=Cwgeo4M9FMWZ38RdkPTElq1Hmwc5C2ty1HIvpoimuUA1WY+Tb7JI8sNfO2oP6eyFO6 2A12Dj4K6gpOP4IQn+ATzMI1ojn+SnbDKMWsOpMwq/fTdHqx2g+31+dFRUGIMuGvRWYn 6aB3vbiY7FmwtwEHPtNa/V81exXEKyQxBZbpQ=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=eK7vcnGz6vJY95vLwi5hUZnh98khmXjwzo/fBYyG0KzmYiMre0vPPUfeOCmOERAt8f dYvxHTOKKTvw0mH5K0PCbrp9uTg0tIjwkWJ4eHaKHsqanbxb7TtVTixJZZpxZqo1DTsL Yv9GryaOeLlMcceq9D9+njn8Stnwb3zoLXjAc=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Just looking for some feedback from other people who do this. I know
its not a good "backup" method but "crash consistent" images have been
very useful for me in disaster situations just to get OS running
quickly then restore data from a data backup. My typical setup is to
put the LV in snapshot mode while guest is running then dd the data to
a backup file which is on a NFS mount point. The thing that seems to
be happening is that the VM's performance gets pretty poor during the
time the copy is happening. My guesses at why this was happening were:

1.   dom0 having equal weight to the other 4 guests on the box and
somehow hogging cpu time
2.   lack of QoS on the IO side / dom0 hogging IO
3.   process priorities in dom0
4.   NFS overhead

For each of these items I tried to adjust things to see if it improved.

1.   Tried increasing dom0 weight to 4x the other VM's.
2.   Saw pasi mentioning dm-ioband a few times and think this might
address IO scheduling but haven't tried it yet.
3.   Tried nice-ing the dd to lowest priority and qemu-dm to highest
4.   Changing destination to a local

Changing the things above didn't really seem to help either alone or
in combination. My setup is Xen 3.2 and Xen 4.0 on dual nehalem
processors, 24GB RAM, RAID 5+0 of WD RE3 1TB disks. The hardware in
the boxes is quite good and there seems to be no noticable difference
between Xen versions. What I'd ideally like to accomplish is to be
able to take the backups with the least possible impact on the running
VM's as possible. I honestly don't care how long the backups take but
I want to avoid just slowing them down to a fixed speed, because it
seems inefficient/hacky. Can anyone share their experiences both good
and bad?

Thanks,
- chris

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

<Prev in Thread] Current Thread [Next in Thread>