°Ô½Ã¹° 51°Ç
 
[RHEL6] RHCS IP º¯°æ ÀÛ¾÷¹× Àü¹ÝÀûÀÎ ¸í·É¾îµé
±Û¾´ÀÌ : theko ³¯Â¥ : 2024-06-07 (±Ý) 23:46 Á¶È¸ : 363
1. ¾çÂÊ ¼­¹ö ¸ðµÎ º¯°æ

# clustat

# service rgmanager stop

# service cman stop


# vim /etc/cluster.conf

1) config_version º¯°æ
<cluster config_version="12" name="sascluster">
==> <cluster config_version="13" name="sascluster">


2) IP º¯°æ
<ip address="192.168.10.73/24" monitor_link="1" sleeptime="10"/>
<ip ref="192.168.10.74/24">

===>

<ip address="192.168.10.73/24" monitor_link="1" sleeptime="10"/>
<ip ref="192.168.10.74/24">


# service cman start

# service rgmanager start

# clustat

# cman_tool status

============================================

> Ŭ·¯½ºÅÍ ¼­ºñ½º Enable
[root@cs_node01 ~]# clusvcadm -e 'Service Name' -m 'member'

> Ŭ·¯½ºÅÍ ¼­ºñ½º Disable
[root@cs_node01 ~]# clusvcadm -d 'Service Name'

> Ŭ·¯½ºÅÍ ¼­ºñ½º Stop
[root@cs_node01 ~]# clusvcadm -s 'Service Name'

--------------------------------------------------------------------
> Ŭ·¯½ºÅÍ ¼­ºñ½º Relocate
[root@cs_node01 ~]# clusvcadm -r 'Service Name'   
or
[root@cs_node01 ~]# clusvcadm -r 'Service Name'   -m 'member'

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

> Ŭ·¯½ºÅÍ ¼­ºñ½º Freezing
[root@cs_node01 ~]# clusvcadm -Z 'Service Name'

> Ŭ·¯½ºÅÍ ¼­ºñ½º unFreezing
[root@cs_node01 ~]# clusvcadm -U 'Service Name'

> Ŭ·¯½ºÅÍ ¼­ºñ½º Lock (Lock »óÅ¿¡¼­´Â cluster ¼­ºñ½º ½ÃÀÛÀÌ ¾ÈµÊ)
[root@cs_node01 ~]# clusvcadm -l 'Service Name'

> Ŭ·¯½ºÅÍ ¼­ºñ½º unLock
[root@cs_node01 ~]# clusvcadm -u 'Service Name'

> Ŭ·¯½ºÅÍ ¼­ºñ½º Lock »óÅ º¸±â
[root@cs_node01 ~]# clusvcadm -S 'Service Name'


> Reload cluster.conf and update config version. Ŭ·¯½ºÅÍ xml ¼³Á¤ÆÄÀÏ reload ¹× ¹öÀü ¾÷µ¥ÀÌÆ®.
[root@cs_node01 ~]# cman_tool version -r
--> ricci°¡ µ¿ÀÛÇÏ¿©¾ß ÇÔ. -r ¿É¼Ç : Reload cluster.conf and update config version.
--> ÇÑÂÊ ³ëµå¿¡¼­ cluster.conf¸¦ ¼öÁ¤ ÈÄ ÀÌ ¸í·ÉÀ» ½ÇÇàÇÏ¸é »ó´ë ³ëµåµµ cluster.conf °¡ reload µÇ¸ç ¾÷µ¥ÀÌÆ® µÊ.
* ¸¸¾à cman_tool·Î ³ëµå°£ cluster.conf µ¿±âÈ­¸¦ ½ÇÆÐÇÑ´Ù¸é ricci¸¦ restart ÇØÁÖ°í cman_tool version -r À» ÇÑ´Ù.

> ¼³Á¤ ÆÄÀÏ È®ÀΠ
# ccs_config_validate 
# ccs_config_validate -f /etc/cluster/cluster.conf


# ccs_tool update /etc/cluster/cluster.conf

# fence_xvm -a 225.0.1.12 -k /etc/cluster/fence_xvm-host2.key -H guest2 -o status
# fence_xvm -o reboot -a 225.0.1.12 -k /etc/cluster/fence_xvm_host1.key -H guest1 



# chkconfig ricci on
#chkconfig rgmanager on


https://access.redhat.com/documentation/ko-kr/red_hat_enterprise_linux/6/html/cluster_administration/s2-admin-manage-ha-services-operations-cli-ca

À̸§ Æнº¿öµå
ºñ¹Ð±Û (üũÇÏ¸é ±Û¾´À̸¸ ³»¿ëÀ» È®ÀÎÇÒ ¼ö ÀÖ½À´Ï´Ù.)
¿ÞÂÊÀÇ ±ÛÀÚ¸¦ ÀÔ·ÂÇϼ¼¿ä.
 

miwit.com sir.co.kr DNS Powered by DNSEver.com DNS Powered by DNSEver.com