If you only do read-like commands (like inquiry) then this is safe.

  Only write-like commands (like SCSI reservations) issue from two
different domains can lead to unexpected state. Just be very careful
that your SCSI commands don't alter the state of the LUN.


alex.

Rushi Srinivas wrote:
> Let me explain my question in detail:
> 
> (1) I have exported a SCSI disk (lun) from control domain to Guest domain.
> 
>     /dev/dsk/c2t5d0s2   (control domain)   =>   /dev/dsk/c0d7 (guest domain)
> 
> (2) Now, in guest domain I add this device (/dev/dsk/c0d7) to SVM metaset.
> 
> (3) To know the target infomartion (of the LUN) from control/service domain,
>     I do scsi ioctl on /dev/dsk/c2t5d0s2 (control domain device).
> 
>     I will just use SCSI inquiry command and NOT the reservation commands. 
> 
> (4) Similarly, to know the target information of the same disk from guest 
>     domain, I do ioctl SCSI on the guest device (/dev/dsk/c0d7). Also, 
> applications
>     like, VxDMP, SVM metaset may be issuing scsi commands to the guest device.
> 
> Now, if steps (3) and (4) are carried out at the same time, will my disk go 
> into
> unexpected state. 
> 
> The only SCSI command I issue is "inquiry" (no reservation commands).

Reply via email to