I am trying to write a program to block a LUN using SCSI 2 reservations.
In SCSI 2 reservations, can the LUN be reserved by the same host with a different path or the I-T-L nexus is only a single path.
Eg : Lets say the host tries to reserve the already reserved LUN from the same target but with the different port of the target. Is this possible?
Basically the LUN reservation would still be the same host but would be from different paths.
[EDIT] I have got the required response for the above mentioned problem but have another query. Lets say the host has reservation on LUN X and a connection drops or the host issues logout. What happens to the reservation? Whether it depends on the host driver to clear the reservation and clear its data or the reservation remains and other hosts would get a conflict if they try to reserve the same LUN. I tried googling it but could not find the specs related to this issue.