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] mount xen partitions inside logical volume from dom0?

To: "Nico Kadel-Garcia" <nkadel@xxxxxxxxx>
Subject: Re: [Xen-users] mount xen partitions inside logical volume from dom0?
From: "Peter Peltonen" <peter.peltonen@xxxxxxxxx>
Date: Sun, 11 Mar 2007 17:35:38 +0200
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Sun, 11 Mar 2007 08:34:55 -0700
Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Q5hLqZ1Drrr+tDbl+Chr42aunz4rgoZq8/XORVcafHwKgopga1vdXaBnhPx6WEnsfnPbsVpYfaRcmuqzIIUUgypTvxt+gNmZulTFrQagvGjnhhR4x72pVFR1Cff60woGnjWkGw45OwSBqDUxEztc4OncfjO9Kajqte29Qbr+vLk=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=JGXSYbB1r5EO+0VXrPaxWUGGWF+zpThStMqaHG1vzUMxsJRSzNgXCuc8Xr2YlR4UO59WJLtht6ZgD9ktnO+lSAFj6tNuQpXGDMOnDMjrPfMJY4tXxQhIwQ+2Nc8zi3Ehh/ZOuZB5DWEcNPp5WABlMdC3PF17MdDoGyGv7dighRE=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <003001c763de$6e6c7680$6701a8c0@raoul>
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: <69b6a1580703101505y15c1953du6ae0374ecd83e057@xxxxxxxxxxxxxx> <003001c763de$6e6c7680$6701a8c0@raoul>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
On 3/11/07, Nico Kadel-Garcia <nkadel@xxxxxxxxx> wrote:
You use the "lomount" command, I believe. Type "lomount --help" to gain
access to the partitions inside :/dev/mapper/VolGroup00-LogVol02.

But I thought lomount can handle only disk images? At least that's
what the help says:

# lomount -h
Usage: lomount [-verbose] [OPTIONS] -diskimage FILE -partition NUM [OPTIONS]
All OPTIONS are passed through to 'mount'.
ex. lomount -t fs-type -diskimage hda.img -partition 1 /mnt

And I am talking about partitions made by the FC6 Anaconda installer
to the logical
volume.

After reading the RHEL5/FC6 Xen documentation through again I realised I must
use kpartx:

kpartx -av /dev/VolGroup00/LogVol02

and then I can mount the partition:

mkdir /mnt/LogVol02p1
mount /dev/mapper/LogVol02p1 /mnt/LogVol02p1

Of course the domU must be shutdown to do this and one has to umount the
partition before starting the domU again. But now I can do the following:

- pause the virtual machine
- take an lvm snapshot
- unpause the virtual machine
- mount the snapshot volume
- backup the snapshot volume
- delete the snapshot

Now I'm just wondering what's the best way to backup the snapshot...

Cheers,
Peter

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