From control domain, can I export one storage LUN to two guest domains?
ldm add-vdsdev /dev/dsk/c1t5d0s0 disk1@primary-vds0
ldm add-vdisk disk1 disk1@primary-vds0 ldom1
ldm add-vdsdev /dev/dsk/c1t5d0s0 disk2@primary-vds0
Gives error. With –f flag it works.
ldm add-vdisk disk2 disk2@primary-vds0 ldom2
Is it permitted configuration?
A virtual disk back end can be exported multiple times either through the same or different virtual disk servers. Each exported instance of the virtual disk back end can then be assigned to either the same or different guest domains.
When a virtual disk back end is exported multiple times, it should not be exported with the exclusive (excl) option. Specifying the excl option will only allow exporting the back end once. The back end can be safely exported multiple times as a read-only device with the ro option.