|
|
|
|
|
|
|
|
|
|
xen-users
Re: [Xen-users] Xen with LVM
The lomount tool - originally from qemu but also distributed with Xen - makes
it more straightforward to mount partitions within an image file. It handles
calculation of offsets etc for you. This is what I generally use to access
partitions within a virtual disk.
The other tool folks sometimes use is "kpartx", which I believe supports
partitions using device mapper.
In either case the end result is much the same: a friendlier way of accessing
partitions within an image.
Don't worry about sfdisk grumbling at you, ISTR that's normal.
Hope this helps,
Cheers,
mark
On Friday 12 October 2007, Errol Neal wrote:
> Quoting "IDAGroup - R.W.Muller" <robin@xxxxxxxxxxx>:
> > Hello Errol, I tried that and get a little weird partition table:
> >
> > sfdisk -l -uS /dev/vms/centos5_data
> >
> > Disk /dev/vms/centos5_data: 0 cylinders, 0 heads, 0 sectors/track
> > Warning: The partition table looks like it was made
> > for C/H/S=*/255/63 (instead of 0/0/0).
> > For this listing I'll assume that geometry.
> > Units = sectors of 512 bytes, counting from 0
> >
> > Device Boot Start End #sectors Id System
> > /dev/vms/centos5_data1 * 63 3068414 3068352 83 Linux
> > /dev/vms/centos5_data2 0 - 0 0 Empty
> > /dev/vms/centos5_data3 0 - 0 0 Empty
> > /dev/vms/centos5_data4 0 - 0 0 Empty
>
> I wouldn't worry too much about that. sfdisk is probably just
> confused. Since the file doesn't have a ioctl, that would be my guess
>
> > Now I just have to find out, how I can get ride of the Empty partitions
> > and how to use snapshot for backup and I'm getting closer
> > to a usable result :)
>
> lvcreate -L1G -n vmsnap /dev/vms/centos5_data
>
> Then mount it as above. Keep in mind that for snapshots, all changes
> to the live volume are written to the COW table on the snapshot
> volume. Make sure you allocate enough space for this.
>
> -Errol
>
> ----------------------------------------------------------------
> This message was sent using IMP, the Internet Messaging Program.
>
>
>
> _______________________________________________
> Xen-users mailing list
> Xen-users@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-users
--
Dave: Just a question. What use is a unicyle with no seat? And no pedals!
Mark: To answer a question with a question: What use is a skateboard?
Dave: Skateboards have wheels.
Mark: My wheel has a wheel!
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
|
|
|
|
|