· KLDP.org · KLDP.net · KLDP Wiki · KLDP BBS ·
NMS ¹Ì·¯¸µ ½Ã½ºÅÛ ±¸Ãà

NMS ¹Ì·¯¸µ ½Ã½ºÅÛ ±¸Ãà


°³¿ä

NMS ½Ã½ºÅÛÀÌ ´ë°í°´ ¼­ºñ½º·Î¼­ Áß¿äÇÑ À§Ä¡¸¦ Â÷ÁöÇÔ¿¡ µû¶ó¼­ ¹é¾÷Àº ¹°·ÐÀÌ°í ¹Ì·¯¸µ ½Ã½ºÅÛÀÇ Çʿ伺ÀÌ ´ëµÎµÊ ±¸Çö¹æ¹ý


Active ½Ã½ºÅÛ¿¡¼­´Â snmp µ¥ÀÌÅ͸¦ ¼öÁýÇÏ¿©, mysql °ú rra ÆÄÀÏÀ» ÀúÀå, ÀÌ°ÍÀ» Standby ½Ã½ºÅÛ¿¡¼­ mysql Àº replication À¸·Î ¿¬°á rra ÆÄÀÏÀº rsync ·Î µ¿±âÈ­ÇÏ¿© ÇØ°á. rra ¸¦ ¸Å 5ºÐ¸¶´Ù µ¿±âÈ­ ÇÒ ÇÊ¿ä°¡ ¾øÀ½À¸·Î Çؼ­ 2ºÐ, 17ºÐ, 32ºÐ, 47ºÐÀÇ 15ºÐ °£°ÝÀ¸·Î µ¿±âÈ­ ´ë»ó½Ã½ºÅÛÀº Active ½Ã½ºÅÛ nw1nms.direct.co.kr (211.239.127.186) ¹× Standby ½Ã½ºÅÛ nw2nms.direct.co.kr (211.239.127.189) ÀÓ

nms-sync-struct.png
[PNG image (55.99 KB)]

¼¼ºÎ¼³Á¤

¼­ºñ½º ½Ã½ºÅÛÀÇ µð·ºÅ丮´Â ¸ðµÎ /var/www/NWNMS ·Î ÀÏÄ¡½ÃÅ°¸ç, µÎ´ëÀÇ µ¥ÀÌÅͺ£À̽º°¡ °øÀ¯µÇ¾î ÀÖÀ¸¹Ç·Î, Standby ½Ã½ºÅÛÀÇ mysql °èÁ¤Àº ¸ðµÎ Active ½Ã½ºÅÛ¿¡ ÀúÀåµÈ ³»¿ë¿¡ µû¸¥´Ù. °¡´ÉÇÏ¸é µÎ½Ã½ºÅÛÀÇ ¿î¿µÃ¼Á¦¿Í mysql ¹öÀüµîÀº ÀÏÄ¡½ÃÅ°°í mysql ÄÁÇÇ±Ô ÆÄÀÏÀÎ /etc/my.cnf µµ µ¿ÀÏÇÑ°ÍÀ» »ç¿ëÇÑ´Ù.

MySQL ¸®Çø®ÄÉÀÌ¼Ç ±¸¼º

¸®Çø®ÄÉÀ̼ÇÀ» ±¸¼ºÇϴ°ÍÀº tech:MySQL Replication ¸¦ ÂüÁ¶ÇÏ¿© ±¸¼ºÇÑ´Ù.

rra rsync ·Î µ¿±âÈ­ ±¸¼º

  • °èÁ¤Àº cacti ·Î ÆÄÀÏÀ» ÁÖ°í ¹Þ´Â°ÍÀ¸·Î ÀÏÄ¡½ÃŲ´Ù.
  • rsync ¸¦ ssh ·Î ±¸µ¿½Ã¿¡ ºñ¹Ð¹øÈ£¸¦ ÀԷ¹ÞÁö ¾Ê±âÀ§ÇÑ ºÎºÐÀº ÇÁ·Î±×·¡¹Ö TIP ¿¡¼­ "SSH ·Î ºñ¹Ð¹øÈ£ ¾øÀÌ ·Î±×ÀÎ ÇÏ´Â ¹æ¹ý" À» ÂüÁ¶.
  • Active ½Ã½ºÅÛÀÌ ¸Å 5ºÐ¸¶´Ù µ¿ÀÛÇϹǷΠ¸Å 7ºÐ¸¶´Ù µ¿ÀÛÇÏ°Ô ÇÏ¸é ¿Ïº®ÇÑ µ¿±âÈ­°¡ ÀÌ·ç¾îÁö´Â°ÍÀ̳ª rra ÆÄÀÏÀÇ Àü¼Û·®ÀÌ »ó´çÇÏ¿©, ½Ã½ºÅÛÀÇ ºÎÇϸ¦ »ý°¢Çؼ­ 2, 17, 32, 47 ÀÇ 15ºÐ °£°ÝÀ¸·Î µ¿±âÈ­¸¦ ±¸¼º /etc/crontab ¿¡ ¾Æ·¡³»¿ë Ãß°¡

# NMS rra data syncronize
2,17,32,47 * * * * cacti /usr/bin/rsync -au -e ssh 211.239.127.186:/var/www/NWNMS/rra /var/www/NWNMS/rra.rsync

Active ½Ã½ºÅÛÀÌ crash µÇ¾úÀ» °æ¿ì Stand-by ½Ã½ºÅÛÀ¸·Î ´ëü

  • active ½Ã½ºÅÛ shutdown
  • Standby ½Ã½ºÅÛ IP ÁÖ¼Ò¸¦ Active IP ·Î º¯°æ
  • /etc/crontab ÀÇ # À¸·Î ¸·Èù "/var/www/NWNMS/poller.php" ºÎºÐÀ» Ç®¾îÁÖ°í rsync ºÎºÐÀº # À¸·Î ¸·¾ÆÁÜ.

# for CACTI POLLER
#*/5 * * * * cacti /usr/bin/php /var/www/NWNMS/poller.php > /dev/null 2>&1
# NMS rra data syncronize
2,17,32,47 * * * * cacti /usr/bin/rsync -au -e ssh 211.239.127.186:/var/www/NWNMS/rra /var/www/NWNMS/rra.rsync

Âü°í

MySQL ÀÌ Active - Standby ½Ã½ºÅÛÀ¸·Î ±¸¼ºµÇ¾î ÀÖÀ¸¹Ç·Î µÎ½Ã½ºÅÛÀÇ MySQL À» ÇԺηΠÀç½ÃÀÛ ½ÃÅ°Áö ¸»°Í. °¡²û MySQL µ¿±âÈ­°¡ Àß ÀÌ·ç¾îÁö°í ÀÖ´ÂÁö È®ÀÎÇØ¾ß Çϸç, ±úÁ³À» °æ¿ì¿¡´Â tech:MySQL Replication º¹±¸Âü°íÇÒ°Í. µ¿±âÈ­¿©ºÎ¸¦ È®ÀÎÇÏ´Â ¹ýÀº tech:MySQL Replication º¹±¸ ÀÇ "Âü°í" ºÎºÐÀ» Âü°íÇÒ°Í.



sponsored by andamiro
sponsored by cdnetworks
sponsored by HP

Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2008-11-27 13:56:09
Processing time 0.0046 sec