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] Howto access the guest filesystem under LVM ?

To: Pascal <ml@xxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-users] Howto access the guest filesystem under LVM ?
From: Nico Kadel-Garcia <nkadel@xxxxxxxxx>
Date: Sun, 17 Jun 2007 20:07:51 +0100
Cc: Marcin Owsiany <marcin@xxxxxxxxxx>, xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Sun, 17 Jun 2007 12:03:04 -0700
Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; b=bojIFRipiapef/oAHTsfzF9ods4bKpi4CEp8ClVwmWbn+EQL8gdJZkAVtk0cDqE7tWHHE5KjFXZvKvGC5TRRBgBCvzy+D+JXKATv3tUFBpCGjOy1+u7vCVhnsLBkuYdHlxtLZ+WFT4k2BXk/3acv52OqQJs728ukUypHc5V8Ecs=
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=Q/F9PVUiqMZNOXWuJRNVOtV/6xt7w6EwyNId79XSMMtXtjFBga61FVwHS0SGrkevacHuwtknSwMshLFMdO6oRjRF4Ob4odnKxp5JayvCwehKJBXVZ1dh3H/3/QYCbti2pZHV/hxlUXGIvtgrVXdhFKSFWB1PqaqlNb4DZ1+iFxM=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <467584C0.5040106@xxxxxxxxxxxxxxxxx>
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: <46757AD6.7090905@xxxxxxxxxxxxxxxxx> <20070617183746.GB5893@kufelek> <467584C0.5040106@xxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 1.5.0.12 (Windows/20070509)
Pascal wrote:

On Sun, Jun 17, 2007 at 08:17:58PM +0200, Pascal wrote:
I have created a guest using virt-install.
On the dom0 we have created a LogicalVolume and used it to install the guest

We need to copy all the contents of the guest, so we'd like to access the guest filesystem from dom0

Tried something like :
mount -o loop /dev/xenvps/mylv /mnt

But it doesn't work

Omit "-o loop". /dev/xenvps/mylv is a (symlink-to) a real block device
file, so there's no need for loop.

Keep in mind that having it mounted R/W in guest and R/W or R/O in dom0
at the same time is asking for trouble.

Thanks

Does it mean I should first shutdown the guest ?

and maybe do
mount /dev/mapper/xenvps-centos45 /mnt

(loke this it is not a symlink)
Pascal
In general, yes. Shut down the guest, to avoid the file system changing under you. Or if you're using LVM and just want to look at it, simply LVM snapshot it and look at the snapshot.

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