lgh,

what you are trying to do will not work.

You want several guest domains to use the same disk "c1t1d0s2" as their root
filesystem for Solaris installation.  This is not possible - each guest
needs it's own, unique root disk.

If you only have that one disk, but want more than one guest, the easiest
way to do this is to create a filesystem on the disk, then create some
"empty" files in that filesystem and use each of these files for one guest:

zpool create guestpool c1t1d0
zfs create guestpool/guest1
zfs create guestpool/guest2

mkfile 16g /guestpool/guest1/rootdisk
mkfile 16g /guestpool/guest2/rootdisk

ldm add-vdsdev /guestpool/guest1/rootdisk vdisk1 at primary-vds0
ldm add-vdsdev /guestpool/guest2/rootdisk vdisk2 at primary-vds0

ldm add-vdisk vdisk1 at primary-vds0 ldm1
ldm add-vdisk vdisk2 at primary-vds0 ldm2

this should be described in the "LDom Beginners Guide", which I can highly
recommend.

hth
stefan

lgh wrote:
> I want to install many guest domains in one physical disk ,how to do ? 
> 
> I plan make the disk a virtual disk device , by the command 
> 
> ldm add-vdsdev /dev/dsk/c1t1d0s2 vdisk1 at priamry-vds0
> ldm add-vdsdev /dev/dsk/c1t1d0s2 vdisk2 at primary-vds0
> .....
> 
> and then asign each of them to the guest domains  by the command:
> 
> ldm add-vdisk vdisk1 at primary-vds0 ldm1
> ldm add-vdisk vdisk2 at primary-vds0  ldm2
> .....
> 
> but when excute 
> ldm add-vdsdev /dev/dsk/c1t1d0s2 vdisk2 at primary-vds0 
> it report some error,
> 
> Is it right?
> thanks

-- 
Stefan Hinker
Systems Practice - Architect & Technical Systems Ambassador
Sun Microsystems GmbH               Tel: +49 6103 752-300
Brandenburger Str. 2-6              Stefan.Hinker at Sun.COM
D-40880 Ratingen                    http://www.sun.de/
---------------------------------------------------------------------------
Sitz der Gesellschaft: Sun Microsystems GmbH, Sonnenallee 1,
D-85551 Kirchheim-Heimstetten
Amtsgericht Muenchen: HRB 161028
Geschaeftsfuehrer: Thomas Schroeder, Wolfgang Engels, Dr. Roland Boemer
Vorsitzender des Aufsichtsrates: Martin Haering
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3303 bytes
Desc: S/MIME Cryptographic Signature
URL: 
<http://mail.opensolaris.org/pipermail/ldoms-discuss/attachments/20081211/afe8c240/attachment.bin>

Reply via email to