°Ô½Ã¹° 259°Ç
   
[RedHat] RHCS ±¸¼º ¹× ¸®¼Ò½º µî·Ï (¼öÁ¤ - 2014.10.29)
±Û¾´ÀÌ : ÃÖÀå¼· ³¯Â¥ : 2014-10-28 (È­) 17:12 Á¶È¸ : 12678
RHCS
Ŭ·¯½ºÅÍ´Â º¸Åë µÎ´ë ÀÌ»óÀÇ ÄÄÇ»ÅÍ°¡ »óÈ£ÀÛ¿ëÇϸç ƯÁ¤ ÀÛ¾÷À» ¼öÇàÇϴ°ÍÀ» ÀǹÌÇÑ´Ù.
Ŭ·¯½ºÅÍ´Â º¸Åë HA, LBS, High Performence µîÀÇ ¿ëµµ·Î »ç¿ëÇÑ´Ù.

¿©±â¼­´Â 2°³ÀÇ node¿Í 1 °³ÀÇ ½ºÅ丮Áö ³ëµå¸¦ »ç¿ëÇÒ °ÍÀ̸ç,
°¢°¢ÀÇ ³ëµå´Â RHEL6.5 µ¥½ºÅ©Å¾ ¹öÀüÀ» ÀÌ¿ëÇß´Ù. 

½Ã³ª¸®¿À
Node-A(Node-1): 192.168.122.130 (10.10.10.130)
Node-B(Node-2): 192.168.122,140 (10.10.10.140)
Node-C(Node-3): 192.168.122.150 (10.10.10.150) (Cluster Management Server)

# cat /etc/hosts µî·Ï
10.10.10.130 130-VM
10.10.10.140 140-VM
10.10.10.150 150-VM

  1. RHCS(RedHat Cluster Suite)¿Í Conga(Web base management suit) ¼³Ä¡
    ¸ðµç ³ëµå¿¡ yum groupinstall ¡°High Availability¡± Ä¿¸Çµå·Î °ü·Ã ÆÐÅ°Áö¸¦ ¼³Ä¡ÇÑ´Ù.
    # yum groupinstall "High Availability"


  2. Ŭ·¯½ºÅÍ °ü¸®¼­¹ö(Node-C)¿¡ yum groupinstall ¡°High Availability Management¡±·Î °ü·Ã ÆÐÅ°Áö¸¦ ¼³Ä¡ÇÑ´Ù.
    # yum groupinstall "High Availability Management"

  3. Node-A, B ¿¡¼­ ¾Æ·¡ ¼­ºñ½º¸¦ ½ÇÇàÇÑ´Ù.
    # chkconfig ricci on
    # chkconfig modclusterd on

    # passwd ricci
    Changing password for user ricci.
    New password:
    BAD PASSWORD: it is too short
    BAD PASSWORD: is too simple
    Retype new password:
    passwd: all authentication tokens updated successfully.

    # /etc/init.d/cman start
    Starting cluster:
    Checking if cluster has been disabled at boot... [ OK ]
    Checking Network Manager... [ OK ]Global setup... [ OK ]
    Loading kernel modules... [ OK ]
    Mounting configfs... [ OK ]
    Starting cman... [ OK ]
    Waiting for quorum... [ OK ]
    Starting fenced... [ OK ]
    Starting dlm_controld... [ OK ]
    Starting gfs_controld... [ OK ]
    Unfencing self... [ OK ]
    Joining fence domain... [ OK ]

    # /etc/init.d/ricci start
    Starting oddjobd: [ OK ]
    Starting ricci: [ OK ]

    # /etc/init.d/rgmanager start
    Starting Cluster Service Manager: [ OK ]

    # /etc/init.d/modclusterd start
    Starting Cluster Module - cluster monitor: Setting verbosity level to LogBasic
    [ OK ]

  4. ¸Å´ÏÁö¸ÕÆ® ³ëµå¿¡¼­´Â ¾Æ·¡ ¼­ºñ½º¸¦ ½ÃÀÛÇÑ´Ù.
    # chkconfig luci on
    # chkconfig ricci on
    # /etc/init.d/luci start
    Starting saslauthd: [ OK ]
    Start luci... [ OK ]
    Point your web browser to https://cent63-c:8084 (or equivalent) to access luci

    # /etc/init.d/ricci start
    Starting oddjobd: [ OK ]
    Starting ricci: [ OK ]

    luci°¡ ½ÇÇàµÇÁö ¾Ê´Â ´Ù¸é ¾Æ·¡ ÁÖ¼Ò¸¦ Âü°íÇÑ´Ù.
    https://access.redhat.com/knowledge/solutions/66259 
    # yum downgrade python-repoze-who-friendlyform-1.0-0.3.b3.el6

    luci ¼­¹ö¿¡ ·Î±×ÀÎÇÑ´Ù.
    https://¼­¹öIP:8084
    (id´Â root, ºñ¹Ð¹øÈ£´Â rootÀÇ ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇÏ¸é ·Î±×ÀÎ ÇÒ ¼ö ÀÖ´Ù._

  5. ÀÌÁ¦, Failover domain, Resource, Service GroupÀ» µî·ÏÇÏ¿© »ç¿ëÇÏ¸é µÈ´Ù.
    apache ¼­¹ö¸¦ resource·Î µî·ÏÇØ º¸¾ÒÀ¸³ª, Á¤»óÀÛµ¿ÇÏÁö ¾Ê¾Æ¼­, µ¿ÀÏ ¼­ºñ½º¸¦ ½ºÅ©¸³Æ®·Î ÁöÁ¤Çß´õ´Ï Àß µÇ¾ú´Ù.

    °¢ ³ëµå ¼­¹öÀÇ Å͹̳Πâ¿¡¼­´Â clustat Ä¿¸Çµå¸¦ ÀÌ¿ëÇÏ¿© È®ÀÎ °¡´ÉÇÏ´Ù.

    Cluster Status for VM-Cluster @ Tue Oct 28 22:15:40 2014
    Member Status: Quorate
    Member Name                                    ID   Status
     ------ ----                                    ---- ------
     130-VM                                             1 Online, Local
     140-VM                                             2 Online

  6. Ŭ·¯½ºÅÍ ¼­ºñ½ºÀÇ Á¤Áö.
    # /etc/init.d/rgmanager stop
    # /etc/init.d/cman stop
    # /etc/init.d/ricci stop
    # /etc/init.d/modclusterd stop

  7. Ŭ·¯½ºÅÍ¿¡¼­ iSCSI ¿Í GFS2 »ç¿ë.
    iscsi ¼­¹ö: 192.168.100.35

    °¢ ³ëµå¿¡ iscsi¿Í, gfs2 ¸¦ ¼³Ä¡ÇÑ´Ù.
    iscsi°¡ ¿¹Àü targetÀ» ã°í ÀÖ´Ù¸é, ¿¹Àü targetÀ» Áö¿öÁØ´Ù
    # iscsiadm -m node -o delete <ip address>)

    # yum install iscsi-initiator-utils gfs2-utils

    Node-C ¿¡¼­, iSCSI µð¹ÙÀ̽º¸¦ ¸¶¿îÆ®ÇÏ°í, gfs2 È­ÀϽýºÅÛÀ» »ý¼ºÇÑ´Ù.
    # mkfs.gfs2 -t Cent63-cluster:gfs2fs -j 4 /dev/sda1
    This will destroy any data on /dev/sda1.
    It appears to contain: data
    Are you sure you want to proceed? [y/n] y
    Device: /dev/sda1
    Blocksize: 4096
    Device Size 5.00 GB (1310465 blocks)
    Filesystem Size: 5.00 GB (1310464 blocks)
    Journals: 4
    Resource Groups: 20
    Locking Protocol: "lock_dlm"
    Lock Table: "Cent63-cluster:gfs2fs"
    UUID: c2c6666b-f069-2ebb-ac05-7446f25b0773

    Node-A, B ¿¡¼­ iscsi¼­ºñ½º¸¦ ½ÇÇàÇÑ ÈÄ,  iSCSI ÀåÄ¡¸¦ ¸¶¿îÆ® ÇÏ¿© »ç¿ëÇÑ´Ù.
    gfs2 ´öºÐ¿¡, a ³ëµå¿¡¼­ È­ÀÏÀ» »ý¼ºÇϰųª »èÁ¦Çϸé, b³ëµå¿¡¼­µµ ¹Ù·Î Àû¿ëµÇ´Â°ÍÀ» º¼ ¼ö ÀÖ´Ù.

    # mount -t gfs2 /dev/sda1 /iscsi

  • ¸®¼Ò½º µî·Ï¼ø¼­
    ¸®¼Ò½º »ý¼º -> ÆäÀÏ ¿À¹ö -> ¼­ºñ½º ±×·ì 




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

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