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

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


  • To: "Ligesh" <myself@xxxxxxxxxx>, "Fajar A. Nugraha" <fajar@xxxxxxxxxxxxx>
  • 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
  • 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=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

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


 


Rackspace

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