¿ù°£ Àα⠰Խù°

°Ô½Ã¹° 138°Ç
   
[DRBD] ºí·Ïµð¹ÙÀ̽º ¸®¼Ò½º Ãß°¡Çϱâ
±Û¾´ÀÌ : ÃÖ°í°ü¸®ÀÚ ³¯Â¥ : 2010-04-29 (¸ñ) 11:19 Á¶È¸ : 7710
±ÛÁÖ¼Ò :
                          

±âÁ¸¿¡ ÀÌ¹Ì 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 ·Î ÀνĵǼ­ ¿Ã¶ó¿ÈÀÌ È®ÀεȴÙ.



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

 



 
»çÀÌÆ®¸í : ¸ðÁö¸®³× | ´ëÇ¥ : ÀÌ°æÇö | °³ÀÎÄ¿¹Â´ÏƼ : ·©Å°´åÄÄ ¿î¿µÃ¼Á¦(OS) | °æ±âµµ ¼º³²½Ã ºÐ´ç±¸ | ÀüÀÚ¿ìÆí : mojily°ñ¹ðÀÌchonnom.com Copyright ¨Ï www.chonnom.com www.kyunghyun.net www.mojily.net. All rights reserved.