RS/6000/AIX °ü·Ã °Ô½ÃÆÇ

2009/06/18(17:05) from 211.219.73.16
ÀÛ¼ºÀÚ : °­ÁÙ±â Á¶È¸¼ö : 5233 , ÁÙ¼ö : 292
[AIX] HACMP 5.4¿¡¼­ IP Address, Cluster Name, HostName º¯°æ
ÀÛ¾÷ÇÒ¶§ HACMP Serverce´Â Down »óÅ·Π¸¸µç´Ù.


1. hostname º¯°æ (red -> usa, blue -> uk)

¾Æ·¡ usa, uk¶ó°í ³ª¿À´Âµ¥, ÀÛ¾÷ÇÑÈÄ¿¡ ¸Þ´º¾óÀ» ¸¸µé¾ú±â ¶§¹®ÀÌ´Ù. ¹«½ÃÇÏ°í ±×´ë·Î µû¶óÇϱ⠹ٶõ´Ù.

usa@/ > hostname usa
uk@/ > hostname uk


2. hosts ÆÄÀϺ¯°æ

101 -> 201, 102 -> 202 ÀÌ·±½ÄÀ¸·Î ¾çÂÊ node¿¡¼­ º¯°æÇÑ´Ù.

usa@/ > vi /etc/hosts

127.0.0.1       loopback localhost      # loopback (lo0) name/address

#
# Node1 : usa
#
192.168.51.101  node1boot1
192.168.52.101  node1boot2
192.168.53.101  node1admin
192.168.53.111  appA5

#
# Node2 : uk
#
192.168.51.102  node2boot1
192.168.52.102  node2boot2
192.168.53.102  node2admin
192.168.53.112  appB5


3. chinet en0, en1 ipÁÖ¼Ò º¯°æ

usa@/ > smitty chinet
uk@/ > smitty chinet

¿¡¼­ en0, en1À» detach&up Çϸ鼭 ipÁÖ¼Ò º¯°æÇϴµ¥, ¾çÂÊ ³ëµå¿¡¼­ ÇÑ´Ù.


4. rhosts ipÁÖ¼Ò º¯°æ

¾çÂÊ ³ëµå¿¡¼­ ¾Æ·¡ ÆÄÀÏ º¯°æ
usa@/usr/es/sbin/cluster/etc > vi rhosts
192.168.51.101
192.168.52.101

uk@/usr/es/sbin/cluster/etc > vi rhosts
192.168.51.101
192.168.52.101

º¯°æÈÄ, ¾çÂÊ ³ëµå¿¡¼­

usa@/usr/es/sbin/cluster/etc > refresh -s clcomdES
uk@/usr/es/sbin/cluster/etc > refresh -s clcomdES

Çؼ­ daemon Àç½ÇÇà


ÀÌÁ¦ºÎÅÍ ÀÛ¾÷Àº usa(hacmp configuration ÀÛ¾÷³ëµå)¿¡¼­¸¸ ÇÏ¸é µÈ´Ù.

5. Add/Change/Show an HACMP Cluster - Extended Configuration¿¡¼­

  Add/Change/Show an HACMP Cluster

Type or select values in entry fields.
Press Enter AFTER making all desired changes.
 
                                                       [Entry Fields]
* Cluster Name                                       [ha_cluster]
 
 NOTE: HACMP must be RESTARTED
 on all nodes in order for change to take effect
 


6. Change/Show a Node in the HACMP Cluster - Extended Configuration¿¡¼­

¿¡¼­ node À̸§ º¯°æÇϴµ¥, º¸Åë hostname°ú °°°Ô ÇÑ´Ù.

¾Æ·¡ ¸Þ´º¿¡¼­ New Node Name & Communication Path to Node¸¦ º¯°æÇÑ´Ù.

                            Change/Show a Node in the HACMP Cluster

Type or select values in entry fields.
Press Enter AFTER making all desired changes.
 
                                                       [Entry Fields]
* Node Name                                           red
 New Node Name                                      []
 Communication Path to Node                         [192.168.51.201]                          +
 Persistent Node IP Label/Address                    node1admin



º¯°æÈÄ

Discover HACMP-related Information from Configured Nodes


7. Change/Show Communication Interfaces/Devices- Extended Configuration¿¡¼­

¿¡¼­ disk heartbit  À̸§ º¯°æ


8. Verify & Sync - Initialization & Standard Configuration

usa@/ > netstat -i
Name  Mtu   Network     Address              Ipkts Ierrs    Opkts Oerrs  Coll
en0   1500  link#2      0.2.55.4f.b8.1c        350     0      144     0     0
en0   1500  192.168.51  node1boot1             350     0      144     0     0
en0   1500  192.168.53  node1admin             350     0      144     0     0
en1   1500  link#3      0.2.55.4f.b8.1b       1593     0      903     0     0
en1   1500  192.168.52  node1boot2            1593     0      903     0     0
lo0   16896 link#1                            1952     0     1964     0     0
lo0   16896 127         loopback              1952     0     1964     0     0
lo0   16896 ::1                               1952     0     1964     0     0


9. Hacmp start

usa@/ > netstat -i
Name  Mtu   Network     Address              Ipkts Ierrs    Opkts Oerrs  Coll
en0   1500  link#2      0.2.55.4f.b8.1c       1581     0      744     0     0
en0   1500  192.168.51  node1boot1            1581     0      744     0     0
en0   1500  192.168.53  node1admin            1581     0      744     0     0
en1   1500  link#3      0.2.55.4f.b8.1b       4534     0     2389     0     0
en1   1500  192.168.52  node1boot2            4534     0     2389     0     0
en1   1500  192.168.53  appA5                 4534     0     2389     0     0
lo0   16896 link#1                            3215     0     3232     0     0
lo0   16896 127         loopback              3215     0     3232     0     0
lo0   16896 ::1                               3215     0     3232     0     0

usa@/ > netstat -in
Name  Mtu   Network     Address              Ipkts Ierrs    Opkts Oerrs  Coll
en0   1500  link#2      0.2.55.4f.b8.1c       6423     0     4923     0     0
en0   1500  192.168.51  192.168.51.201        6423     0     4923     0     0
en0   1500  192.168.53  192.168.53.201        6423     0     4923     0     0
en1   1500  link#3      0.2.55.4f.b8.1b       8383     0     3944     0     0
en1   1500  192.168.52  192.168.52.201        8383     0     3944     0     0
en1   1500  192.168.53  192.168.53.211        8383     0     3944     0     0
lo0   16896 link#1                            9227     0     9246     0     0
lo0   16896 127         127.0.0.1             9227     0     9246     0     0
lo0   16896 ::1                               9227     0     9246     0     0

usa@/ > clRGinfo
-----------------------------------------------------------------------------
Group Name     Group State                  Node           
-----------------------------------------------------------------------------
appA_group     ONLINE                       red            
              OFFLINE                      blue           

appB_group     ONLINE                       blue           
              OFFLINE                      red            


10. Hacmp command

usa@/ > lssrc -ls clstrmgrES |grep state
Current state: ST_STABLE

usa@/ > cltopinfo

usa@/ > clRGinfo
-----------------------------------------------------------------------------
Group Name     Group State                  Node           
-----------------------------------------------------------------------------
appA_group     ONLINE                       usa            
              OFFLINE                      uk             

appB_group     ONLINE                       uk             
              OFFLINE                      usa



11. Hacmp Tip

uk@/ > lspv
hdisk0          005f97fa552a6fba                    rootvg          active
hdisk1          005f994ae19a9434                    altinst_rootvg  
hdisk2          005f97fa6204aedd                    vgA             concurrent
hdisk3          005f97fa6204bb8e                    vgB             concurrent
hdisk4          005f97fa6204c729                    vgAA            concurrent
hdisk5          005f97fa6204d311                    None            
hdisk6          005f97fa5d27d8b4                    None            
hdisk7          005f97fae7dd9e3d                    vgC             concurrent


* enhanced concurrent vg ¸¸µé±â (C-Spoc)
HACMP Concurrent Logical Volume Management

* logical volume, file system ¸¸µé±â (C-Spoc)
Shared File Systems


usa@/ > lssrc -ls clstrmgrES|grep state
Current state: ST_STABLE

usa@/ > startsrc -s clinfoES
usa@/ > clstat -a


               clstat - HACMP Cluster Status Monitor
               -------------------------------------

Cluster: ha_cluster     (1245655151)
Fri Jun 19 11:15:06 2009
               State: UP               Nodes: 2
               SubState: STABLE


       Node: blue              State: UP
          Interface: node2boot1 (1)            Address: 192.168.51.202
                                               State:   UP
          Interface: node2boot2 (1)            Address: 192.168.52.202
                                               State:   UP
          Interface: blue_hdisk2_01 (0)        Address: 0.0.0.0
                                               State:   UP
          Interface: appB5 (1)                 Address: 192.168.53.212
                                               State:   UP
          Resource Group: appB_group                   State:  On line

       Node: red               State: UP
          Interface: node1boot1 (1)            Address: 192.168.51.201
                                               State:   UP
          Interface: node1boot2 (1)            Address: 192.168.52.201
                                               State:   UP
          Interface: red_hdisk2_01 (0)         Address: 0.0.0.0
                                               State:   UP
          Interface: appA5 (1)                 Address: 192.168.53.211
                                               State:   UP
          Resource Group: appA_group                   State:  On line

************************ f/forward, b/back, r/refresh, q/quit ******************



usa@/ > cltopinfo
Cluster Name: ha_cluster
Cluster Connection Authentication Mode: Standard
Cluster Message Authentication Mode: None
Cluster Message Encryption: None
Use Persistent Labels for Communication: No
There are 2 node(s) and 2 network(s) defined
NODE blue:
       Network net_diskhb_01
               blue_hdisk2_01  /dev/hdisk2
       Network net_ether_01
               appB5   192.168.53.212
               appA5   192.168.53.211
               node2boot1      192.168.51.202
               node2boot2      192.168.52.202
NODE red:
       Network net_diskhb_01
               red_hdisk2_01   /dev/hdisk2
       Network net_ether_01
               appB5   192.168.53.212
               appA5   192.168.53.211
               node1boot1      192.168.51.201
               node1boot2      192.168.52.201

Resource Group appA_group
       Startup Policy   Online On Home Node Only
       Fallover Policy  Fallover To Next Priority Node In The List
       Fallback Policy  Fallback To Higher Priority Node In The List
       Participating Nodes      red blue
       Service IP Label                 appA5

Resource Group appB_group
       Startup Policy   Online On Home Node Only
       Fallover Policy  Fallover To Next Priority Node In The List
       Fallback Policy  Fallback To Higher Priority Node In The List
       Participating Nodes      blue red
       Service IP Label                 appB5


usa@/ > ls -l /tmp/hacmp.out
-rw-r--r--   1 root     system       743087 Jun 19 11:49 /tmp/hacmp.out

usa@/ > ls -l /usr/es/adm/cluster.log
-rw-rw-r--   1 root     system       381056 Jun 19 11:49 /usr/es/adm/cluster.log

usa@/ > ls -l /var/hacmp/clverify/clverify.log
-rw-------   1 root     system       107764 Jun 19 11:50 /var/hacmp/clverify/clverify.log




Modify Delete Post Reply Backward Forward List
Powered by Kang Jul Ki