Hi Alex and Octave,
THANKS a lot for your help.
"metaset -a" worked fine after upgrading my control domain OS to Solaris 10U5.
I could add the exported vdisk in guest domain to a disk set, create host volume
and ufs file system as shown below,
bash-3.00# metaset -s dg1 -a c0d2
bash-3.00# metaset
Set name = dg1, Set number = 1
Host Owner
sun197-152 Yes (auto)
Drive Dbase
c0d2 Yes
bash-3.00# metainit -s dg1 d0 1 1 c0d2s0
dg1/d0: Concat/Stripe is setup
bash-3.00# metastat -s dg1
dg1/d0: Concat/Stripe
Size: 190464 blocks (93 MB)
Stripe 0:
Device Start Block Dbase Reloc
c0d2s0 0 No Yes
Device Relocation Information:
Device Reloc Device ID
c0d2 Yes id1,vdc at n60a980004f63676e6b344d634b78626b
bash-3.00# mkdir -p /mnt/fs1
bash-3.00# echo y | newfs /dev/md/dg1/dsk/d0
/dev/md/dg1/rdsk/d0: Unable to find Media type. Proceeding with system
determined parameters.
/dev/md/dg1/rdsk/d0: 190464 sectors in 93 cylinders of 16 tracks, 128 sectors
93.0MB in 6 cyl groups (16 c/g, 16.00MB/g, 7680 i/g)
super-block backups (for fsck -F ufs -o b=#) at:
32, 32928, 65824, 98720, 131616, 164512,
bash-3.00#
bash-3.00# mount -F ufs /dev/md/dg1/dsk/d0 /mnt/fs1
bash-3.00# mount | grep fs1
/mnt/fs1 on /dev/md/dg1/dsk/d0
read/write/setuid/devices/intr/largefiles/logging/xattr/onerror=panic/dev=1542000
on Sun Dec 21 10:28:02 2008
--
This message posted from opensolaris.org