Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Section
Column

SCSI reservation agent can manage and protect the shared disks from the H/W perspectives.
If you use a SCSI reservation agent, you can safely protect the data disk against the split brain situations caused by external elements such as OS hanging.
If the shared storage supports SCSI3-PR (Persistent Reservation), you can use it together with SCSI reservation agent to improve the level of security for the shared data.
If you want to access the storage from systems (many or one) through SCSI3-PR, the system must have a storage reserved key. If not, storage access will not be granted.

* Note - If the storage does not support SCSI3-PR (Persistent Reservation), it cannot use a SCSI-reservation agent.

Column
width350px
Panel

이 페이지의 주요 내용Table of Contents

Table of Contents
maxLevel4

...

Info

Disk management function in software perspective (shared disk agent)

  • Shared disk agent manages access control of shared disk through 'MOUNT/UMOUNT' command. 
  •  Data on the shared disks will be damaged if you try to access to write from multiple nodes.
    Thus, to control the situations, a shared disk agent maintains the umount condition, so that they can only mount the file system from an operation node but cannot access to write from a standby node. 

Disk management function in hardware perspective (SCSI Lock agent)

  • SCSI Lock agent manage Write control and access control of LUN by using SAN protocol.
  • Only the node that has imported the disk with this key can access to the disk.



 22.
 Both the shared disk agent and the SCSI reservation agent can read and write data.
However, a SCSI reservation agent intends to protect the shared storage resource, so you are not recommended to use it alone to read and write data.
Thus, a SCSI reservation agent can be used together with a shared storage agent or can use a separate LUN from the shared storage (PrType option).
 

...

SCSI-Lock resource can be configured in 2 ways with shared disk resource. Configuration process changes according to the attribute value of SCSI Lock resource.


1. When shared disk and SCSI Lock resource is configured with the same LUN (PrType=1)

When you define an attribute of SCSI Lock resource as PrType=1, you can configure shared disk and SCSI Lock resource with the same LUN.
SCSI Lock agent manages DATA-DISK(shared disk resource) using by MOUNT/UMOUNT command and manages LOCK-DISK(SCSI Lock resource) using by SCSI-3 PR as shown below.
By setting up the dependency between SCSI Lock resources and shared disk resources, any damage of data-disk can be prevented which may occur in such case like Split-Brain.

...

Attribute

Description

Data Type

DefaultEditNote
DevicePath

Define the device path of disk to be used for reservation.

When register device path, DUID of connected disk will automatically obtain.

STRING X 
DiskDUID

DUID(Device Unique ID, 16 byte as Hex value) of disk is used as identifier. Specify DUID of reserve disk.

This value is secure when DriveLetter atribute us specified. Try not to insert this value yourself.

DUID information can be checked through scsicmd.cmd command and both nodes need to have the same value. 

STRING X 
Key

MAC address is used as Reserved-Key. This key is automatically set by agent. 

STRING X 
PreemptWaitCount

Time waiting for permission of other node before reservation

Waiting time is (PreemptWaitCount * MonitorInterval) seconds.

STRING2 timesO 
PrType

This attribute decides on how to give the permission of reserve disk access as Persist Type specified in SCSI3-PR spec.

There are 6 types bur MCCS uses 1 (Write Exclusive) or 3 (Exclusive Access).

1 (Write Exclusive) is used when same LUN is used with shared disk.

3 (Exclusive Access) is used when only Lock_Disk is used.

In this case, SCSI Lock agent LUN is required.

STRING

Prytpe = 1O 

 

 

scsicmdCommandscsicmd Command

Syntax

Code Block
 scsicmd [option] [devicePath]

...

This is the utility to use SCSI 3 PR command more easily. Following is the provided options.

Option

Description

-c devicePath

It deletes Reserved-Key and Registered-Key of local node of disk. 

-cf devicePath

It forcely deletes Reserved-Key and Registered-Key of local node of disk.

This is mostly used when access to disk is inavailable. 

-r devicePath

Registers diskld-specified disk. 

-l devicePath

If node is yet to reserve, close the specified disk and reserve. 

-lf devicePath

It forcelu closes specified disk and reserve, even node has been reserved.

Meaning, it takes over other reservation. 

-h

It shows help of scsicmd 

no option

It shows the state information regarding disk reservation when there is no other option. 

...