On Apr 12, 2011, at 9:54 AM, Alexandre Chartre wrote:

> When you export a physical disk slice, it appears in the guest domain as
> a single-slice disk (format(1) shows "SUN-DiskSlice").  This is what you
> see for c0d2 and c0d3.  With a single-slice disk, you can only use slice 0
> (e.g. c0d2s0 and c0d3s0).

Right - which is what I am doing (using slice 0).  (Petr, you can't use slice 
1.)

In the case of the 2 slices I am trying to export and then create a 2-vdisk ZFS 
mirrored zpool with, I am trying to do the exact same thing on both the old 
system as well as the new one.  It works on the old system but not on the new 
system.

> But if you export a volume (either ZFS or SVM) then, by default, it will 
> appear
> as a full disk image (format(1) shows "SUN-DiskImage").

Right - which it does:

> 3. c0d4 <SUN-DiskImage-99GB cyl 2842 alt 2 hd 96 sec 768>
> /virtual-devices@100/channel-devices@200/disk@4
> 4. c0d5 <SUN-DiskImage-50GB cyl 1420 alt 2 hd 96 sec 768>
> /virtual-devices@100/channel-devices@200/disk@5
> 5. c0d6 <SUN-DiskImage-29GB cyl 822 alt 2 hd 96 sec 768>
> /virtual-devices@100/channel-devices@200/disk@6


> In that case, you can
> use multiple partitions but you first have to create a partition table (with
> format -> partition -> label). This is what you see for c0d4, c0d5, c0d6.
> You currently get an error because no partition table was created so there's
> no slice 0.

Aha - well spotted.  You are right, there is no slice 0.

Now the question is - in "format", do I label it with an SMI or an EFI label???

> If you want to export a ZFS/SVM volume as a single-slice disk then you need
> to use "option=slice" in the "ldm add-vdsdev" command. I think this what you
> are trying to achieve here.

Interesting.  I don't get this part, however.  I always thought "option=slice" 
was only for exporting slices!  As we say in Latin, this seems like a non 
sequitur :)

I want to export the SVM volumes as whole "disks".  Given that they will be 
newfs'ed over the entire length of the disk, then yes - I can afford to create 
them as "single slice" (slice 0) disks.

But having them show up as "SUN-DiskSlice" vdisks just doesn't seem "right" - 
after all they aren't "slices"!

> Refer to the Admin Guide for more info, in particular:
> 
> http://download.oracle.com/docs/cd/E19608-01/html/821-1485/virtualdiskappearance.html
> http://download.oracle.com/docs/cd/E19608-01/html/821-1485/virtualdiskbackendoptions.html#sliceoption

Thanks Alex.  Do you have any ideas on why my 
export-as-2-slices-and-then-create-ZFS-zpool is failing?

Thanks,

        - Greg

_______________________________________________
ldoms-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/ldoms-discuss

Reply via email to