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

Re: [Xen-users] bsd disklabel & lvm

> >Okay, here's another question that no one will be able to answer.
> >
> >I have an OpenBSD HVM domU, and I wanted to mount its filesystem in
> >my Linux dom0.  The domU's disk lives on a logical volume.  Kpartx
> >does detect that partition 4 contains the disklabel, but that's as far
> >as I get.
> >
> >I think my fedora kernel just doesn't support disklabels...
> >
> >Anyone know how this is supposed to work?
> >  
> So why use them. Disklabels for ext2 and ext3 are useful abut the 
> partitions can still be accessed as /dev/hda1, /dev/VolGroup00/whatever, 
> or if you use "kpartx -a /dev/VolGroup00/whatever" then you can access 
> /dev/mapper/whatever0, /dev/mapper/whatever1, etc.
> Or did you do something too clever and use LVM instide of the OpenBSD 
> DomU and need to go through extra arcanery?

I think there is some file system label and disklabel confusion here.
Disklabel is like fdisk for bsd.. sort of.  In PC hardware when
running bsd, you first have to partition your disk using fdisk.  If
you're only running one OS, you just make one partition with all the
space in it.  Then you take that partition and break it up into
sub-partitions (for lack of a better word) using disklabel.  I think
the reason for this has to do with PC hardware vs. other kinds that
don't use dos-type partition tables.  

Anyway, the upshot is that in order for Linux to see my OpenBSD
partitions, it would have to read the disklabel to know where my
filesystems are.

Another way to say it is:

[dom0          ...]
[lv           ] 
[fdisk part   ]
[disklabel    ]


Xen-users mailing list



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