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

이 절차에서는 NFS 서버가 SCSI 장치에 보유하고 있는 영구 예약을 해제합니다. 이를 통해 더 이상 pNFS SCSI을 내보낼 필요가 없는 경우 SCSI 장치를 변경할 수 있습니다.

서버에서 예약을 제거해야 합니다. 다른 IT Nexus에서는 제거할 수 없습니다.

사전 요구 사항

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

    # dnf install sg3_utils

절차

  1. 서버에서 기존 예약을 쿼리합니다.

    # sg_persist --read-reservation path-to-scsi-device

    예 7.3. /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

    예 7.4. /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) 매뉴얼 페이지