<div dir="ltr">aren't they xen block device naming? <br><br><h2 id="Block_Device_Naming">Block Device Naming</h2>
<span class="" id="line-24"></span><span class="" id="line-25"></span><p class="">Xen
hijacks the Linux block device major/minor numbering scheme and stuffs
it into the block devices available for the DomU's. So if you use "sda1"
for your Xen jail, The Linux Xen DomU block device driver would hijack
the major number from the scsi device driver and use it. <span class="" id="line-26"></span><span class="" id="line-27"></span></p><p class="">FreeBSD/Xen
used to simply create an "xbd" device with the raw device number after
it. This changed recently (thanks to dfr?) to somewhat emulate what
Linux was doing. From what I can tell, using hdX and partitions (hdXa,
hdXb, etc) will result in the relevant ATA devices being created in the
kernel (ad0s1, ad1s1, etc.) Simiarly for SCSI - sdX became daX in
FreeBSD. <span class="" id="line-28"></span><span class="" id="line-29"></span></p>To
get "xbd" (which I was using to make sure I had separately named
devices that absolutely didn't look like they should deserve a normal
DOS label) I need to use the major "202" (0xCA) with unit numbers being
minor >> 4. So 0xCA00 is xbd0, 0xCA10 is xbd1, 0xCA20 is xbd2,
etc. This gives me xbd0 -> xbd15 before I run out of "xbd" slices.
(Actually that isn't true but I won't assume I'll get any more. Those
who are interested should read
sys/dev/xen/blkfront/blkfront.c:blkfront_vdevice_to_unit() to see.) <br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Dec 5, 2014 at 12:24 PM, Linda Kateley <span dir="ltr"><<a href="mailto:lkateley@kateley.com" target="_blank">lkateley@kateley.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hey,<br>
<br>
Does anyone happen to run freebsd on xen or use ec2? I just ran into this weird thing that the disks come up as xbd, but not sure what kind of disks they are? can't see them with camcontrol.<br>
<br>
linda<br>
______________________________<u></u>_________________<br>
TCLUG Mailing List - Minneapolis/St. Paul, Minnesota<br>
<a href="mailto:tclug-list@mn-linux.org" target="_blank">tclug-list@mn-linux.org</a><br>
<a href="http://mailman.mn-linux.org/mailman/listinfo/tclug-list" target="_blank">http://mailman.mn-linux.org/<u></u>mailman/listinfo/tclug-list</a><br>
</blockquote></div><br></div>