Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

SCSI reserve/release commands

Posted on 2006-11-14
5
Medium Priority
?
3,168 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 1500 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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
What do responsible coders do? They don't take detrimental shortcuts. They do take reasonable security precautions, create important automation, implement sufficient logging, fix things they break, and care about users.
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 …
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

877 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