OS/Linux

[Command]디스크 SCSI-3 영구예약자원 확인

중랑거북이 2020. 6. 12. 12:50

[디스크 SCSI-3 영구예약자원 확인]

sg_psersist -d [확인하고자 하는 디스크] -c

# sg_persist -d /dev/sdb -c

SCSI-3 영구 예약을 지원하지 않으면 명령어에
"지원되지 않는 명령(command not supported)" 오류 발생

지원을 하게되면 아래와 같이 출력된다.
#sg_persist -d /dev/sdb -c
LIO-ORG iscsi_shared_st 4.0
Peripheral device type: disk
Report capabilities response:
Compatible Reservation Handling(CRH): 1
Specify Initiator Ports Capable(SIP_C): 1
All Target Ports Capable(ATP_C): 1
Persist Through Power Loss Capable(PTPL_C): 1
Type Mask Valid(TMV): 1
Allow Commands: 1
Persist Through Power Loss Active(PTPL_A): 0
Support indicated in Type mask:
Write Exclusive, all registrants: 1
Exclusive Access, registrants only: 1
Write Exclusive, registrants only: 1
Exclusive Access: 1
Write Exclusive: 1
Exclusive Access, all registrants: 1

728x90