Heartbeat (MASTER & SLAVE)
cat > /etc/ha.d/haresources
node1 drbddisk::r0 Filesystem::/dev/drbd0::/home1::ext3::defaults 218.XX.XX.XX mysqld apache
MYSQL (MASTER & SLAVE)
- µ¿±âÈ ½Ãų data Æú´õ ¼³Á¤
- ¼³Ä¡½Ã datadir ¼³Á¤À» ÇØÁÖ´øÁö ¾Æ´Ï¸é ½ÃÀÛ ½ºÅ©¸³Æ® or my.cnf ÆÄÀÏ ¼öÁ¤
/etc/init.d/mysqld
#!/bin/sh
basedir=
# The following variables are only set for letting mysql.server find things.
# Set some defaults
datadir=/home1/dbdata
pid_file=
if test -z "$basedir"
then
basedir=/usr/local/mysql
bindir=/usr/local/mysql/bin
else
bindir="$basedir/bin"
fi
PATH=/sbin:/usr/sbin:/bin:/usr/bin:$basedir/bin
export PATH
mode=$1 # start or stop
.................
.................
»ý·«
DRBD ¼³Á¤Àº ¾Æ·¡ ¸µÅ©È®ÀÎ
http://chonnom.com/bbs/board.php?bo_table=B25&wr_id=16&page=2