Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3203
  • Last Modified:

SCSI reserve/release commands

I need to know the details of the Reserve and Release scsi commands,
I mean, what exactly they do and how they do it?
And the same about persistent reserve/release command, for what they exist and what is the difference between persistent and the normal reserve/release?
0
tomerlei
Asked:
tomerlei
  • 4
1 Solution
 
adg080898Commented:
See http://www.t10.org/

This site has everything you could ever want to know about scsi protocols.

A short explanation:

SCSI allows devices to be shared on the SCSI bus - you could have multiple computers connected to a single SCSI chain. The reserve and release commands allow a computer to "own" a device and prevent other computers from affecting the device.

For example, say you had two pc's and a scsi burner all on the same scsi bus. One machine might "reserve" the burner device so the other computer won't mess up the burning process.
0
 
tomerleiAuthor Commented:
what about the persistent reserve/release?
0
 
adg080898Commented:
I'm pretty sure persistent reserve/release means "remember across resets". To reserve permanently until release even if power is disconnected. I expect most devices won't support this, unless they have some sort of storage. For example, a hard drive could easily support persistent reserve because it has storage, but, a dvd burner or printer probably won't support it because they usually don't have any non-volatile storage.

A hard drive used to boot the operating system would need persistent reserve because it is critical for it to have exclusive access for the boot process - boot would fail if someone else had it reserved. A printer would rarely need persistent reserve because it is a non-critical device - the OS doesn't require the printer for correct operation.

0
 
adg080898Commented:
Here's something...

http://www.t10.org/ftp/t10/document.95/95-229r2.pdf

Quote from pdf file above:

This proposal extends the definition of reservations to allow proper behavior in multi-initiator and multi-port environments. The proposal defines persistent
reservations which remain valid across Target Reset and can only be cleared by power down or by a properly qualified persistent reservation from another
initiator. Using the commands defined by this proposal, a host can protect the logical unit from improper behavior caused by another initiator on the same or other ports. At the same time, the host can determine from a logical unit which initiators share the logical unit, which initiator is presently reserving the logical unit, and can choose to displace the reservation of an initiator which is known to
have failed.

End quote.

Note that an "initiator" is something that controls the device, almost always a computer. "Multi-initiator" refers to having multiple computers on a single scsi bus.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

What Kind of Coding Program is Right for You?

There are many ways to learn to code these days. From coding bootcamps like Flatiron School to online courses to totally free beginner resources. The best way to learn to code depends on many factors, but the most important one is you. See what course is best for you.

  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now