Section | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...
스카시예약 에이전트 리소스는 공유디스크 에이전트와 2가지 형태로 구성할 수 있으며, 스카시예약 에이전트 리소스의 속성 값에 따라 구성 방법이 나눠집니다.
1.When shared disk and SCSI Lock resource is configured with the same LUN (PrType=1)
스카시예약 에이전트의 리소스에서 속성이 PrType이 1 인 옵션을 사용하면, 하나의 LUN을 이용하여 공유디스크 리소스와 스카시예약 리소스를 구성합니다.
공유디스크 에이전트는 MVL 드라이버를 이용하여 DATA-DISK를 관리하고, 스카시예약 에이전트는 SCSI3-PR 기능을 이용하여 LOCK-DISK를 관리합니다.
스카시예약 리소스와 공유디스크 리소스 간의 의존관계를 설정함으로써, Split-Brain과 같은 상황에서 발생하는 DATA-DISK의 손상을 방지할 수 있습니다.
...
[Figure] Shared disk and SCSI Lock resource configured in same LUN (PrType=1)
2. Shared disk and SCSI lock resource is configured with different LUN (PrType=3)
공유디스크 에이전트는 단일 드라이브 문자 단위로 DATA-DISK를 관리하고, 스카시예약 에이전트 또한 별도의 독립된 단일 LUN을 LOCK-DISK 전용으로 관리합니다.
이 구성을 위해서는 공유디스크에 최소 2개 이상의 LUN 분할이 존재해야 합니다.
아래 그림과 같이 공유디스크 에이전트와 1:1로 의존시킬 LOCK-DISK 볼륨을 생성합니다.
공유디스크 에이전트 다수와 스카시예약 에이전트 1개를 이용해, 의존성을 구성하여 사용할 수도 있습니다.
이 디스크는 스토리지에 접근할 수 있는 노드 확인에 이용하기 때문에 용량이 작아도 됩니다.
스카시예약 리소스와 공유디스크 리소스 간의 의존관계를 설정함으로써, Split-Brain과 같은 상황에 발생하는 DATA-DISK의 손상을 방지할 수 있습니다.
...
- Install MCCS on both nodes
- Set group
- Add shared disk resource
- Enable shared disk resource and check offline on both nodes
- Add SCSI Lock resource (Select drive letter that letter that created shared disk resource)
- Enable SCSI Lock resource and check key in resource attribute of MCCS console.
- Configure dependency of resources (SCSI Lock resource must go online first)
- Test failover from node 2 to 1
- Test failover from node 1 to 2
- Set application that customer uses
...
Attribute | Description | Type | Default | Edit | Note |
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 | ||
DriveLetter | Disk to be used for reservation is specified by drive letter. When register drive letter, DUID of connected disk will automatically obtain in drive letter. | STRING | X | ||
Key | MAC address is used as Reserved-Key. This key is automatically set by agent. | STRING | |||
PreemptWaitCount | Time waiting for permission of other node before reservation Waiting time is (PreemptWaitCount * MonitorInterval) seconds. | INTEGER | 2 times | O | |
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, and Disk Letter can be checked in explorer. 3 (Exclusive Access) is used when only Lock_Disk is used. In this case, SCSI Lock agent LUN is required. 'Mount' state of disk changes to 'un-mount' state.Therefore, Disk Letter will disappear from explorer. | INTEGER | Prtype=1 | O |
scsicmd.cmd Command
Syntax
Code Block |
---|
scsicmd [option] [diskID] |
Option
This is the utility to use SCSI 3 PR command more easily. Following is the provided options
Option | Description |
-c diskId | It deletes Reserved-Key and Registered-Key of local node of disk. |
-cf diskId | It forcely deletes Reserved-Key and Registered-Key of local node of disk. This is mostly used when access to disk is inavailable. |
-r diskId | Registers diskld-specified disk. |
-l diskId | If node is yet to reserve, close the specified disk and reserve. |
-lf diskId | 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. |
Print Sample
Panel | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
The output of 'scsicmd' command from source node (C29043F13 is MAC Address of NIC from source node.)
The output of 'scsicmd' command from target node (C29043F13 is MAC Address of NIC from source node.)
|
...