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

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

To: "Ligesh" <myself@xxxxxxxxxx>, "Fajar A. Nugraha" <fajar@xxxxxxxxxxxxx>
Subject: Re: [Xen-users] Re: Mounting domU filesystem on Dom0. (xm mount)
From: "Nico Kadel-Garcia" <nkadel@xxxxxxxxx>
Date: Thu, 15 Mar 2007 13:37:39 -0000
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 15 Mar 2007 06:36:32 -0700
Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:from:to:cc:references:subject:date:mime-version:content-type:content-transfer-encoding:x-priority:x-msmail-priority:x-mailer:x-mimeole; b=Vo2MZjN1kEdsw5QhJ/xk3XOgOPxK1QJWB8NMbfydijXtqlzNQR7KcTmpA9/IfaWYB3g/6TTdhu/l+rIylqpl+GpVq7sbMWfYiDAMLLI4IPMCRNQRkk+rcG+Ybsx6AbSAzUrmdeg73mr4XPYjyNiZvIz+dpbNmdl+X8myVVftWcQ=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:from:to:cc:references:subject:date:mime-version:content-type:content-transfer-encoding:x-priority:x-msmail-priority:x-mailer:x-mimeole; b=Ha5aM8NIHG6oNikDXWG+c9iSXlc1VYX/UzzADbXuJ6vKD9mPzcauikcYI0rKygxiLqwBSer9XftSW6zatDimUZ8MvhFYS07cU7tNzN+3F9ado0toG35+PFRL5tPoSv47EqlXqEXXU7m1Ok6ZqezAE67FdoqSh1+5H/6rxF2ySMA=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <20070314111355.GA19329@xxxxxxxxxx> <45F7E485.1020704@xxxxxxxxxx><20070314122127.GA20413@xxxxxxxxxx><Pine.LNX.4.63.0703141416540.19442@xxxxxxxxxxxxx><20070314124654.GA21424@xxxxxxxxxx><45F7EFB1.3040701@xxxxxxxxxxxxx><20070314132123.GA21955@xxxxxxxxxx> <45F8A967.90709@xxxxxxxxxxxxx> <20070315094252.GA9064@xxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Ligesh wrote:

But in normal circumstances, what we do is, take an LVM snapshot,
then mount it, and then tar/rsync the contents. That can be
hazardous. Anyway, now that I have given it some consideration, it
appears, you can indeed run e2fsck on the LVM snapshot, and get a
consistent file system, albeit without the application buffers in the
ram.

Yes, it can be hazardous. Most operating systems page out information, and only write it to disk when they get around to it. This means that you may have mixed in blocks of data in files that haven't been paged back out to disk yet, especially files that get lots of traffic such as databases. It's even worse for databases, because they play various software tricks to assure that certain operations go to completion lest the database be corrupted, and those techniques do *NOT* typically involve getting everything written to disk. So you may backup the db files in the midst of what is supposed to be an atomic operation.

Even operations that write to two files in sequence become risky, such as adding user accounts and getting the account in /etc/passwd and not in /etc/shadow, or not vice versa. Such risks are small in typical operations, but they're real.

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