Brian
You can do this in 1.0.3 but you MUST use the options options=ro to do this.
From the admin manual :
ldm add-vdsdev [options={ro,slice}] backend volume1 at service_name
ldm add-vdsdev [options={ro,slice}] backend volume2 at service_name
Otherwise you have the problem of both ldoms scribbling over the same
disk with unpredictable results.
T
Brian Glynn wrote:
> Hi,
>
> 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
>>
> You cannot do this with a physical disk presentation but you can achieve
> something that fits your requirements by layering zfs on top of the disk
> and then allocating unique capacity to each ldom.
>
> Brian
>> .....
>>
>> 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
>>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> ldoms-discuss mailing list
> ldoms-discuss at opensolaris.org
> http://mail.opensolaris.org/mailman/listinfo/ldoms-discuss