Solaris OS용 Sun Cluster 시스템 관리 안내서

ProcedureSun NAS 쿼럼 장치를 추가하는 방법

이 절차를 완료하려면 노드가 공유하는 디스크 드라이브를 장치 ID(DID)로 식별합니다. cldevice show 명령을 사용하여 DID 이름의 목록을 보십시오. 자세한 내용은 cldevice(1CL) 매뉴얼 페이지를 참조하십시오.


주 –

Sun Cluster에서는 Sun NAS 쿼럼 장치를 노드가 2개인 클러스터 구성에만 지원합니다.


이 절차에서는 장문형 Sun Cluster 명령을 제공합니다. 대부분의 명령에는 단문형도 있습니다. 명령은 명령 이름이 장문형과 단문형인 것을 제외하면 동일합니다. 명령 및 단문형 명령의 목록을 보려면 부록 A, Sun Cluster 객체 지향 명령를 참조하십시오.

  1. Sun NAS GUI를 사용하여 Sun NAS 파일러에 iSCSI 장치를 설정합니다.

    1. 대략 크기가 50MB인 파일 볼륨을 만듭니다.


      File Volume Operations -> Create File Volume
    2. 각 노드에 대해 iSCSI 액세스 목록을 만듭니다.


      iSCSI Configuration -> Configure Access List
      1. 클러스터 이름을 iSCSI 액세스 목록 이름으로 사용합니다.

      2. 각 클러스터 노드의 개시자 노드 이름을 액세스 목록에 추가합니다. CHAP 및 IQN은 필요 없습니다.

    3. iSCSI LUN 구성


      iSCSI Configuration -> Configure iSCSI LUN

      백업 파일 볼륨 이름을 LUN 이름으로 사용할 수 있습니다. 각 노드의 액세스 목록을 LUN에 추가합니다.

  2. 각 클러스터 노드에서 iSCSI LUN을 검색하고 정적 구성에 대한 iSCSI 액세스 목록을 설정합니다.


    # iscsiadm modify discovery -s enable
    
    	# iscsiadm list discovery
    	Discovery:
    	        Static: enabled
    	        Send Targets: disabled
    	        iSNS: disabled
    
    	#  iscsiadm add static-config iqn.LUNName,IPAddress_of_NASDevice
    # devfsadm -i iscsi
    # cldevice refresh
    
  3. 하나의 클러스터 노드에서 iSCSI LUN용 DID를 구성합니다.


    # /usr/cluster/bin/scgdevs
  4. 클러스터의 아무 노드에서나 수퍼유저 또는 solaris.cluster.modify RBAC 인증을 제공하는 역할로 전환합니다.

  5. clsetup 유틸리티를 시작합니다.


    # clsetup
    

    clsetup 주 메뉴가 표시됩니다.

  6. 쿼럼 옵션에 해당하는 번호를 입력합니다.

    쿼럼 메뉴가 표시됩니다.

  7. 쿼럼 장치를 추가하는 옵션에 해당하는 번호를 입력한 다음, clsetup 유틸리티에서 쿼럼 장치 추가에 대한 확인을 요청하면 yes를 입력합니다.

    clsetup 유틸리티에서 추가할 쿼럼 장치 유형을 묻습니다.

  8. SCSI 쿼럼 장치 옵션에 해당하는 번호를 입력합니다.

    clsetup 유틸리티에서 사용할 전역 장치를 묻습니다.

  9. 사용 중인 전역 장치를 입력합니다.

    clsetup 유틸리티에서 새 쿼럼 장치를 지정된 전역 장치에 추가할 것을 확인하도록 요청합니다.

  10. 계속해서 새 쿼럼 장치를 추가하려면 yes를 입력합니다.

    새 쿼럼 장치가 성공적으로 추가되면 clsetup 유틸리티는 추가된 장치를 보여주는 메시지를 표시합니다.

  11. 쿼럼 장치가 추가되었는지 확인합니다.


    # clquorum list -v
    

예 6–2 Sun NAS 쿼럼 장치 추가

다음은 Sun NAS 쿼럼 장치를 추가할 때 clsetup에 의해 생성되는 clquorum 명령과 확인 단계를 나타냅니다.


Add an iSCSI device on the Sun NAS filer.
Use the Sun NAS GUI to create a file volume that is approximately 50mb in size.
File Volume Operations -> Create File Volume
For each node, create an iSCSI access list.
iSCSI Configuration -> Configure Access List
Add the initiator node name of each cluster node to the access list. 
*** Need GUI or command syntax for this step. ***
Configure the iSCSI LUN
iSCSI Configuration -> Configure iSCSI LUN
On each of the cluster nodes, discover the iSCSI LUN and set the iSCSI access list to static configuration.
iscsiadm modify discovery -s enable
iscsiadm list discovery
Discovery:
   Static: disable
   Send Targets: enables
   iSNS: disabled
iscsiadm add status-config
iqn.1986-03.com.sun0-1:000e0c66efe8.4604DE16.thinquorum,10.11.160.20
devsadm -i iscsi
From one cluster node, configure the DID devices for the iSCSI LUN.
/usr/cluster/bin/scgdevs
Become superuser or assume a role that provides solaris.cluster.modify RBAC authorization 
on any cluster node.

[Start the clsetup utility:]
# clsetup
[Select Quorum>Add a quorum device]
[Answer the questions when prompted.]
[You will need the following information.]
  [Information:              Example:]
  [SCSI device               scsi]
  [Global device		       d20]

[Verify that the clquorum command was completed successfully:]
 clquorum add d20
 
    Command completed successfully.
[Quit the clsetup Quorum Menu and Main Menu.]
[Verify that the quorum device is added:]
# clquorum list -v
 
Quorums         Type
-------         ----
d20             scsi
scphyshost-1    node
scphyshost-2    node