Red Hat Training

A Red Hat training course is available for Red Hat Enterprise Linux

8.10.5. 서버에서 pNFS SCSI 예약 해제

이 절차에서는 NFS 서버가 SCSI 장치에 보유하고 있는 영구 예약을 해제합니다. 이렇게 하면 더 이상 pNFS SCSI를 내보낼 필요가 없는 경우 SCSI 장치의 용도를 변경할 수 있습니다.
서버에서 예약을 제거해야 합니다. 다른 IT Nexus에서 제거할 수 없습니다.

사전 요구 사항

  • sg3_utils 패키지를 설치합니다.
    # yum install sg3_utils

절차 8.7. 서버에서 pNFS SCSI 예약 해제

  1. 서버에서 기존 예약을 쿼리합니다.
    # sg_persist --read-reservation path-to-scsi-device

    예 8.10. /dev/sda에서 예약 쿼리

    # sg_persist --read-reservation /dev/sda
    
      LIO-ORG   block_1           4.0
      Peripheral device type: disk
      PR generation=0x8, Reservation follows:
        Key=0x100000000000000
        scope: LU_SCOPE,  type: Exclusive Access, registrants only
    
  2. 서버에서 기존 등록을 제거합니다.
    # sg_persist --out \
                 --release \
                 --param-rk=reservation-key \
                 --prout-type=6 \
                 path-to-scsi-device

    예 8.11. /dev/sda에 예약 삭제

    # sg_persist --out \
                 --release \
                 --param-rk=0x100000000000000 \
                 --prout-type=6 \
                 /dev/sda
    
      LIO-ORG   block_1           4.0
      Peripheral device type: disk
    

추가 리소스

  • sg_persist(8) 도움말 페이지