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

Re: [Xen-users] mount xen partitions inside logical volume from dom0?


  • To: "Nico Kadel-Garcia" <nkadel@xxxxxxxxx>
  • 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
  • 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=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

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


 


Rackspace

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