|
|
|
|
|
|
|
|
|
|
xen-users
Re: [Xen-users] mount xen partitions inside logical volume from dom0?
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
|
|
|
|
|