±âÁ¸¿¡ ÀÌ¹Ì smileserv_dev0 À̶ó´Â ¸®¼Ò½º·Î ¿î¿µÁßÀÌ´Ù µ¿±âÈÇÒ ÀåÄ¡¸¦ Ãß°¡ÇÏ°íÀÚ ÇÒ¶§..
ÇöÀç µ¿±âÈÇÏ°íÀÚ ÀåÄ¡¸ñ·ÏÀÌ´Ù.
# ù¹ø° DRBD ÀåÄ¡ (ÀÌ¹Ì µ¿±âȵǰí ÀÖ´Â ÀåÄ¡)
node1 /dev/drbd0 ext3 16G 11G 4.6G 70% /home
node2 /dev/sda10 ext3 16G 11G 4.6G 70% /home1
# µÎ¹ø° DRBD ÀåÄ¡ (Ãß°¡ÇÒ µ¿±âÈ ºí·Ï µð¹ÙÀ̽º)
node1 /dev/hdb1 ext3 111G 98G 7.3G 94% /home1
node2 /dev/sdb1 ext3 73G 182M 69G 1% /home2
/etc/drbd.conf ÆÄÀϼöÁ¤ (»¡°£ºÎºÐÀÌ Ãß°¡»çÇ×)
- µ¿±âÈÇÒ Æ÷Æ®´Â ´Ù¸£°Ô ÇØÁØ´Ù...
#
# please have a a look at the example configuration file in
# /usr/share/doc/drbd83/drbd.conf
#
global { usage-count yes; }
common { syncer { rate 10M; } }
resource smileserv_dev0 {
protocol C;
disk { on-io-error detach; }
syncer {
}
on node1 { # Master ¼¹ö
device /dev/drbd0;
disk /dev/hda9;
address 192.168.10.1:7791;
meta-disk internal;
}
on node2 { # Secondary ¼¹ö
device /dev/drbd0;
disk /dev/sda10;
address 192.168.10.2:7791;
meta-disk internal;
}
}
resource smileserv_dev1 {
protocol C;
disk { on-io-error detach; }
syncer {
}
on node1 { # Master ¼¹ö
device /dev/drbd1;
disk /dev/hdb1;
address 192.168.10.1:7792;
meta-disk internal;
}
on node2 { # Secondary ¼¹ö
device /dev/drbd1;
disk /dev/sdb1;
address 192.168.10.2:7792;
meta-disk internal;
}
}
»õ·Î Ãß°¡ÇÒ ÀåÄ¡ Meta-Data »ý¼º (node1 / node2 ¸ðµÎ ÀÛ¾÷)
µð½ºÅ© SYNC (node1 --> node2)
# drbdadm -- --overwrite-data-of-peer primary smileserv_dev1
DRBD ÀåÄ¡ Æ÷¸Ë ¹× ¸¶¿îÆ®
¡Ø ±âÁ¸ /dev/drbd0 ¿Í Ãß°¡ÇÑ /dev/drbd1 ÀåÄ¡ ¸¶¿îÆ® µÇ¾úÀ½ÀÌ È®ÀεȴÙ.
Âü°í : SYNC µð½ºÅ©´Â 2°³ÀÇ µð½ºÅ©Áß ÀûÀº½ÎÀÌÁî¿¡ ¸ÂÃç¼ ¿Ã¶ó¿Â´Ù.
¿ø·¡ ½ÎÀÌÁî´Â 120G Â¥¸® Çϵ忴À¸³ª DRBD SYNC ÀÛ¾÷À» ÅëÇؼ ÀÎ½ÄµÇ´Â°Ç node2 ºí·Ï µð¹ÙÀ̽º 74G ·Î ÀνĵǼ ¿Ã¶ó¿ÈÀÌ È®ÀεȴÙ.