******VG 및 디스크 셋팅******

1. data volume 15G * 3 // hb volume 1G *1


2. 1번 노드 

# smitty vg /  Add a Volume Group / Add a Scalable Volume Group / 


VOLUME GROUP name                                  [datavg]

  Physical partition SIZE in megabytes                                                                                                                                                        +

* PHYSICAL VOLUME names                              [hdisk1 hdisk2 hdisk3 hdisk4]                                                                                                            +

  Force the creation of a volume group?               no                                                                                                                                      +

  Activate volume group AUTOMATICALLY                 yes                                                                                                                                     +

    at system restart?

  Volume Group MAJOR NUMBER                          []                                                                                                                                       +#

  Create VG Concurrent Capable?                       enhanced concurrent                                                                                                                     +

  Max PPs per VG in units of 1024                     32                                                                                                                                      +

  Max Logical Volumes                                 256                                                                                                                                     +

  Enable Strict Mirror Pools                          No                                                                                                                                      +

  Infinite Retry Option                               no                                                                                                                                      +

* Power ha 7.1 이전 에는 enhanced concurrent 가 옵션이었지만, 7.1 부터는 설정을 하지 않아도 자동으로 적용이된다.

  enhanced concurrent 옵션을 주는 이유는 장애 발생시 takeover 시간을 줄이기 위해서이다.


3. 2번 노드 (pvid 생성)

  # chdev -l hdisk1 -a pv=yes

  # chdev -l hdisk2 -a pv=yes

  # chdev -l hdisk3 -a pv=yes

  # chdev -l hdisk4 -a pv=yes


4. 1번 노드 (디스크 속성 no_reserve policy 로 변경)

   # chdev -l hdisk1 -a reserve_policy=no_reserve 

   # chdev -l hdisk2 -a reserve_policy=no_reserve 

   # chdev -l hdisk3 -a reserve_policy=no_reserve 

   # chdev -l hdisk4 -a reserve_policy=no_reserve 


5. 1번 노드 (major number 확인)

   # ls -l /dev/datavg

   crw-rw----    1 root     system       45,  0 May 14 09:26 /dev/datavg


6. 1번 노드

   # exportvg datavg

7. 1,2번 노드

   * import시 필수적으로 major number 를 맞춰주어야 한다.

   # importvg -y datavg -V 45 hdisk1


---------------------------------------------------------------------------------------------------------

******클러스터 설치******

1. 1,2번 노드

 # smitty installp / Install Software / ESC + 4 / cd0 / 

   cluster.es.client, cluster.es.cspoc, cluster.es.nfs, cluster.es.server, cluster.license, cluster.man.en_US.es 설치


Type or select values in entry fields.

Press Enter AFTER making all desired changes.


                                                        [Entry Fields]

* INPUT device / directory for software               /dev/cd0

* SOFTWARE to install                                [cluster.es.client                                                  ALL  @@I:cluster.es.client _all_filesets,cluster.es.cspoc          > +

  PREVIEW only? (install operation will NOT occur)    no                                                                                                                                      +

  COMMIT software updates?                            yes                                                                                                                                     +

  SAVE replaced files?                                no                                                                                                                                      +

  AUTOMATICALLY install requisite software?           yes                                                                                                                                     +

  EXTEND file systems if space needed?                yes                                                                                                                                     +

  OVERWRITE same or newer versions?                   no                                                                                                                                      +

  VERIFY install and check file sizes?                no                                                                                                                                      +

  Include corresponding LANGUAGE filesets?            yes                                                                                                                                     +

  DETAILED output?                                    no                                                                                                                                      +

  Process multiple volumes?                           yes                                                                                                                                     +

  ACCEPT new license agreements?                      yes                                                                                                                                     +

  Preview new LICENSE agreements?                     no                                                                                                                                      +


  WPAR Management

      Perform Operation in Global Environment         yes                                                                                                                                     +

      Perform Operation on Detached WPARs             no                                                                                                                                      +

          Detached WPAR Names                        [_all_wpars]                                                                                                                             +

      Remount Installation Device in WPARs            yes                                                                                                                                     +

      Alternate WPAR Installation Device             []


2. 1,2번 노드

   cluster patch 실시


---------------------------------------------------------------------------------------------------------------

******클러스터 셋팅******


1. 1,2번 노드

   /etc/hosts

  

   192.168.0.180   test1_per

   192.168.0.181   test2_per

   192.168.0.200   test_srv

      

2. 1,2번 노드 (공백 없이)

    /etc/cluster/rhosts

    

    192.168.0.180

    192.168.0.181

    192.168.0.200

   

    stopsrc -s clcomd

    startsrc -s clcomd

   

    rsh 통신 확인


3. 1번 노드 (클러스터 노드 등록)

    

  # smitty hacmp / Cluster Nodes and Networks / Standard Cluster Deployment / Setup a Cluster, Nodes and Networks / 


                             Setup a Cluster, Nodes and Networks


Type or select values in entry fields.

Press Enter AFTER making all desired changes.


                                                        [Entry Fields]

* Cluster Name                                       [test_cluster]

  New Nodes (via selected communication paths)       [test2]                             +

  Currently Configured Node(s)                        test1


4. 1번 노드 (repository disk 등록)(구 heartbeat disk)


7.1 버전 이전은 heartbeat disk 라고 하여, hbvg 를 만들어서 구성을 해야 했다면, 7.1 버전부터는 디스크만 양쪽에 보이면 repository Disk 로 heartbeat disk 를 구성이 가능하다.


 # smitty hacmp / Cluster Nodes and Networks / Standard Cluster Deployment / Define Repository Disk and Cluster IP Address


 Define Repository Disk and Cluster IP Address


Type or select values in entry fields.

Press Enter AFTER making all desired changes.


                                                        [Entry Fields]

* Cluster Name                                        test_cluster

* Heartbeat Mechanism                                 Unicast                             +

* Repository Disk                                    [00cc60005c0b579a]                   +

  Cluster Multicast Address                          []

      (Used only for multicast heartbeat)


5. 1번 노드 (APP 등록)

   

 # smitty hacmp / Cluster Applications and Resources / Resources / Configure User Applications (Scripts and Monitors) /

   Application Controller Scripts / Add Application Controller Scripts


Add Application Controller Scripts


Type or select values in entry fields.

Press Enter AFTER making all desired changes.


                                                        [Entry Fields]

* Application Controller Name                        [test_APP]

* Start Script                                       [/usr/es/sbin/cluster/test_start.sh]

* Stop Script                                        [/usr/es/sbin/cluster/test_stop.sh]

  Application Monitor Name(s)                                                                    +

  Application startup mode                           [background]                                +


   이후 start,stop sh 을 chmod 755 실행 권한 주기


6. 1번 노드


  # smitty hacmp / Cluster Applications and Resources / Resources / Configure Service IP Labels/Addresses / 

   Add a Service IP Label/Address


Add a Service IP Label/Address


Type or select values in entry fields.

Press Enter AFTER making all desired changes.


                                                        [Entry Fields]

* IP Label/Address                                    test_srv                                  +

  Netmask(IPv4)/Prefix Length(IPv6)                  [255.255.255.0]

* Network Name                                        net_ether_01


7. 1번 노드


 #  smitty hacmp / Cluster Applications and Resources / Resource Groups / Add a Resource Group


 Add a Resource Group


Type or select values in entry fields.

Press Enter AFTER making all desired changes.


                                                        [Entry Fields]

* Resource Group Name                                [test_RG]

* Participating Nodes (Default Node Priority)        [test1 test2]                             +


  Startup Policy                                      Online On Home Node Only                   +

  Fallover Policy                                     Fallover To Next Priority Node In The Lis> +

  Fallback Policy                                     Fallback To Higher Priority Node In The L> +


8. 1번 노드


 #  smitty hacmp / Cluster Applications and Resources / Resource Groups / Change/Show Resources and Attributes for a Resource Group


Change/Show All Resources and Attributes for a Resource Group


Type or select values in entry fields.

Press Enter AFTER making all desired changes.


                                                        [Entry Fields]

  Resource Group Name                                 test_RG

  Participating Nodes (Default Node Priority)         test1 test2


  Startup Policy                                      Online On Home Node Only

  Fallover Policy                                     Fallover To Next Priority Node In The Lis>

  Fallback Policy                                     Fallback To Higher Priority Node In The L>

  Fallback Timer Policy (empty is immediate)         []                                          +


  Service IP Labels/Addresses                        [test_srv]                                 +

  Application Controllers                            [test_APP]                                 +


  Volume Groups                                      [datavg]                                    +

  Use forced varyon of volume groups, if necessary    false                                      +

  Automatically Import Volume Groups                  false                                      +


  Filesystems (empty is ALL for VGs specified)       []                                          +

  Filesystems Consistency Check                       fsck                                       +

  Filesystems Recovery Method                         sequential                                 +

  Filesystems mounted before IP configured            false                                      +


  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                                     []                                          +

  Raw Disk UUIDs/hdisks                              []                                          +

  Disk Error Management?                              no                                         +

  Fast Connect Services                              []                                          +


  Primary Workload Manager Class                     []                                          +

  Secondary Workload Manager Class                   []                                          +


  Miscellaneous Data                                 []

  WPAR Name                                          []                                          +

  User Defined Resources                             [ ]                                         +


9. 1번 노드


  # smitty hacmp / Cluster Nodes and Networks / Verify and Synchronize Cluster Configuration

'AIX' 카테고리의 다른 글

GPFS 운영 및 삭제방법  (0) 2018.07.25
GPFS3.5 설치 및 구성  (0) 2018.07.24
AIX Nim Server를 통해 OS 설치  (0) 2018.07.23

+ Recent posts