Solved

SCSI reserve/release commands

Posted on 2006-11-14
5
3,112 Views
Last Modified: 2010-01-15
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
Comment
Question by:tomerlei
  • 4
5 Comments
 
LVL 8

Expert Comment

by:adg080898
ID: 17959597
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
 
LVL 4

Author Comment

by:tomerlei
ID: 17973988
what about the persistent reserve/release?
0
 
LVL 8

Expert Comment

by:adg080898
ID: 17975595
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
 
LVL 8

Expert Comment

by:adg080898
ID: 17975641
0
 
LVL 8

Accepted Solution

by:
adg080898 earned 500 total points
ID: 17975654
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

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I know it’s not a new topic to discuss and it has lots of online contents already available over the net. But Then I thought it would be useful to this site’s visitors and can have online repository on vim most commonly used commands. This post h…
Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question