ããã«ã¡ã¯ãæè¡4課ã®ä¼è¤Kã§ãã AWSã¨ã³ã¸ãã¢å¿ æº(ï¼)ã®ãã®ã¢ã¤ãã ã§ç¾å³ããã³ã¼ãã¼ãããã ãã¦ããã¾ãã
ä»åã¯ã2å°ã®EC2ã¤ã³ã¹ã¿ã³ã¹éã§SQL Server AlwaysOnãæ§æãããã®ç¬¬2åããWSFCè¨å®ç·¨ãã§ãã å¿ è¦ãªOSè¨å®ãå®äºããã¤ã³ã¹ã¿ã³ã¹ã§ãAlwaysOnã®åºç¤ã¨ãªãWSFCï¼Windows Server Failover Clusterï¼ãè¨å®ãã¦ããã¾ãã
ï¼å ¨3åãªã³ã¯ï¼ 1. OSæºåç·¨ 2. WSFCè¨å®ç·¨ (ãã®è¨äº) 3. AlwaysOnè¨å®ç·¨
ä½æ¥åã®ç¶æ ãåæ
ã»ã1. OSæºåç·¨ãã®æé ãå®äºããç¶æ ãåæã¨ãã¾ãã
ã»ä½æ¥ã¯ãAWS Delegated Administratorsãã°ã«ã¼ãã«æå±ãããã¦ã¼ã¶ã¼ã¢ã«ã¦ã³ãã§å®æ½ãã¾ãã
ã»ãã¼ã¸ã§ã³ã¨ãã£ã·ã§ã³ãIPã¢ãã¬ã¹çã®æ å ±ãåæ²ãã¾ãã
OS | Windows Server 2012 R2 Standard Edition |
SQL Server | SQL Server 2014 Enterprise Edition SP2 (12.0.5000.0) |
å 容 | ã³ã³ãã¥ã¼ã¿ã¼å / ãªã½ã¼ã¹å / ãªã¹ãã¼å |
IPã¢ãã¬ã¹ |
AlwaysOn ã¤ã³ã¹ã¿ã³ã¹ #1 ï¼æä¸ã1å·æ©ãã¨è¨ãã¾ãï¼ |
sql01 | 172.20.10.4 |
AlwaysOn ã¤ã³ã¹ã¿ã³ã¹ #2 ï¼æä¸ã2å·æ©ãã¨è¨ãã¾ãï¼ |
sql02 | 172.20.11.4 |
ã¯ã©ã¹ã¿ã¼ã³ã¢ãªã½ã¼ã¹ | t-cluster | 172.20.10.5 / 172.20.11.5 |
AlwaysOn ãªã¹ãã¼ | t-aonlis01 | 172.20.10.6 / 172.20.11.6 |
æ©è½ã®è¿½å
1å·æ©ã«ãªã¢ã¼ããã¹ã¯ãããã§ãã°ãªã³ãã¾ãããµã¼ãã¼ããã¼ã¸ã£ã¼ã® [管ç] ã¡ãã¥ã¼ãã [å½¹å²ã¨æ©è½ã®è¿½å ] ãé¸æãã¾ãã
æ©è½ã¨å½¹å²ã®è¿½å ã¦ã£ã¶ã¼ããé²ãã [æ©è½] ã®é ç®ã§ [ãã§ã¼ã«ãªã¼ãã¼ã¯ã©ã¹ã¿ãªã³ã°] ã«ãã§ãã¯ãå ¥ãã¦[次ã¸]ãã¯ãªãã¯ãã¦é²ãã¾ãããã®ã¾ã¾æ©è½ã®è¿½å ãè¡ãã¾ãã ï¼èªåçã«è¿½å ããã管çãã¼ã«ã«ã¤ãã¦ã追å ãã¾ãï¼
2å·æ©ã«ãã°ãªã³ããåãæé 㧠[ãã§ã¼ã«ãªã¼ãã¼ã¯ã©ã¹ã¿ãªã³ã°] ã®æ©è½ã追å ãã¾ãã
ãã§ã¼ã«ãªã¼ãã¼ã¯ã©ã¹ã¿ã¼ã®æ§æ
1å·æ©ã§ãµã¼ãã¼ããã¼ã¸ã£ã¼ã® [ãã¼ã«] ã¡ãã¥ã¼ãã [ãã§ã¼ã«ãªã¼ãã¼ã¯ã©ã¹ã¿ã¼ããã¼ã¸ã£ã¼] ãéãã¾ããï¼2å·æ©ã§ä½æ¥ãã¦ãOKã§ãï¼ [ãã§ã¼ã«ãªã¼ãã¼ã¯ã©ã¹ã¿ã¼ããã¼ã¸ã£ã¼] 㧠[æ§æã®æ¤è¨¼] ãã¯ãªãã¯ãã¾ãã ã¦ã£ã¶ã¼ããéå§ããã¾ãã[次ã¸]ãã¯ãªãã¯ãã¾ãã [ååã®å ¥å] ã«1å·æ©ã®ã³ã³ãã¥ã¼ã¿ã¼åï¼FQDNï¼ãå ¥åãã[追å ]ãã¯ãªãã¯ãã㨠[é¸ææ¸ã¿ãµã¼ãã¼] ã¸ç§»åããã¾ãã
2å·æ©ã®ã³ã³ãã¥ã¼ã¿ã¼åãåãæé 㧠[é¸ææ¸ã¿ãµã¼ãã¼] ã¸ç»é²ãã¾ãã[次ã¸]ãã¯ãªãã¯ãã¾ãã
[ãã¹ã¦ã®ãã¹ããå®è¡ãã] ãé¸æãã¦ã[次ã¸]ãã¯ãªãã¯ãã¾ãã
å 容ã確èªãã¦[次ã¸]ãã¯ãªãã¯ãã¾ãã
æ¤è¨¼ãå®äºãã¾ããè´å½çãªã¨ã©ã¼ãçºçããªããã°ã [æ¤è¨¼ããããã¼ãã使ç¨ãã¦ã¯ã©ã¹ã¿ã¼ãä»ããä½æãã] ã«ãã§ãã¯ãå ¥ãã¦ã[å®äº]ãã¯ãªãã¯ãããã¨ã§ãèªåçã« [ã¯ã©ã¹ã¿ã¼ã®ä½æã¦ã£ã¶ã¼ã] ã«ç§»åãã¾ãã
ã¦ã£ã¶ã¼ããéå§ããã¾ãã[次ã¸]ãã¯ãªãã¯ãã¾ãã
[ã¯ã©ã¹ã¿ã¼å] ã«ã¯ã©ã¹ã¿ã¼ã³ã¢ãªã½ã¼ã¹ã®ãªã½ã¼ã¹åãå ¥åãã¾ããä¸ã®æ¬ã«ã¯ã¯ã©ã¹ã¿ã¼ã®IPã¢ãã¬ã¹ãå ¥åãã¾ãããã«ããµããããæ§æã®ãããåãµãããããã1ã¤ãã¤IPã¢ãã¬ã¹ãå¿ è¦ã¨ãªãã¾ããããã§ã¯ä¸è¨è¡¨ã«æ²¿ã£ã¦å ¥åãã¾ãã[次ã¸]ãã¯ãªãã¯ãã¾ãã
[使ç¨å¯è½ãªè¨æ¶åããã¹ã¦ã¯ã©ã¹ã¿ã¼ã«è¿½å ãã] ã®ãã§ãã¯ãå¤ãã[次ã¸]ãã¯ãªãã¯ãã¾ãã
ãæ°ããã¯ã©ã¹ã¿ã¼ãä½æãã¦ãã¾ããã®ç»é¢ã表示ãããå¾ã[æ¦è¦]ç»é¢ã表示ããã¾ãã[å®äº]ãã¯ãªãã¯ãã¾ãã
ã³ã¢ãªã½ã¼ã¹ã®ãã¼ãé移å確èª
ããã§ã¼ã«ãªã¼ãã¼ã¯ã©ã¹ã¿ã¼ããã¼ã¸ã£ã¼ãã§ä½æãããã¯ã©ã¹ã¿ã¼åãã¯ãªãã¯ãã¾ãã
[ã¯ã©ã¹ã¿ã¼ã³ã¢ãªã½ã¼ã¹] ã®ãã¤ã³ã§ã2ã¤ããIPã¢ãã¬ã¹ã®ãã¡ãã©ã¡ããããªã³ã©ã¤ã³ãããä¸æ¹ããªãã©ã¤ã³ã§ãããã¨ã確èªãã¾ãã
å³ãã¤ã³ã®[ä»ã®ã¢ã¯ã·ã§ã³] ãé¸æããã¡ãã¥ã¼ãã [ã³ã¢ã¯ã©ã¹ã¿ã¼ãªã½ã¼ã¹ã®ç§»å] â [ãã¼ãã®é¸æ] ãé¸æãã¾ãã
[ã¯ã©ã¹ã¿ã¼ãã¼ã] ã«è¡¨ç¤ºãããã³ã³ãã¥ã¼ã¿ã¼ãé¸æãã¦ã[OK]ãã¯ãªãã¯ãã¾ãã
[ã¯ã©ã¹ã¿ã¼ã³ã¢ãªã½ã¼ã¹] ã®ãªã³ã©ã¤ã³ã¨ãªãã©ã¤ã³ã®IPã¢ãã¬ã¹ãå ¥ãæ¿ãã£ã¦ããã°æåã§ãã
åãæé ãå度å®æ½ããå ãã£ããã¼ãã¸ã³ã¢ãªã½ã¼ã¹ã移åãã¾ããï¼æ»ãã®ç§»åã確èªï¼
OUã¸ã®æ¨©éè¨å®
ã¯ã©ã¹ã¿ã¼ãªã½ã¼ã¹ã®ã³ã³ãã¥ã¼ã¿ã¼ãªãã¸ã§ã¯ããä½æãããOUã«å¯¾ããã³ã³ãã¥ã¼ã¿ã¼ãªãã¸ã§ã¯ã追å ã®æ¨©éãä»ä¸ãã¾ãã
AD管çãã¼ã«ã®ãActive Directory ã¦ã¼ã¶ã¼ã¨ã³ã³ãã¥ã¼ã¿ã¼ããéãã¾ãã
表示ã¡ãã¥ã¼ã®æ¡å¼µæ©è½ãé¸æãã¾ããå·¦ãã¤ã³ã«è¡¨ç¤ºãããé ç®ãå¢å ãã¾ãã
ãã¡ã¤ã³åã®æçµã¬ãã«åã®OUãä½æããã¦ãããå±éããã¨ãComputersãOUãããã®ã§å³ã¯ãªãã¯ãã [ããããã£] ãé¸æãã¾ãããAWS Managed Microsoft ADãã§ã¯ããã©ã«ãã§ã¯ãã®OUã«ã³ã³ãã¥ã¼ã¿ã¼ãªãã¸ã§ã¯ããä½æããã¦ããã¾ãã
ããããã£ç»é¢ã§[詳細è¨å®]ãã¯ãªãã¯ãã¾ãã
ã»ãã¥ãªãã£ã®è©³ç´°ç»é¢ã§[追å ]ãã¯ãªãã¯ãã¾ãã
ã¢ã¯ã»ã¹è¨±å¯ã¨ã³ããªç»é¢ã§[ããªã³ã·ãã«ã®é¸æ]ãã¯ãªãã¯ãã¾ãã
ããã©ã«ãã§ã¯ã³ã³ãã¥ã¼ã¿ã¼ãªãã¸ã§ã¯ããé¸æã§ããªãã®ã§ã[ãªãã¸ã§ã¯ãã®ç¨®é¡]ãã¯ãªãã¯ãã¦ã[ã³ã³ãã¥ã¼ã¿ã¼]ã«ãã§ãã¯ãå ¥ãã¦ããã¯ã©ã¹ã¿ã¼ã³ã¢ãªã½ã¼ã¹ã®ã³ã³ãã¥ã¼ã¿ã¼åãå ¥åãã¦[OK]ãã¯ãªãã¯ãã¾ãã
[ã³ã³ãã¥ã¼ã¿ã¼ ãªãã¸ã§ã¯ãã®ä½æ]ã«ãã§ãã¯ãå ¥ãã¦[OK]ãã¯ãªãã¯ãã¾ãã
ãç¹æ®ãã¨ãã³ã³ãã¥ã¼ã¿ã¼ãªãã¸ã§ã¯ãã®ä½æãã追å ããããã¨ã確èªãã[OK]ãã¯ãªãã¯ãã¦è©³ç´°è¨å®ç»é¢ãããããã£ç»é¢ãéãã¾ãã
ããã¾ã§ç¢ºèªã§ããããWSFCã®è¨å®ã¯å®äºã§ããã3.AlwaysOnè¨å®ç·¨ãã¸ç¶ãã¾ãã
ã¯ã³ãã¤ã³ã
OSæºåã®éã«ãIPã¢ãã¬ã¹ãOSä¸ã§è¨å®ãããçç±ã«ã¤ãã¦èª¬æãã¾ãã OSããè¨å®ããªãå ´åãEC2ã®è¨å®ã§ã¯åºå®ã®IPã¢ãã¬ã¹ãå²ãæ¯ã£ã¦ãã¦ããããã§ã¼ã«ãªã¼ãã¼ã¯ã©ã¹ã¿ã¼ã®æ§æã¦ã£ã¶ã¼ããã®ä¸ã§ãã¯ã©ã¹ã¿ã¼ã®IPã¢ãã¬ã¹ãå¼·å¶çã«DHCPããã®å²ãæ¯ãã¨ãªãã¾ããOSããDHCPãµã¼ãã¼ãèªèã§ããªãããå²ãå½ã¦ãä¸å¯ã¨ãªããè¨å®ã«å¤±æãã¾ãã ãããé¿ãããããããç¨æããIPã¢ãã¬ã¹ãæåã§è¨å®ãããããã«ããIPã¢ãã¬ã¹ãOSä¸ã§è¨å®ããã¦ãã¾ãã
ãããã«
å¥ã®è¨äºã«è¨è¼ããéããã»ãã¥ãªãã£ã°ã«ã¼ãã«ä¸åãããã¨ã主ã«ãæ§æã®æ¤è¨¼ãã¦ã£ã¶ã¼ãå ããµã¼ãã¼ã®è¿½å ç»é¢ã§[追å ]ãã¯ãªãã¯ããéã«ã¿ã¤ã ã¢ã¦ããèµ·ããç¾è±¡ã§å ã¸é²ããªããªãã¾ããåå ããªããªãåãããã«æéããããã¾ããã»ã»ã»ã