DRBD MYSQL Å×½ºÆ®¸¦ À§ÇØ µ¿±âȸ¦ ½Ãų ÀåÄ¡ÀÎ MYSQL µ¥ÀÌŸ Æú´õ¸¦ º¯°æÇÏ·Á°í ÇÑ´Ù.
±âÁ¸Àº ¼Ò½ºÄÄÆÄÀÏ·Î µÇ¾îÀÖ´Ù.
my.cnf ÆÄÀÏ¿¡ ¿É¼Ç¸¸ Ãß°¡Çϰųª ±âÁ¸¿¡ ÀÖ´Ù¸é ¼öÁ¤ÇÏ¸é µÈ´Ù.
[client]
#password = your_password
port = 3306
socket = /tmp/mysql.sock
# Here follows entries for some specific programs
# The MySQL server
[mysqld]
datadir=/home1/data
port = 3306
socket = /tmp/mysql.sock
skip-locking
key_buffer = 384M
max_allowed_packet = 1M
table_cache = 512
sort_buffer_size = 2M
read_buffer_size = 2M
read_rnd_buffer_size = 8M
myisam_sort_buffer_size = 64M
thread_cache_size = 8
query_cache_size = 32M
thread_concurrency = 8
¿øº» µ¥ÀÌŸ Æú´õ¸¦ º¹»çÇؿ´Ù.
[root@node2 data]# cp -a /usr/local/mysql/data/* ./
±×¸®°í µ¥¸ó½ÃÀÛ /etc/init.d/mysqld ½ºÅ©¸³Æ®·Î ½ÇÇàÇҰŶó¸é ÇØ´ç ½ºÅ©¸³Æ® ÆÄÀϵµ ¼öÁ¤
[root@node2 data]# /usr/local/mysql/bin/mysqld_safe &
[1] 12347
[root@node2 data]# Starting mysqld daemon with databases from /home1/data
¡Ø ÀÌÁ¦ º¯°æµÈ À§Ä¡¿¡¼ µ¥ÀÌŸ°¡ ÀúÀå/¼öÁ¤/»èÁ¦°¡ ÀÌ·ç¾îÁø´Ù.