ABOUT ME

-

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

    AIX로고이미지

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

    [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--->선택 
    
    test_node1hdisk2 00c5c6d704818cbbx--->선택
    test_node2hdisk2 00c5c6d704818cbbx--->선택
    
    Command: OKstdout: nostderr: no
    Before command completion, additional instructions may appear below.

    -> hdisk2번에 디바이스 커뮤니케이션을 설정할 수 있도록 노드 1번과 2번이 Communication Devices 공유할 수 있도록 선택을 합니다.

    [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 Resource Configuration의 항목을 선택합니다.

    HACMP Extended Resources Configuration--->선택
    Configure Resource Group Run-Time Policies
    HACMP Extended Resource Group Configuration

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

    Configure HACMP Applications Servers
    Configure HACMP Service IP Labels/Addresses--->선택
    Configure HACMP Tape Resources
    Configure HACMP Communication Adapters and Links
    Configure Custom Disk Methods
    Configure Custom Volume Methods
    Configure Custom Filesystem Methods
    Customize Resource Group and Resource Recovery
    Configure Resource Distribution Preferences

    -> HACMP의 서비스아이피를 등록하기 위해서 Configure HACMP Service IP Labels/Addresses의 항목을 선택합니다.

    Add a Service IP Label/Address--->선택
    Change/ Show a Service IP Label/Address
    Remove Service IP Label(s)/Address(es)

    -> HACMP의 서비스아이피를 추가해 주기 위해서 Add a Service IP Label/Address의 항목을 선택합니다.

    Configurable on Multiple Nodes--->선택
    Bound to a Single Node 

    -> Config의 환경을 멀티형 노드로 진행하기 위해서 Configurable on Multiple Nodes의 항목을 선택합니다. 

    net_ether_01 (10.50.1.0/24)-->선택
    
    [Entry Fields]
    * IP Label/Addresstest_serviceip
    Netmask(IPv4)/Prefix Length(IPv6)[255.255.255.0]
    * Network Namenet_ether_01
    Alternate Hardware Address to accompany IP Label/A []
    ddress

    -> C클래스의 서브넷마스크를 주고 기존에 생성한 net_ether_01의 형태로 설정을 합니다.

    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 Resource Configuration의 항목을 선택합니다.

    Extended Verification and Synchronization
    HACMP Cluster Test Tool
    
    HACMP Extended Resources Configuration
    Configure Resource Group Run-Time Policies
    HACMP Extended Resource Group Configuration--->선택

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

    Add a Resource Group--->선택
    Change/Show a Resource Group
    Change/Show Resources and Attributes for a Resource Group
    Remove a Resource Group
    Show All Resources by Node or Resource Group

    -> 리소스그룹을 생성하기 위해서 Add a Resource Group의 항목을 선택합니다. 리소스 그룹에 속해 있는 볼륨 그룹을 concurrentvg로 takeover하기 위해서 생성해 줍니다.

    [Entry Fields]
    * Resource Group Name[HACMPRG]
    * Participating Nodes (Default Node Priority)[test_node1 test_node2]
    
    Startup PolicyOnline On Home Node Only
    Fallover Policy Fallover To Next Priority Node In The List
    Fallback Policy Never Fallback--->변경
    
    Command: OKstdout: nostderr: no
    Before command completion, additional instructions may appear below.

    -> 생성을 HACMPRG의 리소스 그룹의 이름으로 생성을 하고 그 안에 test_node1, test_node2의 노드에 속해있는 vg와 디스크를 쓰기 위해서 Fallback Policy의 정책을 Never Fallback 변경해 주도록 합니다. 

    [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
    
    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--->선택
    
    00c5c6d704818f65 ( hdisk10 on all cluster nodes )--->선택
    00c5c6d704818fa3 ( hdisk11 on all cluster nodes )--->선택

    -> 볼륨그룹 생성을 한 후에 기존의 양쪽 서버 노드 test_node1, test_node2를 선택하고 볼륨 그룹을 생성할 디스크 hdisk10, hdisk11을 선택해주도록 합니다.

    Node Namestest_node1,test_node2
    Resource Group Name[]
    PVID00c5c6d704818f65 00c5c6d704818fa3
    VOLUME GROUP name[HACMPVG]--->생성
    Physical partition SIZE in megabytes4
    Volume group MAJOR NUMBER[39]---> 선택
    Enable Cross-Site LVM Mirroring Verificationfalse 
    Enable Fast Disk Takeover or Concurrent AccessConcurrent Access 
    Volume Group Type Scalable
    
    Max PPs per VG in units of 1024 32--->선택
    Max Logical Volumes 256--->선택
    
    Enable Strict Mirror PoolsNo
    Mirror Pool name []
    
    Warning:
    Changing the volume group major number may result
    in the command being unable to execute
    successfully on a node that does not have the
    major number currently available.Please check
    for a commonly available major number on all nodes
    before changing this setting.
    
    Command: OKstdout: 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: HACMPVG
    test_node1: 00c5c6d704818f650000000000000000
    test_node1: synclvodm: No logical volumes in volume group HACMPVG.
    test_node1: Volume group HACMPVG has been updated.
    test_node1: HACMPVG
    test_node2: 00c5c6d704818f650000000000000000
    test_node2: synclvodm: No logical volumes in volume group HACMPVG.
    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: HACMPVG
    test_node2: Volume group HACMPVG has been imported.
    cl_mkvg: Discovering Volume Group Configuration...
    ...(생략)

    -> test_svr1, test_svr2의 노드에 HACMPVG가 생성이 되고 hdisk10번, hdis11번에 vg를 생성하여 추후에 리소스 그룹에 vg를 포함시켜주도록 하겠습니다. 볼륨 그룹을 생성하게 되면 노드의 정보를 스캔하면서 완료가 됩니다.

    [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 Resource Configuration의 항목을 선택합니다. 

    HACMP Extended Resources Configuration
    Configure Resource Group Run-Time Policies
    HACMP Extended Resource Group Configuration--->선택

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

    Add a Resource Group
    Change/Show a Resource Group--->선택
    Change/Show Resources and Attributes for a Resource Group
    Remove a Resource Group
    Show All Resources by Node or Resource Group
    
    HACMPVG--->선택

    -> 기존에 만든 리소스그룹에 생성한 HACMPVG를 포함시켜주기 위해서 리소스 그룹 변경 항목을 선택하도록 합니다.

    Resource Group Name HACMPRG
    Participating Nodes (Default Node Priority) test_node1 test_node2
    
    Startup PolicyOnline On Home Node Only
    Fallover Policy Fallover To Next Priority Node In The List
    Fallback Policy Never Fallback
    
    Service IP Labels/Addresses[test_serviceip]--->선택
    Application Servers[]
    
    Volume Groups[HACMPVG]--->선택
    Use forced varyon of volume groups, if necessaryfalse
    Automatically Import Volume Groupsfalse
    
    Filesystems (empty is ALL for VGs specified) []
    Filesystems Consistency Check fsck
    Filesystems Recovery Method sequential
    Filesystems mounted before IP configuredfalse
    Filesystems/Directories to Export (NFSv2/3)[]
    +
    Filesystems/Directories to Export (NFSv4)[]
    Stable Storage Path (NFSv4)[]
    Filesystems/Directories to NFS Mount []
    Network For NFS Mount[]
    
    Tape Resources []
    Raw Disk PVIDs []
    
    Fast Connect Services[]
    Communication Links[]
    
    Primary Workload Manager Class []
    Secondary Workload Manager Class []
    
    Miscellaneous Data []
    WPAR Name[]
    
    Command: OKstdout: nostderr: no
    Before command completion, additional instructions may appear below.

    -> 리소스그룹 변경의 항목에서 생성하였던 HACMPRG의 리소스 그룹에 현재 HACMPVG를 포함시켜주었고 이 볼륨은 test_serviceip를 통해서 리소스 그룹이 이동을 할 수 있게 되는 것을 확인할 수 있습니다.

    [root@test_svr1:/]# lspv
    hdisk0  00008492ef481bbc  rootvg     active
    hdisk1  00c5c6d719710615  None
    hdisk2  00c5c6d704818cbb  heartbeatvg 
    ...(생략) 
    hdisk10 00c5c6d704818f65  HACMPVG 
    hdisk11 00c5c6d704818fa3  HACMPVG 
    hdisk12 00c5c6d7afc075e0  altinst_rootvg 
    
    [root@test_svr2:/]# lspv
    hdisk000008492ef481bbc    rootvg    active
    hdisk100c5c6d719710615    None
    hdisk200c5c6d704818cbb    heartbeatvg 
    ...(생략) 
    hdisk10 00c5c6d704818f65  HACMPVG 
    hdisk11 00c5c6d704818fa3  HACMPVG 
    hdisk12 00c5c6d7afc075e0  altinst_rootvg

    -> test_svr1서버와 test_svr2 서버에 공유 볼륨으로 할당된 디스크에 위에서 생성하였던 HACMPVG가 생성이 된 것을 확인 할 수 있습니다. 반드시 두 디스크의 PV값과 동일한 디스크에 생성이 되어야 합니다.

     

    2021.03.30 - [System and Cloud/Unix] - IBM AIX HACMP V6 구축 하는 방법[1]

     

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

    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..

    pinetreeday.tistory.com

     

    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.