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?

