ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • IBM AIX HACMP V6 구축 하는 방법[1]
    System of Infra/Unix System 2021. 3. 30. 22:26
    반응형

    AIX로고이미지

    IBM AIX HACMP V6 구축 하는 방법[1]

    [root@test_svr1:/]# echo $PATH
    /usr/bin:/etc:/usr/sbin:/usr/ucb://bin:/usr/bin/X11:/usr/es/sbin/cluster/utilities

    -> 이전 글에서 HACMP를 설치를 했다면 HACMP에 관련된 명령어를 디렉터리의 영향을 받지 않고 사용할 수 있도록 profile에 /usr/es/sbin/cluster/utilities 해당 경로를 추가해주고 PATH가 정상적으로 등록이 되어 있는지 확인을 합니다.

    [root@test_svr1:/]# halevel -s
    6.1.0 SP16

    -> 이전 글에서 HACMP의 6버전의 SP16으로 업데이트 까지 완료하였기 때문에 현재의 버전을 다시한번 확인합니다. 지금부터 HACMP의 구성에 있어서 모든 작업은 1호기에서 작업을 진행하도록 하겠습니다.

    [root@test_svr1:/]# cat /etc/hosts
    10.50.1.151 test_svr1
    10.50.1.152 test_svr2
    
    10.50.1.89test1_HB#heartbeat1
    10.50.1.90test2_HB#heartbeat2
    
    10.50.1.153 test_serviceip#serviceip
    
    [root@test_svr2:/]# cat /etc/hosts
    10.50.1.152 test_svr2
    10.50.1.151 test_svr1
    
    10.50.1.89test1_HB #heartbeat1
    10.50.1.90test2_HB #heartbeat2
    
    10.50.1.153 test_serviceip #serviceip

    -> 서버#1 test_svr1의 IP는 151이고 서버#2 test_svr2의 IP는 152인것을 확인 할 수 있습니다. 현상태에서 /etc/hosts 파일에 test1_HB, test2_HB의 heartbeat IP와 cluster를 작동시킬 test_serviceip라는 service IP를 만들어 줍니다. 

    [root@test_svr1:/usr/es/sbin/cluster/etc]#
    10.50.1.151
    10.50.1.152
    
    [root@test_svr2:/usr/es/sbin/cluster/etc]#
    10.50.1.151
    10.50.1.152

    -> /usr/es/sbin/cluster/etc의 경로에서 rhosts 파일을 vi 편집기를 통해 열어 서버#1 test_svr1과 서버#2 test_svr2의 IP를 넣어주도록 합니다. 통신체크를 위해서 넣어주는 것 이라고 생각하시면 되겠습니다.

    [root@test_svr1:/]# smit hacmp
    Initialization and Standard Configuration
    Extended Configuration--->선택
    System Management (C-SPOC)
    Problem Determination Tools
    Can't find what you are looking for ?
    Not sure where to start ?

    -> Extended Configuration의 항목을 선택합니다.

    Discover HACMP-related Information from Configured Nodes
    Extended Topology Configuration--->선택
    Extended Resource Configuration
    Extended Cluster Services Settings
    Extended Cluster Event Configuration
    Extended Performance Tuning Parameters
    Security and Users Configuration
    Snapshot Configuration
    Export Definition File for Online Planning Worksheets
    Import Cluster Configuration from Online Planning Worksheets File
    Extended Verification and Synchronization
    HACMP Cluster Test Tool

    -> Extended Topology Configuration의 항목을 선택합니다.

    Configure an HACMP Cluster--->선택
    Configure HACMP Nodes
    Configure HACMP Sites
    Configure HACMP Networks
    Configure HACMP Communication Interfaces/Devices
    Configure HACMP Persistent Node IP Label/Addresses
    Configure HACMP Global Networks
    Configure HACMP Network Modules
    Configure Topology Services and Group Services
    Show HACMP Topology

    -> Configure an HACMP Cluster의 항목을 선택합니다.

    Add/Change/Show an HACMP Cluster--->선택
    Remove an HACMP Cluster 
    Reset Cluster Tunables 
    
    * Cluster Name [TESTHA_cluster]--->선택
    
    NOTE: HACMP must be RESTARTED
    on all nodes in order for change to take effect
    
    Command: OK stdout: yes stderr: no
    Before command completion, additional instructions may appear below.
    
    Current cluster configuration:
    
    Cluster Name: TESTHA_cluster
    Cluster Connection Authentication Mode: Standard
    Cluster Message Authentication Mode: None
    Cluster Message Encryption: None
    Use Persistent Labels for Communication: No
    There are 0 node(s) and 0 network(s) defined
    
    No resource groups defined

    -> Add/Change/Show an HACMP Cluster의 항목을 통해서 구성을 하게 될 cluster의 이름을 정의 하신다고 생각하시면 됩니다. 해당 cluster의 이름을 TESTHA_cluster라고 정의하고 완료합니다.

    [root@test_svr1:/]# smit hacmp
    Initialization and Standard Configuration
    Extended Configuration--->선택
    System Management (C-SPOC)
    Problem Determination Tools
    Can't find what you are looking for ?
    Not sure where to start ?

    -> Extended Configuration의 항목을 선택합니다.

    Discover HACMP-related Information from Configured Nodes
    Extended Topology Configuration--->선택
    Extended Resource Configuration
    Extended Cluster Services Settings
    Extended Cluster Event Configuration
    Extended Performance Tuning Parameters
    Security and Users Configuration
    Snapshot Configuration
    Export Definition File for Online Planning Worksheets
    Import Cluster Configuration from Online Planning Worksheets File
    
    Extended Verification and Synchronization
    HACMP Cluster Test Tool

    -> Extended Topology Configuration의 항목을 선택합니다.

    Configure an HACMP Cluster
    Configure HACMP Nodes--->선택
    Configure HACMP Sites
    Configure HACMP Networks
    Configure HACMP Communication Interfaces/Devices
    Configure HACMP Persistent Node IP Label/Addresses
    Configure HACMP Global Networks
    Configure HACMP Network Modules
    Configure Topology Services and Group Services
    Show HACMP Topology

    -> Configure HACMP Nodes의 항목을 선택합니다.

    Add a Node to the HACMP Cluster--->선택
    Change/Show a Node in the HACMP Cluster
    Remove a Node in the HACMP Cluster

    -> Add a Node to the HACMP Cluster의 항목을 선택하고 151,152의 각각의 서버들의 Node를 등록하기 위한 절차라고 생각하면 됩니다.

    * Node Name [test_node1]--->선택
    Communication Path to Node [test_svr1]--->선택
    
    * Node Name [test_node2]--->선택
    Communication Path to Node [test_svr2]--->선택

    -> 노드의 이름을 test_node1 그리고 해당 노드를 지정할 서버 test_svr1을 선택합니다. 2호기도 마찬가지로 위와 같이 등록을 해주도록 합니다.(smit hacmp로 같은 작업을 두번)

    [root@test_svr1:/]# smit hacmp
    Initialization and Standard Configuration
    Extended Configuration--->선택
    System Management (C-SPOC)
    Problem Determination Tools
    Can't find what you are looking for ?
    Not sure where to start ?

    -> Extended Configuration의 항목을 선택합니다.

    Discover HACMP-related Information from Configured Nodes--->선택
    Extended Topology Configuration
    Extended Resource Configuration
    Extended Cluster Services Settings
    Extended Cluster Event Configuration
    Extended Performance Tuning Parameters
    Security and Users Configuration
    Snapshot Configuration
    Export Definition File for Online Planning Worksheets
    Import Cluster Configuration from Online Planning Worksheets File
    
    Extended Verification and Synchronization
    HACMP Cluster Test Tool
    
    
    Command: OKstdout: yes stderr: no
    Before command completion, additional instructions may appear below.
    
    [TOP]
    Discovering IP Network Connectivity
    
    Retrieving data from available cluster nodes.This could take a few minutes.
    
    Start data collection on node test_node1
    Start data collection on node test_node2
    Collector on node test_node1 completed
    Collector on node test_node2 completed
    Data collection complete
    Completed 10 percent of the verification checks
    Completed 20 percent of the verification checks
    Completed 30 percent of the verification checks
    ...(생략)

    -> Discover HACMP-related Information from Configured Nodes의 항목을 선택 후 NODE 정보와 디스크의 구성정보를 시스템에서 스캔한다고 생각하면 됩니다. 스캔이 완료되면 test_node1,test_node2의 정보가 보여지게 됩니다.

    [root@test_svr1:/]# smit hacmp
    Initialization and Standard Configuration
    Extended Configuration--->선택
    System Management (C-SPOC)
    Problem Determination Tools
    Can't find what you are looking for ?
    Not sure where to start ?

    -> Extended Configuration의 항목을 선택합니다.

    Discover HACMP-related Information from Configured Nodes
    Extended Topology Configuration--->선택
    Extended Resource Configuration
    Extended Cluster Services Settings
    Extended Cluster Event Configuration
    Extended Performance Tuning Parameters
    Security and Users Configuration
    Snapshot Configuration
    Export Definition File for Online Planning Worksheets
    Import Cluster Configuration from Online Planning Worksheets File

    -> Extended Topology Configuration의 항목을 선택합니다.

    Configure an HACMP Cluster
    Configure HACMP Nodes
    Configure HACMP Sites
    Configure HACMP Networks--->선택
    Configure HACMP Communication Interfaces/Devices
    Configure HACMP Persistent Node IP Label/Addresses
    Configure HACMP Global Networks
    Configure HACMP Network Modules
    Configure Topology Services and Group Services
    Show HACMP Topology

    -> Configure HACMP Networks의 항목을 선택합니다.

    Add a Network to the HACMP Cluster--->선택
    Change/Show a Network in the HACMP Cluster
    Remove a Network from the HACMP Cluster
    
    Manage Two-Node Disk Heartbeat Networks
    Manage Concurrent Volume Groups for Multi-Node Disk Heartbeat
    
    Move cursor to desired item and press Enter.
    # Discovery last performed: (Mar 16 22:23)
    # Discovered IP-based Network Types
    ether--->선택

    -> Add a Network to the HACMP Cluster의 항목을 선택 후 HACMP Communication 을 위한 Device Type 생성시 Discovered IP-based Network Types 에 보이지 않으면 Pre-defined IP-based Network Types 에서 선택을 합니다. 이번 테스트에서는 ether를 선택합니다.

    * Network Name [net_ether_01]--->선택
    * Network Type ether
    * Netmask(IPv4)/Prefix Length(IPv6) [255.255.255.0]--->선택
    * Enable IP Address Takeover via IP Aliases [Yes]
    IP Address Offset for Heartbeating over IP Aliases []
    
    Command: OK stdout: nostderr: no
    Before command completion, additional instructions may appear below.

    -> 네트워크의 네임은 default로 net_ether_01로 생성되기 때문에 따로 건드리지는 않고, Netmask의 대역 255.255.255.0으로 설정을 해주고 완료합니다. 완료가 되면 IP Address Offset for Heartbeating over IP Aliases의 경우 자동으로 Public 대역으로 설정이 됩니다. 

    [root@test_svr1:/]# smit hacmp
    Initialization and Standard Configuration
    Extended Configuration--->선택
    System Management (C-SPOC)
    Problem Determination Tools
    Can't find what you are looking for ?
    Not sure where to start ?

    -> Extended Configuration의 항목을 선택합니다.

    Discover HACMP-related Information from Configured Nodes
    Extended Topology Configuration--->선택
    Extended Resource Configuration
    Extended Cluster Services Settings
    Extended Cluster Event Configuration
    Extended Performance Tuning Parameters
    Security and Users Configuration
    Snapshot Configuration
    Export Definition File for Online Planning Worksheets
    Import Cluster Configuration from Online Planning Worksheets File

    -> Extended Topology Configuration의 항목을 선택합니다.

    Configure an HACMP Cluster
    Configure HACMP Nodes
    Configure HACMP Sites
    Configure HACMP Networks
    Configure HACMP Communication Interfaces/Devices--->선택
    Configure HACMP Persistent Node IP Label/Addresses
    Configure HACMP Global Networks
    Configure HACMP Network Modules
    Configure Topology Services and Group Services
    Show HACMP Topology

    -> Configure HACMP Communication Interfaces/Devices의 항목을 선택합니다.

    Add Communication Interfaces/Devices--->선택
    Change/Show Communication Interfaces/Devices
    Remove Communication Interfaces/Devices
    Update HACMP Communication Interface with Operating System Settings

    -> Add Communication Interfaces/Devices의 항목을 선택합니다.

    Add Discovered Communication Interface and Devices--->선택
    Add Pre-defined Communication Interfaces and Devices
    
    # Discovery last performed: (Mar 21 16:39)
    Communication Interfaces--->선택
    Communication Devices 
    
    Move cursor to desired item and press Enter.
    ALL
    net_ether_01--->선택
    
    # Node / Network
    # Interface IP Label IP Address
    # net_ether_01 / test_node1
    en3 test_svr1 10.50.1.15--->선택
    # net_ether_01 / test_node2
    en3 test_svr2 10.50.1.15--->선택
    
    Command: OKstdout: nostderr: no
    Before command completion, additional instructions may appear below.

    -> HACMP Cluster Heartbeat을 생성하기 위해서 기존에 생성한 net_ether_01 / test_node1 과 net_ether_01 / test_node2의 en3의 아이피 대역 두개를 선택하고 완료하도록 합니다. 앞선 작업에서 앞에서 Discover가 된 내용을 바탕으로 설정 하였기 때문에 Discover로 설정된 대역을 선택하였습니다. 

    [root@test_svr1:/]# smit hacmp
    Initialization and Standard Configuration
    Extended Configuration
    System Management (C-SPOC)--->선택
    Problem Determination Tools
    Can't find what you are looking for ?
    Not sure where to start ?

    -> Extended Configuration의 항목을 선택합니다.

    Storage--->선택
    HACMP Services
    Communication Interfaces
    Resource Groups and Applications
    HACMP Logs
    File Collections
    Security and Users
    Configure GPFS
    Storage
    Open a SMIT Session on a Node

    -> Storage의 항목을 선택합니다.

    Volume Groups--->선택
    Logical Volumes
    File Systems
    
    Physical Volumes

    -> Volume Groups의 항목을 선택합니다.

    List All Volume Groups
    Create a Volume Group--->선택
    Create a Volume Group with Data Path Devices
    
    Set Characteristics of a Volume Group
    Enable a Volume Group for Fast Disk Takeover or Concurrent Access
    
    Import a Volume Group
    Mirror a Volume Group
    Unmirror a Volume Group
    
    Manage Concurrent Access Volume Groups for Multi-Node Disk Heartbeat
    
    Synchronize LVM Mirrors
    Synchronize a Volume Group Definition
    
    Remove a Volume Group
    
    Manage Mirror Pools for Volume Groups
    
    test_node1--->선택
    test_node2--->선택
    
    00c5c6d704818cbb ( hdisk2 on all cluster nodes )--->선택
    00c5c6d704818d21 ( hdisk3 on all cluster nodes )
    00c5c6d704818d6e ( hdisk4 on all cluster nodes )
    00c5c6d704818db7 ( hdisk5 on all cluster nodes )
    00c5c6d704818e08 ( hdisk6 on all cluster nodes )
    00c5c6d704818e60 ( hdisk7 on all cluster nodes )
    00c5c6d704818eab ( hdisk8 on all cluster nodes )
    00c5c6d704818f1b ( hdisk9 on all cluster nodes )
    00c5c6d704818f65 ( hdisk10 on all cluster nodes)
    00c5c6d704818fa3 ( hdisk11 on all cluster nodes)
    
    
    Legacy
    Original
    Big
    Scalable--->선택

    -> Heartbeat의 VG를 생성하기 위해서 (C-SPOC)의 항목에서 볼륨그룹을 생성 해주도록 합니다. 볼륨그룹을 생성해주는 과정에서 현재 hdisk2번을 Heartbeat의 VG로 만드는게 목적이기 때문에 디스크 자체의 양쪽 노드가 shared volume으로 구성이 되어 있어야 합니다. 마지막으로 볼륨의 유형을 Scalable로 가장 러프한 타입으로 지정해주고 완료합니다.

    Node Namestest_node1,test_node2
    Resource Group Name[]
    PVID00c5c6d704818cbb
    VOLUME GROUP name[heartbeatvg]--->선택
    Physical partition SIZE in megabytes4
    Volume group MAJOR NUMBER[38]--->선택
    Enable Cross-Site LVM Mirroring Verificationfalse
    Enable Fast Disk Takeover or Concurrent AccessFast Disk Takeover or Disk Heart Beat
    Volume Group Type Scalable
    
    Max PPs per VG in units of 1024 32--->선택
    Max Logical Volumes 256--->선택
    
    Enable Strict Mirror PoolsNo
    Mirror Pool name []
    
    Command: OK stdout: yes stderr: no
    Before command completion, additional instructions may appear below.
    
    test_node1: mkvg: This concurrent capable volume group must be varied on manually.
    test_node1: heartbeatvg
    test_node1: 00c5c6d704818cbb0000000000000000
    test_node1: synclvodm: No logical volumes in volume group heartbeatvg.
    test_node1: Volume group heartbeatvg has been updated.
    test_node1: heartbeatvg
    test_node2: 00c5c6d704818cbb0000000000000000
    test_node2: synclvodm: No logical volumes in volume group heartbeatvg.
    test_node2: 0516-783 importvg: This imported volume group is concurrent capable.
    test_node2: Therefore, the volume group must be varied on manually.
    test_node2: 0516-1804 chvg: The quorum change takes effect immediately.
    test_node2: Volume group heartbeatvg has been imported.
    test_node2: heartbeatvg
    cl_mkvg: Discovering Volume Group Configuration...

    -> hdisk2번에 현재 test_svr1과 test_svr2에 동시에 shared volume로 구성되어 있는 디스크에 heartbeatvg가 생성된 것을 확인 할 수 있습니다.

    [root@test_svr1:/]# lspv | grep -i heartbeatvg 
    hdisk0 00008492ef481bbc rootvg active
    hdisk1 00c5c6d7197155b8 None
    hdisk2 00c5c6d704818cbb heartbeatvg 

    -> heartbeatvg가 hdisk2번에 생성 된것을 확인 할 수 있습니다.

     

    2021.03.22 - [System and Cloud/Unix] - IBM AIX HACMP V6 설치 및 업데이트 하는 방법

     

    IBM AIX HACMP V6 설치 및 업데이트 하는 방법

    IBM AIX HACMP V6 설치 및 업데이트하는 방법 [root@test_svr1:/INSTALL]# ls -al | grep -i PowerHA_V6 drwxr-xr-x 2 root system 256 Feb 09 20:06 PowerHA_V6 drwxr-xr-x 3 root system 256 Mar 15 21:..

    pinetreeday.tistory.com

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

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

     

    반응형

    댓글

Designed by Tistory.