DRBDæ¥ç¶é害
- ç¾è±¡ãã¿ã¼ã³ï¼
çªç¶æ¬¡ã®ãããªç¶æ ã«ãªã£ã¦ãã¾ããã©ããã¦ãç¸æãèªèããªã
# cat /proc/drbd version: 8.3.8 (api:88/proto:86-94) GIT-hash: d78846e52224fd00562f7c225bcc25b2d422321d build by [email protected], 2010-06-04 08:04:16 0: cs:StandAlone ro:Secondary/Unknown ds:UpToDate/DUnknown r---- ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b oos:12
ãããªã¨ããDRBD+Keepalived+iscsi 障害 復旧 - メモã«å¾ã
[root@z151 ~]# drbdadm down all [root@z151 ~]# drbdadm attach all [root@z151 ~]# drbdadm invalidate all [root@z151 ~]# drbdadm connect all [root@z152 ~]# drbdadm connect all
ãå®è¡ããã¨è¦äºã«ã¤ãªãã£ã
[root@z151 ~]# cat /proc/drbd version: 8.3.8 (api:88/proto:86-94) GIT-hash: d78846e52224fd00562f7c225bcc25b2d422321d build by [email protected], 2010-06-04 08:04:16 0: cs:SyncTarget ro:Secondary/Primary ds:Inconsistent/UpToDate C r---- ns:0 nr:58304 dw:58240 dr:0 al:0 bm:3 lo:3 pe:2 ua:2 ap:0 ep:1 wo:b oos:5178720 [>....................] sync'ed: 1.2% (5056/5112)M queue_delay: 0.0 ms finish: 0:07:23 speed: 11,648 (11,648) want: 10,240 K/sec
(追è¨)
StandAloneã«ãªãã®ã¯ãåã«ã¹ããªãããã¬ã¤ã³ãããã¼ã¿ãä¿è·ããããã®æªç½®ãããã
トラブルシューティングFAQ
Q. ã³ãã¯ãç¶æ ããStandAloneãã¨è¡¨ç¤ºããã¦ãã¾ãã¾ã
ã¹ããªãããã¬ã¤ã³ãæ¤ç¥ãããDRBDãã©ã¡ãã®HDDãææ°ã®ãã¼ã¿ãä¿åããã¦ããããå¤æã§ããªããªã£ããããåæããªãç¶æ ã§åä½ãã¦ãã¾ããããã¯é害ã§ã¯ãªãDRBDããã¼ã¿ãä¿è·ããããã®ãå®å ¨è£ ç½®ãã§ãã®ã§ãå¤ãï¼æ¨ã¦ã¦ãè¯ãï¼ãã¼ã¿ã®å ¥ã£ã¦ããHDDãæè¼ããã¦ãããã¼ãã§ã# drbdadm invalidate <ãªã½ã¼ã¹å> ããå®è¡ãã¦æ¥ç¶ããªããã¾ãã
- ç¾è±¡ãã¿ã¼ã³ï¼
ã©ãããããã両ãã¼ãã§æ¬¡ã®ãããªç¶æ ã«ãªããç¸æãèªèããªãã
[root@z151 ~]# service drbd status drbd driver loaded OK; device status: version: 8.3.8 (api:88/proto:86-94) GIT-hash: d78846e52224fd00562f7c225bcc25b2d422321d build by [email protected], 2010-06-04 08:04:16 m:res cs ro ds p mounted fstype 0:r0 WFConnection Secondary/Unknown Outdated/DUnknown C [root@z152 ~]# service drbd status drbd driver loaded OK; device status: version: 8.3.8 (api:88/proto:86-94) GIT-hash: d78846e52224fd00562f7c225bcc25b2d422321d build by [email protected], 2010-06-04 08:04:16 m:res cs ro ds p mounted fstype 0:r0 WFConnection Secondary/Unknown UpToDate/DUnknown C
ããã§ä¸è¨ã«å¾ã£ããè¦äºã«ã¤ãªãã£ãã
[root@z152 ~]# drbdadm -- --discard-my-data connect r0 [root@z151 ~]# drbdadm disconnect r0 [root@z151 ~]# drbdadm connect r0 [root@z151 ~]# service drbd status drbd driver loaded OK; device status: version: 8.3.8 (api:88/proto:86-94) GIT-hash: d78846e52224fd00562f7c225bcc25b2d422321d build by [email protected], 2010-06-04 08:04:16 m:res cs ro ds p mounted fstype 0:r0 Connected Secondary/Secondary UpToDate/UpToDate C
ã»ãã¼ã¿ãç ´æ£ãããã¼ãã§
drbdadm -- --discard-my-data connect <ãªã½ã¼ã¹>ã»ä»ãã¼ãã§
drbdadm disconnect <ãªã½ã¼ã¹> drbdadm connect <ãªã½ã¼ã¹>ã»DRBDéã®æ¥ç¶ãå復ãããã¼ã¿åæãå§ã¾ã