ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • IBM AIX GPFS 구성하는 방법(2)
    System of Infra/Unix System 2021. 7. 11. 17:39
    반응형

    AIX로고이미지

    IBM AIX GPFS 구성하는 방법(2)

    [test_svr01:root]/usr/lpp/mmfs/bin>mmcrcluster -n /tmp/gpfsnew/node_list -p test_svr01 -s test_svr02 -C GPFScluster -r /bin/ssh -R /bin/scp -A
    mmcrcluster: Performing preliminary node verification ...
    The authenticity of host 'test_svr01 (10.50.1.71)' can't be established.
    ECDSA key fingerprint is SHA256:wgA3O3i/6EsaBebZj+UtASoY8Q5R4pQyNlFB03FwT0A.
    Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
    
    test_svr01: Warning: Permanently added 'test_svr01' (ECDSA) to the list of known hosts.
    mmcrcluster: Processing quorum and other critical nodes ...
    The authenticity of host 'test_svr02 (10.50.1.72)' can't be established.
    ECDSA key fingerprint is SHA256:wgA3O3i/6EsaBebZj+UtASoY8Q5R4pQyNlFB03FwT0A.
    Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
    
    mmcrcluster: Finalizing the cluster data structures ...
    mmcrcluster: Command successfully completed
    mmcrcluster: 6027-1254 Warning: Not all nodes have proper GPFS license designations.
    Use the mmchlicense command to designate licenses as needed.
    mmcrcluster: 6027-1371 Propagating the cluster configuration data to all
    affected nodes. This is an asynchronous process.

    -> GPFS를 구성하기 위한 GPFS 클러스터를 생성합니다. 클러스터 생성에는 사전에 지정해 둔 노드의 이름이 필요합니다.

    [test_svr01:root]/>mmlsconfig
    ===============================================================================
    | Warning:                                                                    |
    | This cluster contains nodes that do not have a proper GPFS license          |
    | designation. This violates the terms of the GPFS licensing agreement.       |
    | Use the mmchlicense command and assign the appropriate GPFS licenses        |
    | to each of the nodes in the cluster. For more information about GPFS        |
    | license designation, see the Concepts, Planning, and Installation Guide.    |
    ===============================================================================
    
    Configuration data for cluster GPFScluster.test_svr01:
    ---------------------------------------------------
    clusterName GPFScluster.test_svr01
    clusterId 17325658715162578460
    autoload yes
    dmapiFileHandleSize 32
    minReleaseLevel 5.0.1.0
    ccrEnabled yes
    cipherList AUTHONLY
    adminMode central
    
    File systems in cluster GPFScluster.test_svr01:
    (none)
    ---------------------------------------------------

    -> GPFS 클러스터 구성을 완료했다면 정상적으로 생성이 되어 있는지 mmlsconfig 명령어를 통해서 확인을 합니다. 사전에 지정해둔 클러스터 이름으로 GPFScluster가 서버#1호기에서 생성이 되었다는 것을 확인할 수 있습니다. 아래를 보면 (none)은 아직 해당 파일 시스템의 nsd를 생성하지 않았기 때문에 none으로 보이는 것이고 위를 보면 Warning:의 부분은 라이센스 등록을 하지 않았기 때문에 라이센스를 등록해줘야 합니다.

    [test_svr01:root]/>mmchlicense server --accept -N test_svr01,test_svr02
    The following nodes will be designated as possessing server licenses:
    test_svr01
    test_svr02
    mmchlicense: Command successfully completed
    mmchlicense: 6027-1371 Propagating the cluster configuration data to all
    affected nodes. This is an asynchronous process.

    -> GPFS 클러스터를 생성하고 라이센스를 정식으로 등록해주도록 합니다.

    [test_svr01:root]/tmp/gpfsnew>ls -ltr
    -rw-r--r-- 1 root system 46 Jul 11 15:00 node_list
    -rw-r--r-- 1 root system 52 Jul 11 15:46 nsd_list
    -rw-r--r-- 1 root system 21 Jul 11 15:47 tie_list
    
    [test_svr01:root]/tmp/gpfsnew>cat nsd_list
    hdisk7:test_svr01:test_svr02:dataAndMetadata:1:nsd01
    [test_svr01:root]/tmp/gpfsnew>cat tie_list
    hdisk8:::descOnly:-1

    -> /tmp/gpfsnew 디렉토리 아래 파일 시스템으로 사용할 nsd_list(hdisk7)와 tiebreak로 사용할 tie_list(hdisk8)에 대한 파일을 생성합니다.

    [test_svr01:root]/tmp/gpfsnew>mmcrnsd -F /tmp/gpfsnew/nsd_list -v no
    mmcrnsd: Processing disk hdisk7
    mmcrnsd: 6027-1371 Propagating the cluster configuration data to all
    affected nodes. This is an asynchronous process.
    
    [test_svr01:root]/tmp/gpfsnew>mmcrnsd -F /tmp/gpfsnew/tie_list -v no
    mmcrnsd: Processing disk hdisk8
    mmcrnsd: 6027-1371 Propagating the cluster configuration data to all
    affected nodes. This is an asynchronous process.

    -> nsd_list와 tie_list를 통해서 nsd와 tiebreack를 생성합니다.

    [test_svr01:root]/tmp/gpfsnew>mmlsnsd
    File system Disk name NSD servers
    ---------------------------------------------------------------------------
    (free disk) gpfs1nsd (directly attached)
    (free disk) nsd01 test_svr01,test_svr02
    
    [test_svr01:root]/>lspv | grep hdisk7; lspv | grep hdisk8
    hdisk7 00c5c1d7450f71dc nsd01
    hdisk8 00c5c1d7450f7144 gpfs1nsd

    -> mmlsnsd 명령어를 통해서 nsd가 정상적으로 생성이 되어 있는지 확인을 합니다. tiebreak의 경우 default로 생성을 해 주었기 때문에 hdisk8에 gpfs1 nsd라는 이름으로 생성이 된 것을 확인할 수 있습니다.

    [test_svr01:root]/tmp/gpfsnew>cat nsd_list
    # hdisk7:test_svr:test_svr02:dataAndMetadata:1:nsd01
    nsd01:::dataAndMetadata:1::system
    
    [test_svr01:root]/tmp/gpfsnew>cat tie_list
    # hdisk8:::descOnly:-1
    gpfs1nsd:::descOnly:-1::system

    -> 생성을 완료하게 되면 기존에 만들었던 텍스트의 줄이 #처리가 되고 아래에 새로운 이름으로 생성이 된 것을 확인할 수 있습니다. 다음 부터는 tiebreak의 이름도 tb라고 명칭을 달아 주는 것이 관리 입장에서 좋을 것 같습니다.

    [test_svr01:root]/>mmlsconfig
    Configuration data for cluster GPFScluster.test_svr01:
    ---------------------------------------------------
    clusterName GPFScluster.test_svr01
    clusterId 17325658715162578460
    autoload yes
    dmapiFileHandleSize 32
    minReleaseLevel 5.0.1.0
    ccrEnabled yes
    cipherList AUTHONLY
    adminMode central
    
    File systems in cluster GPFScluster.test_svr01:
    --------------------------------------------
    (none)

    -> 현재 GPFS의 구성에서 tiebreak nsd를 생성은 하였지만 config에 등록이 되어 있지 않은 것을 확인 할 수 있습니다.

    [test_svr01:root]/>mmchconfig tiebreakerDisks="gpfs1nsd"
    mmchconfig: Command successfully completed
    mmchconfig: 6027-1371 Propagating the cluster configuration data to all
    affected nodes. This is an asynchronous process.
    
    [test_svr01:root]/>mmlsconfig
    Configuration data for cluster GPFScluster.test_svr01:
    ---------------------------------------------------
    clusterName GPFScluster.test_svr01
    clusterId 17325658715162578460
    autoload yes
    dmapiFileHandleSize 32
    minReleaseLevel 5.0.1.0
    ccrEnabled yes
    cipherList AUTHONLY
    tiebreakerDisks gpfs1nsd
    adminMode central
    
    File systems in cluster GPFScluster.test_svr01:
    --------------------------------------------
    (none)

    -> tiebreak를 등록합니다. 기존 gpfs1nsd라는 이름으로 hdisk8로 지정을 하였기 때문에 해당 이름으로 명령어를 수행합니다. 수행 후 config의 파일을 다시 한번 수행하게 되면 tiebreakerDisks gpfs1nsd라는 항목이 보이게 됩니다.

    [test_svr01:root]/>mmstartup -a
    Sun Jul 11 16:17:29 KORST 2021: 6027-1642 mmstartup: Starting GPFS ...

    -> GPFS를 기동하도록 합니다. 양쪽의 노드 모드 기동 하기 위한 옵션 -a로 명령어를 수행해주도록 합니다.

    [test_svr01:root]/>mmgetstate -a
    Node number Node name GPFS state
    -------------------------------------------
    1 test_svr01 active
    2 test_svr02 active
    
    [test_svr02:root]/>mmgetstate -a
    Node number Node name GPFS state
    -------------------------------------------
    1 test_svr01 active
    2 test_svr02 active

    -> GPFS를 기동을 완료한 후 상태 체크를 확인할 수 있습니다. 서버#1,2의 노드 상태 모두 active상태로 정상적으로 Cluster가 작동하여 올라온 것을 볼 수 있습니다.

    [test_svr01:root]/>mmgetstate -aL
    Node number      Node name     Quorum     Nodes up     Total nodes         GPFS state     Remarks
    ----------------------------------------------------------------------------------------------------------------
            1                   test_svr01         1*             2                     2                         active           quorum node
            2                   test_svr02         1*             2                     2                         active           quorum node
    
    [test_svr02:root]/>mmgetstate -aL
    Node number      Node name     Quorum     Nodes up     Total nodes         GPFS state     Remarks
    ----------------------------------------------------------------------------------------------------------------
            1                   test_svr01         1*             2                     2                         active           quorum node
            2                   test_svr02         1*             2                     2                         active           quorum node

    -> 위와 같이 node의 상태를 자세하게 볼 수 있습니다.

     

    2021.07.08 - [System and Cloud/Unix] - IBM AIX GPFS 설치하는 방법

     

    IBM AIX GPFS 설치하는 방법

    IBM AIX GPFS 설치하는 방법 [test_svr01:root]/tmp/download>ls -al | grep -i Spectrum_Scale_Standard-5.0.1.0-ppc64-AIX-install.tgz -rw-r--r-- 1 root system 63816400 Jul 07 21:37 Spectrum_Scale_St..

    pinetreeday.tistory.com

    2021.07.11 - [System and Cloud/Unix] - IBM AIX GPFS 구성하는 방법(1)

     

    IBM AIX GPFS 구성하는 방법(1)

    IBM AIX GPFS 구성하는 방법(1) [test_svr01:root]/>ssh-keygen -t rsa Generating public/private rsa key pair. Enter file in which to save the key (//.ssh/id_rsa): Enter passphrase (empty for no pa..

    pinetreeday.tistory.com

    2021.07.11 - [System and Cloud/Unix] - IBM AIX GPFS 구성하는 방법(3)

     

    IBM AIX GPFS 구성하는 방법(3)

    IBM AIX GPFS 구성하는 방법(3) [test_svr01:root]/tmp/gpfsnew>cp nsd_list fs_list -> nsd에 파일 시스템을 생성하기 위해서 기존 nsd의 리스트를 fs_list 파일로 복사를 합니다. [test_svr01:r..

    pinetreeday.tistory.com

    PS. 포스팅의 내용은 제 기준으로 작성한 것이기 때문에 참고해서 보시면 감사하겠습니다.

    포스팅 과정의 오류 및 오타 그리고 궁금한 점에 대해서는 댓글 남겨주세요.

    반응형

    댓글

Designed by Tistory.