ZFS on virtual disk

I create a ZFS on top of a image file that is allocated to a guest domain as virtual disk.

primary# zpool create -f tank /disk.img

primary# zpool create tank/test

primary# zpool export tank

primary# ldm add-vdsdev /disk.img zvol@primary-vds0

primary# ldm add-vdisk vdisk1 zvol@primary-vds0

primary# ldm bind ldg1

primary# ldm start ldg1

ldg1# zpoolimport

pool: tank

id: xxxxxx

state: FAULTED

status: One or more devices are missing from the system.

action: The pool cannot be imported. Attach the missing devices andtry again

see: http://www.sun.com/msg/ZFS-8000-3C

config:

tankUNAVAILinsufficient replicas

c0d1s2UNAVAILcannot open

I have run devfsadm -C

before importing the zpool. Both /dev/rdsk/c0t1s2 and /dev/dsk/c0t1s2 are available. The format command can see disk c0d1. Any idea?

[1010 byte] By [JoeChris@Suna] at [2007-11-27 4:04:29]
# 1
This will not work because a file is exported as a disk not as a flat file and the system will add a disk label into the file ; so in a guest domain you can't currently import a ZFS pool created from files.alex.
achartrea at 2007-7-12 9:09:21 > top of Java-index,Administration Tools,Logical Domains for CoolThreads Servers...