ããã«ã¡ã¯è¤åï¼@tafujishï¼ã§ããRDB関連のエントリーã¯å¥ã®äººãæ¸ãã¦ãããã®ã§ãä¹ ãã¶ãã«RDB以å¤ã®è©±ããã¾ãã
æè¿ãDRï¼Disaster Recoveryï¼ã«é¢é£ãããåãåãããå¤ããããIDCFã¯ã©ã¦ãä¸ã§ã®DRãã¤ã¾ãç½å®³å¾©æ§ãå¯è½ã¨ããäºå対çãç´¹ä»ãããã¨æãã¾ãã
ã¡ãªã¿ã«ãDRãBCPã¨ãã£ãã¯ã¼ãã«ã¤ãã¦ã¯ç¨èªéããåç §ãã ããã
ãããããIDCFã§ã¯ã¯ã©ã¦ããµã¼ãã¹ãæä¾ãããã£ã¨åãããDRãæèãããã¼ã¿ã»ã³ã¿ã¼ã®å»ºè¨ãè¡ã£ã¦ãã¾ããã
www.idcf.jp
å°éãå°é¢¨ãªã©å¤©ç½ãå¤ãæ¥æ¬ã§ã¯ãDRã«å¯¾ãã¦éè¦ãå¤ããããIDCFã§ã¯ã¯ã©ã¦ããµã¼ãã¹ã«ããã¦ã次ã®ãããªDRãæèãããµã¼ãã¹ãæä¾ãã¦ãã¾ããã
ä¸æ¹ã§ãããã¥ã¡ã³ããæä¾ãã¦ãããIDCFクラウド本ã®6.4ç« ã§ã¯ãRPOï¼Recovery Point Objectiveï¼ã¨RTOï¼Recovery Time Objectiveï¼ã®èãããæ§æä¾ã¾ã§ãç´¹ä»ãã¦ãã¾ãã
ã¾ãæ´»ç¨ããã¥ã¢ã«ã§ã¯ãMySQLã¬ããªã±ã¼ã·ã§ã³ã«ãããã¼ã¿åæãç¨ããDRãµã¤ãã®æ§ç¯æé ãwordpressãä¾ã«ç´¹ä»ãã¦ãã¾ãã
www.idcf.jp
ä»ã«ãsambaã«ãããã¡ã¤ã«ãµã¼ãã¼ãåæããæ¹æ³ãç´¹ä»ãã¦ãã¾ãã
www.idcf.jp
ã¨ãåç½®ããé·ããªãã¾ããããä¸è¿°ã®ã¨ããäºåã«DRãèæ ®ããæ§æã«ãã¦ããã°åé¡ã¯ãªãã®ã§ããããããæ¢åã®ãµã¤ããæ¥ã«DR対å¿ããå¿ è¦ãã§ã¦ãããã¨ãããã¨æãã¾ãããã®ãããªã¨ãã«ãå¾è¿½ãã§DRãµã¤ããæºåããå ·ä½çãªæ¹æ³ãç´¹ä»ãã¦ããããã¨æãã¾ããï¼ãããããããµã¤ããæ§ç¯ãã話ã§ããã°ä¸è¨ããã¥ã¡ã³ããåèã«ãã¦ãã ããï¼
åæ
ããã§ã¯ãWEBãµã¼ãã¼ã¨DBãµã¼ãã¼ããããããªæ§æã®ãµã¤ãã®DRåãæ¤è¨ãã¦ããã¾ããDRåãèããã¨ãã3ã¤ã®ã¬ãã«ã«åãããã¨ãã§ãã¾ãã
1. ãã¼ã¿ãéé¿ãã
ç½å®³æã«ä¸çªå°ããã¨ã¯ããµã¼ãã¹ãåæ¢ãããã¨ã§ã¯ãªãããã¼ã¿ãæ¶å¤±ãããã¨ã§ãããã®ãããã¾ãã¯ãã¼ã¿ãç½å®³ããä¿è·ããããã«éé¿ããã¾ãããã¼ã¿ã®éé¿ã¯ãæ´æ°ããã£ãã¨ãããé »ç¹ã«ããããã§ããã°å®æçã«å®æ½ãã¾ããç½å®³æã«ã¯ãã®ãã¼ã¿ããDRãµã¤ããåæ§ç¯ã復æ§ãã¾ãããã¼ã¿ã®éé¿å
ã¯ãDRãµã¤ãã®è¿ãã«ããã¨ãã¼ã¿ã®ãªã¹ãã¢ãéãçæ³ã§ãã
2. ãµã¼ãã¼ç°å¢å«ãã¦äºåã«æ§ç¯ãã
ç½å®³å¾ã®å¾©æ§ã®ããã«ãµã¼ãã¼ç°å¢ãåæ§ç¯ããã«ã¯æéãããããµã¼ãã¹ã®å¾©æ§ãé
ããªã£ã¦ãã¾ãã¾ãã®ã§ãäºåã«ãµã¼ãã¼ç°å¢ã¾ã§æ§ç¯ãã¾ããç½å®³æã«ã¯ãDRãµã¤ãã¸ã®åãæ¿ããè¡ãç¨åº¦ãªã®ã§æ§ç¯ããªãããã復æ§ã¾ã§ã®æéãçãã§ãã¾ãã
3. ç½å®³æã«ã¯èªåã§åãæ¿ããä»çµã¿ã¾ã§æ§ç¯ãã
ç½å®³æã«DRãµã¤ãã¸æåã§åãæ¿ããã¨ãªãã¨ããã®åã®æéããããã¾ãããããããã®ä½æ¥ãå®æ½ã§ãããããããã¾ãããããã§ãå³æ復æ§ããä»çµã¿ãç¨æãã¾ãããã®ããã«ã¯ããããã¯ã¼ã¯ã®èªååãæ¿ãããã¼ã¿ãåæããä»çµã¿ãå¿
è¦ã§ãã
1ãã3ã«ãªãã«ã¤ãã¦ã復æ§ã¾ã§ã®æéã¯çããªã£ã¦ããã¾ãããæ§ç¯ã®æéãè²»ç¨ãªã©ã¤ã³ãã©ã³ã¹ãã¯å¤§ãããªã£ã¦ããã¾ããããã§ã¯ãæ軽ã«å°å ¥ãããã¨ãç®çã¨ãã¦1ã®æ¹æ³ãæ±ãã¾ãã
次ã®æ§æã®ã¨ãããã¡ã¤ã³ãµã¤ãã®ã¿ã§ç¨¼åãã¦ãããµã¤ãã«DRãµã¤ãã追å ãã¦ããã¾ãããã¼ã¿ãéé¿ããããããã¯ã¼ã¯ã®çµè·¯ã¨ãã¦ã¯ãç¹ç·ã®ã¤ã³ã¿ã¼ãããå´ã¨å®ç·ã®ã¤ã³ã¿ã¼ãã«å´ãããã¾ãããããã«ã¤ãã¦ã¯å¾è¿°ãã¾ãã
ã©ããªãã¼ã¿ãéé¿ãããã
ã¾ãã¯æä½éãDBä¸ã®ãã¼ã¿ã移ãå¿ è¦ãããã¾ããããã¯ã¢ããç¨ã«ãã³ããåå¾ãã¦ããã¨æãã¾ãã®ã§ããã®ãã¡ã¤ã«ãéé¿ããã¾ãã
次ã«ã³ã³ãã³ããã¼ã¿ã§ããããããã®ãã¡ã¤ã«ãéé¿ãããæ¹ãè¯ãã§ããããGitç³»ã®ãµã¼ãã¹ã社å ã®ãããã¤ç°å¢ã使ã£ã¦ãããªããããããæ»ããã¨ãèãããã¾ãããç½å®³æã«å©ç¨ã§ãããã©ããããããªãã§ãããããäºåç¨ã¨æã£ã¦éé¿ãã¦ããã®ãè¯ãã¨æãã¾ãã
ãã®ä»ã«ããµã¼ãã¼æ§ç¯ã«å¿ è¦ãªããã±ã¼ã¸ãã¡ã¤ã«ãè¨å®ãã¡ã¤ã«ãããã°éé¿ãããã®ãè¯ãã§ãããå¯è½ã§ããã°OSãããã«ã¦ã§ã¢å¨ãã¯ãã³ãã¬ã¼ãã¨ãã¦ä¿åãã¦ããã¨ãåæ§ç¯ããããã®ã§è¯ãã¨æãã¾ããï¼IDCFã¯ã©ã¦ãã§ã¯ãã³ãã¬ã¼ãã®ãªã¼ã¸ã§ã³éã³ãã¼ãã§ãã¾ãï¼
ã©ãã«ãã¼ã¿ãéé¿ãããã
åºæ¬çã«ã¯ãåæ§ç¯ããç°å¢ã«ç©ççã«ã¾ããããã¯ã¼ã¯çã«è¿ãã¨ãããå¯è½ã§ããã°åãã¨ããã«ä¿åãã¾ãããã
ããç¨åº¦ãã¡ã¤ã«ãµã¤ãºã大ãããªãã¨æãã¾ãã®ã§ãDRãµã¤ãã¨åããããã¯ã¼ã¯ä¸ãªã©è·é¢ãè¿ãã¨ããã«ç½®ãã帯åã¨ã¬ã¤ãã³ã·ã確ä¿ãã¦ç´ æ©ãæ»ããããã«ãã¦ããã¾ãã
ã¾ããç½å®³æãã£ããéé¿ãããã¼ã¿ã«ã¢ã¯ã»ã¹ã§ããªãã¨å
ãåããªãã®ã§ãç½å®³æã«ãã¢ã¯ã»ã¹ã§ããå¿
è¦ãããã¾ããã¤ã¾ããã¡ã¤ã³ãµã¤ãã¨DRãµã¤ãã®ç©ççãªé
ç½®ã¯ããç¨åº¦ææ¡ãã¦ãããç©ççãªè·é¢ã確ä¿ãã¦ããå¿
è¦ãããã¾ããIDCFã¯ã©ã¦ãã§ããã°ãæ±è¥¿ãªã¼ã¸ã§ã³ã«åãã¦ä½¿ãã ãã§ç©ççãªè·é¢ãé»åä¼ç¤¾ããããã¯ã¼ã¯çµè·¯ãªã©DRã«å¿
è¦ãªè¦ç´ ã網ç¾
ãã¦ãã¾ãã
ã©ããã£ã¦ãã¼ã¿ãéé¿ãããã
ãã¡ã¤ã«ã®è»¢éã§ããã°ç¹å¥ãªå®è£ ã¯ãããªãããå°å ¥ããããã¨æãã¾ããLinuxç°å¢ã§ããã°ãã¼ã¿ã®å·®åçèããã¨rsyncã³ãã³ããå©ç¨ããã®ãç°¡åã§è¯ãã¨æãã¾ãã転éå ã®ãµã¼ãã¼ã¸SSHã§ãããã¨ãæ¡ä»¶ã§ããä¾ãã°æ¬¡ã®ããã«å®è¡ã§ãã¾ãã
# rsync [ãªãã·ã§ã³] <ã³ãã¼å > <ã³ãã¼å >
/opt/backupfile 以ä¸ãDRå ï¼192.168.1.97ï¼ã¸è»¢éããä¾ã ã¨æ¬¡ã®ããã«å®è¡ãã¾ãã
# rsync -ahv /opt/backupfile [email protected]:/opt/
ã©ã®ã¿ã¤ãã³ã°ã§ãã¼ã¿ãéé¿ãããã
ãã¼ã¿ã®æ´æ°ãã©ãã¾ã§é »ç¹ã«ãããã«ä¾åãã¾ããã»ã¨ãã©æ´æ°ããªããã°æ´æ°ããã¿ã¤ãã³ã°ãé±æ¬¡ã§ã®å®è¡ã§è¯ãã§ãããããå°ãæ´æ°é »åº¦ãããã°æ¥æ¬¡ã§ã®å®è¡ã§ãè¯ãã§ããæ¥æ¬¡ãé±æ¬¡ã®å®æå®è¡ã§ããã°ãcronã§å®æå®è¡ã§ãã¾ããæ¥æ¬¡ã§å®è¡ãããå ´åãä¸è¨ã®rsyncã®ã³ãã³ããã¹ã¯ãªãããã¡ã¤ã«ï¼rsync.shï¼ã¨ãã¦
/etc/cron.daily/rsync.sh
ã¸è¨ç½®ããã¨ç°¡åã ã¨æãã¾ãã
ãããæ¥æ¬¡ãããé »åº¦ãä¸ãããå ´åã¯ãlsyncdã使ã£ã¦ãã¡ã¤ã«ã®æ´æ°ãæ¤ç¥ãåæããã¨ãããã¨ãå¯è½ã§ãã
ãã®ã¨ãã«æå®ããIPã¢ãã¬ã¹ãã°ãã¼ãã«IPã¢ãã¬ã¹ã§ããã°ãã¤ã³ã¿ã¼ãããå´ã®çµè·¯ã§ã®éä¿¡ã¨ãªãã¾ãï¼å è¿°ã®æ§æå³ã®ç¹ç·ã®é¨åï¼ã
IDCFã¯ã©ã¦ããªãã§ã¯ã®æ§æ
ä¸è¿°ã®ã¨ããããã¡ã¤ã«ãèªåã§åæããã¨ããã®é »åº¦ããã¼ã¿ãµã¤ãºã«ãã£ã¦ã¯æéãããã£ã¦ãã¾ããã¨ãããã¨æãã¾ããã¾ãããã¼ã¿ã®å 容ã«ãã£ã¦ã¯ã»ãã¥ãªãã£ã®èæ ®ãå¿ è¦ã«ãªãã±ã¼ã¹ãããã¨æãã¾ãã
ãã®ãããªå ´åã¯ãéåã§ã»ãã¥ã¢ã«æ¥ç¶ã§ãé«å¸¯åã使ããプライベートコネクトãããããã§ããæ±æ¥æ¬ãªã¼ã¸ã§ã³ã¨è¥¿æ¥æ¬ãªã¼ã¸ã§ã³ãç°¡åã«æ¥ç¶ãããã¨ï¼å
è¿°ã®æ§æå³ã®å®ç·ã®é¨åã§ã®è»¢éï¼ãå¯è½ã§ãã追å ãããã¯ã¼ã¯è²»ç¨ï¼æé¡1ä¸åÃ2ã¾ã¼ã³ï¼åã¯ãããã¾ããããã©ã¤ãã¼ãã³ãã¯ãèªä½ã«ã¯è²»ç¨ã¯ãããã¾ããã
æ¢ã«IDCFã¯ã©ã¦ãä¸ã«ç°å¢ãããã°ã次ã®æµãã§å°å
¥ã§ãã¾ãã
1. 追å ãããã¯ã¼ã¯ä½æ
ããã©ã¤ãã¼ãã³ãã¯ãã®æ¥ç¶ã«ã¯ã追å ãããã¯ã¼ã¯çµç±ã§å©ç¨ãã¾ãã
ã追å ãããã¯ã¼ã¯ä½æããä»®æ³ãã·ã³ãæ¥ç¶ããã¾ã§ã®æµãã¯æ¬¡ã®ããã°ãåç
§ãã ããã
blog.idcf.jp
ãè¨äºä¸ã§ã®ã«ã¼ãã£ã³ã°è¨å®ã¯CentOS6ç³»ã§ã®ä¾ã§ãããCentOS7ç³»ã®å ´åã¯æ¬¡ã®FAQãåç
§ãã ããã
ã追加NICの設定例(CentOS7系の場合) | IDCFクラウド
ãè£è¶³ã§ããããã®FAQã®å
容ã ã¨è¨å®åæ ã®ããã«ã¤ã³ã¿ã¼ãã§ã¼ã¹ã®ãªã¹ã¿ã¼ãããªãã¡éä¿¡æãçãã¾ãã
ãç°¡åã«æ¢ããããªãå ´åã¯ãä¸è¨è¨å®ã«å ããä¸æçã«ã«ã¼ãã£ã³ã°ã追å ãããã¨ãå¯è½ã§ãã
# ip route add 192.168.0.0/21 via 192.168.7.254 dev eno33557248
2. ãã©ã¤ãã¼ãã³ãã¯ãã§æ±æ¥æ¬ãªã¼ã¸ã§ã³ã¨è¥¿æ¥æ¬ãªã¼ã¸ã§ã³ãæ¥ç¶
ã次ã®ãå©ç¨ã¬ã¤ãã§ç´¹ä»ãã¦ããæé ã®ããã«æ¥ç¶ã§ãã¾ãã
www.idcf.jp
ç½å®³æã®å¾©æ§ã®æµã
以ä¸ã®å¯¾å¿ã§ããã¼ã¿ã¯éé¿ã§ãã¾ãããã§ã¯ã次ã«å®éã«ç½å®³çã§ãDRãµã¤ããç«ã¡ä¸ããå¿ è¦ã«ãªã£ãã¨ãã®æµããç´¹ä»ãã¾ãã
1. ãµã¼ãã¼ç°å¢ãæ§ç¯
ãä¸ããæ§ç¯ããããããç¨æãã¦ããããã³ãã¬ã¼ããããµã¼ãã¼ãç«ã¡ä¸ãã¾ãã
ããã¡ã¤ã¢ã¦ã©ã¼ã«ããã¼ããã©ã³ãµã¼ãªã©ãããã¯ã¼ã¯è¨å®ããã¾ãã
2. æ§ç¯ããç°å¢ã«éé¿ãã¦ãããã¼ã¿ãæ»ã
ãéé¿ãã¦ãããã¼ã¿ããWEBãµã¼ãã¼ãDBãµã¼ãã¼ã¸æ»ãã¾ãã
3. ãµã¤ãã®åä½ç¢ºèªãã§ããããDNSã¬ã³ã¼ããå¤æ´
ãé常ã®ãµã¤ãã§ããã°ãDNSã¬ã³ã¼ããæ°ããIPã¢ãã¬ã¹ã¸å¤æ´ãã¦å®äºã«ãªãã¨æãã¾ãã
ããããIPã¢ãã¬ã¹ãå¤ãããã¨ã§ãå½±é¿ããç®æããªããã¯äºåã«ç¢ºèªãã¦ããã¨è¯ãã§ãã
ãã®ããã«é£ãããªãæµãã ã¨æãã¾ãã大äºãªã®ã¯ãããã¨ããã¨ãã«ãã¼ã¿ããç°å¢ãæ»ãããã¨ã§ãããã®ããã«ã¯ãäºåã«ãã¹ãããã¦ããã¨è¯ãã§ãããã
ã¾ã¨ã
ãã®ããã«ããã¼ã¿ããä½ã¨ããªãã°ãæå¤ã¨ç°¡åã«DRãµã¤ãã¯ç¨æã§ãã¾ãã
ããããDRå«ãããµã¤ããä½æããå ´åã¯ãåé ã®ããã¥ã¡ã³ããåç
§ããã ããæã£åãæ©ãDRãµã¤ããä½ãããæ¹ã¯ä»åã®ã¨ã³ããªã¼ãåç
§ãã ããã
ã¯ã©ã¦ãã®æ©è½ãæ´»ç¨ããã ãã¦ãç°¡åã«ããã¦ããéã復æ§ãå®ç¾ããã ããã°å¹¸ãã§ãã