On 4/12/11 12:17 PM, Greg Earle wrote:
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.

Check the partitioning (prtvtoc) of the physical disk and the virtual disk:
 - does the physical disk has a slice s1?
 - does the virtual disk sees a correct partitioning?


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???

It does really matter, unless you want to able to boot from that device (then
you need SMI), or the device is more than 2TB (then you need EFI).


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 :)

A slice is automatically exported with the "slice" option. For volumes or files, you
can either them as full-disk or slice. See the doc for more info.


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"!

 In that case, just export without using the "slice" option.

alex.

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

Reply via email to