åºæã®ä»£ããã«
ãã©ãŒã«ããã¬ã©ã³ã¹ã¯ã1ã€ã®ããŒã¿ã»ã³ã¿ãŒã®ãã¬ãŒã ã¯ãŒã¯å ã§ç解ãããŸããã€ãŸãã1ã2å°ã®ç©çãµãŒããŒã®é害ããã®ä¿è·ã§ãã
ç§ãã¡ã®å®è£ ã¯ãããŒããŠã§ã¢ãã€ãŸããã€ãã®æåãªãã¹ããã¬ã³ã¿ã«ãããã®ã®ç¹ã§å®äŸ¡ã§ãã
ãœãããŠã§ã¢ã³ã¹ãã®é¢ã§ã¯ãç¡æãŸãã¯æ¢ã«å©çšå¯èœã§ãã ãã€ã¯ããœããã®ã¢ãã£ãªãšã€ãããã°ã©ã ãããã°ãå®è¡äžã§ãã
Windows Server 2012åžå Žã®åºçŸã«äŒŽããããµãŒããŒããã¯ã©ãŠããžãããã¢ããªã±ãŒã·ã§ã³ã¯åžžã«æ©èœããŸãããšããå€ãã®åºåããããŸããã ãããç§ãã¡ãå®è£ ããããšãããã®ã§ãã
ãã¡ãããããªããŒåãã®ãããã¯ããããŸããVMWareãHyper-VãããåªããŠãããã®ã§ãããããã¯ãã®æçš¿ã®ãããã¯ã§ã¯ãããŸããã ç§ã¯è°è«ããŸããã å³ãšè²ã«ã€ããŠ-ãã¹ãŠã®ãã§ã«ããã³ã¯ç°ãªããŸãã
ããããããã®ããžãã¹ãAzureã«éä¿¡ã§ãããšèšã人ãããã§ããã-ããã¯ããã«å®ãããšãå€æãããããããŸããããç§ãã¡ã¯åå·çã§ãããfayloveromãšvirtualkaã§ã¯ã©ã¹ã¿ãŒã
ãœãªã¥ãŒã·ã§ã³èŠä»¶
以äžã䜿çšããç¹å®ã®ãããžã§ã¯ãããããŸãã
- ããŒã¿ããŒã¹-MSSQL
- ããã¯ãšã³ã-IIS
- ããã³ããšã³ã-PHPã®ããçš®ã®ã¢ããªã±ãŒã·ã§ã³
以äžãå®è£ ããå¿ èŠããããŸãã
- ãã®æã¯ãåžžã«ãæ©èœããŸããã
- ãéããµãŒããŒã®é害ã¯ããŠã³ã¿ã€ã ãåŒãèµ·ãããŸããã§ããã
- ããŒã¿ã¯å€±ãããŸããã§ããã
- äœããã®è² è·åæ£ããããŸããã
- ã¹ã±ãŒã©ããªãã£ã
- äžèšãå®è£ ããããã«ããœãããŠã§ã¢ïŒããšãã°ãIdentity for MSSQLïŒã§åºããã§ã³ã¹ããå¿ èŠã¯ãããŸããã§ããã
ãã®çµæžã¯ãã¹ãŠã1ã€ã®æåãªãã€ãã®ãã¹ãã£ã³ã°ã§ãã¹ããããŸãã
å®è£
å®è£ ãè«çéšåã«åå²ããŸãã
- ããŒããŠã§ã¢èŠä»¶ã
- æºåäœæ¥
- ãã©ãŒã«ããã¬ã©ã³ã¹MSSQLïŒãã©ã³ã¹èŠçŽ ã䜿çšïŒã
- ãã©ãŒã«ããã¬ã©ã³ã¹ããã¯ãšã³ããšããã³ããšã³ã
- ãããã¯ãŒã¯èšå®
- èé害æ§ïŒå¥ã®ãã€ã«ã¹ããŒã³ã
ããŒããŠã§ã¢èŠä»¶
ããã«ã¯ãå°ãªããšã4ã€ã®ãµãŒããŒãå¿ èŠã§ãã ããããåãããŒã¿ã»ã³ã¿ãŒã«ãããã§ããã°1ã€ã®ã¹ã€ããã«ããããšãéåžžã«æãŸããã§ãã ãã®å Žåãå¥ã®ã©ãã¯ããããŸãã ãããŠã圌ããç§ãã¡ã«èª¬æããããã«ã1ã€ã®ã©ãã¯ãããªãã®ã§ã圌女ã®ã¹ã€ãããå°çšã§ãã
ãµãŒããŒ
2å°ã®ãµãŒããŒ-ä»®æ³å察å¿ããã»ããµãŒã32GB RAMã2HDD X 3TBïŒRAID 1ïŒ
æ®ãã®2ã€ã¯SQLã®äžã«çœ®ãããã®ã§ãå°ãå€æŽããŸãïŒæ§æã§ã¯ã1ã€ã®ããŒããã©ã€ããRAIDã³ã³ãããŒã©ãŒãšãããã300 GBã®3ã€ã®SASãã£ã¹ã¯ã«çœ®ãæããŸãïŒãããã¯RAID 5-MSSQLã®é«éã¹ãã¬ãŒãžã«ãªããŸãïŒã
ååãšããŠãããã¯å¿ èŠãããŸããã ãã¡ãããèé害æ§ã¯äœäžããŸãããé床ãããéèŠã§ãã
ãŸãããã©ãã·ã¥ãã©ã€ããå¿ èŠã«ãªããŸãïŒãã ãã以äžã§ããã«è©³ãã説æããŸãïŒã
ãªãã·ã§ã³ïŒããŒã«ã«ãããã¯ãŒã¯ãæŽçããããã®åå¥ã®ã¹ã€ããããã ããããã¯ãããžã§ã¯ãã®æé·ã«åãããŠåŸããè¡ãããšãã§ããŸãã
æºåäœæ¥
ãã§ãŒã«ãªãŒããŒã¯ã©ã¹ã¿ãŒãäžãããããActive Directoryãã¡ã€ã³ãå¿ èŠã«ãªããŸãã
ãã®åŸãSQLãµãŒããŒã§ããã¯ãšã³ããæ¿èªããã¿ã¹ã¯ãç°¡çŽ åããŸãã
ä»®æ³ãã·ã³ã®ãã¡ã€ã³ã³ã³ãããŒã©ãŒãäžããŸãã
ãŸããããŒã«ã«ãããã¯ãŒã¯ã®ã¢ãã¬ã¹æå®ã決å®ããå¿ èŠããããŸãã
ãã¡ãããDCïŒãã¡ã€ã³ã³ã³ãããŒã©ãŒïŒã«ã¯çœãIPã¢ãã¬ã¹ããªããNATãä»ã㊠"åºå"ãããŸãã
ãã¹ãŠã®ä»®æ³ãã·ã³ã®èšå®ã§ã¯ãªãããã©ã€ããªDNSïŒãã¡ã€ã³ã³ã³ãããŒã©ãŒã
2çªç®ã®IPã¢ãã¬ã¹ã¯ãçºè¡ãããçœããã®ã«å ããŠãããŒã«ã«ãããã¯ãŒã¯ã®ã¢ãã¬ã¹ãç»é²ããå¿ èŠããããŸãã
çæ³çãªãªãã·ã§ã³ã¯ã以äžã®ã¹ã±ãŒã©ããªãã£ã®èŠ³ç¹ãã説æãããŠããŸãã
ãã©ãŒã«ããã¬ã©ã³ã¹MSSQLã
MSSQLã¯ã©ã¹ã¿ãªã³ã°ã䜿çšããŸãããå€å žçãªæå³ã§ã¯äœ¿çšããŸãããã€ãŸãããµãŒãã¹å šäœã§ã¯ãªãããªã¹ããŒã®ã¿ãã¯ã©ã¹ã¿ãŒåããŸãã ãã¹ãŠã®MSSQLãã¯ã©ã¹ã¿ãŒåããã«ã¯ãå ±éã®ãªããžããªãå¿ èŠã§ããããããé害ã®ãã€ã³ãã«ãªããŸãã é害ç¹ãæå°åããéã蟿ã£ãŠããŸãã ãããè¡ãã«ã¯ãMSSQL Server 2012ã®æ°æ©èœ-Always Onãå©çšããŸãã
ãã®æ©èœã®èª¬æã¯ã SQL Server 2012-Andrew Fryerã«ããAlways Onã§è©³ãã説æãããŠããŸã ã ãŸããæ§ææ¹æ³ã«ã€ããŠè©³ãã説æããŸãã
èŠããã«ãã¬ããªã±ãŒã·ã§ã³ãšãã©ãŒãªã³ã°ã®2ã€ã®ãã¯ãããžãŒã®çµã¿åããã äž¡æ¹ã®ããŒã¿ããŒã¹ã€ã³ã¹ã¿ã³ã¹ã«ã¯åäžã®æ å ±ãå«ãŸããŠããŸããããããããç¬èªã®ãªããžããªã䜿çšããŠããŸãã
èªã¿åãå°çšã¬ããªã«ã䜿çšããŠè² è·åæ£ã䜿çšããããšãã§ããŸãã èªã¿åãã«ãŒããäºåã«æ§æããããšã«ããã詳现ãèªã-SQL Server 2012 Always OnããŒã¿ããŒã¹å¯çšæ§ã°ã«ãŒãã«ããèªã¿åãå°çšã«ãŒãã£ã³ã°
äžè¬ã«ããã®åé¡ã®ãã¹ããã©ã¯ãã£ã¹ã¯ãé«å¯çšæ§ãšçœå®³åŸ©æ§ã®ããã®Microsoft SQL Server AlwaysOnãœãªã¥ãŒã·ã§ã³ã¬ã€ãã®LeRoy Tuttleã«ãã£ãŠè©³çŽ°ã«èª¬æãããŠããŸãã
MSSQLèšå®ã®ãã¹æ§æãåäžã§ãªããã°ãªããªããšããäºå®ã«ã®ã¿çŠç¹ãåœãŠãŸãã
ãã©ãŒã«ããã¬ã©ã³ã¹ããã¯ãšã³ããšããã³ããšã³ãã
ä»®æ³ãã·ã³ãã¯ã©ã¹ã¿ãªã³ã°ããããšã«ããããã®æ©èœãå®è£ ããŸãã
ä»®æ³ãã·ã³ãã¯ã©ã¹ã¿ãŒåããã«ã¯ãã¯ã©ã¹ã¿ãŒå ±æããªã¥ãŒã ïŒCSVïŒãå¿ èŠã§ãã
ãŸããCSVãäœæããã«ã¯SANãå¿ èŠã§ãããã¯ã©ã¹ã¿ãŒã«ãã£ãŠæ€èšŒãããç¡æã§ããå¿ èŠããããŸãã ããã¯ç°¡åãªäœæ¥ã§ã¯ãªãããšãããããŸããã å€æ°ã®ãœãªã¥ãŒã·ã§ã³ãè©ŠãããŸããïŒãªãŒãã³ãœãŒã¹ã§ã¯ãªãïŒã ãã®çµæãç®çã®è£œåãçºèŠãããŸããã 圌ã¯NexentaStorãšåŒã°ããŠããŸã
18 TBã®æªå å·¥ã¹ããŒã¹ãç¡æã®ãããã³ã«ãšãããã®æã
å±éæã«ã ULPã® éçšçµéšNexentaãŸãã¯2ãæåŸã®çµéšãšæšå¥šäºé ãèæ ®ããå¿ èŠãããå¯äžã®ããš
æ®å¿µãªãããç§ãã¡ã¯èªåã§ãã®ã¬ãŒããæ©ããŸããã
Nexentaã«ã¯å®æçã«ãçŸæ£ãããããŸããWebã€ã³ã¿ãŒãã§ãŒã¹ã¯å¿çãåæ¢ããŸãããä»ã®ãµãŒãã¹ã¯ãã¹ãŠæ£åžžã«æ©èœããŸãã ãœãªã¥ãŒã·ã§ã³ã¯ã httpïŒ//www.nexentastor.org/boards/2/topics/2598#message-2979ã§å ¥æã§ããŸãã
ã ããã ã€ã³ã¹ããŒã«ã®è©³çŽ°ã
Nexentaãã€ã³ã¹ããŒã«ããããšããŠããŸãããã€ã³ã¹ããŒã«ã¯æåã§ãã ç§ãã¡ã¯ã·ã¹ãã ã«å ¥ããé©ããŸããããã¹ãŠã®ç©ºãã¹ããŒã¹ãã·ã¹ãã ããŒã«ã®äžã«è²»ããããããŒã¿ãé 眮ããå ŽæããããŸããã 解決çã¯æããã§ããããã«æãããŸãããµãŒããŒãžã®ããŒããã©ã€ãã®é åºãå€æŽããããŒã¿ãä¿åããããã®ããŒã«ãäœæããŸãããå¥ã®è§£æ±ºçããããŸãã ãããè¡ãã«ã¯ããã©ãã·ã¥ãã©ã€ãã䜿çšããŸãã
ã·ã¹ãã ããã©ãã·ã¥ãã©ã€ãã«é 眮ããŸãïŒãã®ããã»ã¹ã«ã¯çŽ3æéããããŸãïŒã
ã€ã³ã¹ããŒã«åŸãã·ã¹ãã ããŒã«ãšããŒã¿çšã®ããŒã«ãäœæããŸãã ãã©ãã·ã¥ãã©ã€ããã·ã¹ãã ããŒã«ã«æ¥ç¶ããŠåæããŸãã ãã®åŸãããŒã«ãããã©ãã·ã¥ãã©ã€ããåé€ã§ããŸãã 詳现ã«ã€ããŠã¯ã httpïŒ//www.nexentastor.org/boards/1/topics/356#message-391ã§èª¬æããŠããŸã ã
ãããŠããã®ãããªåçãååŸããŸãã
zvolãäœæããŸãã äœæåŸãã¿ãŒã²ããã«ãã€ã³ãããISCSIçµç±ã§å ¬éããŸãã
ã¯ã©ã¹ã¿ãŒã®åããŒãã«æ¥ç¶ããŸãã ãããŠããããã¯ã©ã¹ã¿ãŒã®å ±æããªã¥ãŒã ã«è¿œå ããŸãã
ãããã£ãŠãã¯ã©ã¹ã¿ãŒã®åããŒãã®Hyper-Vèšå®ã§ã¯ãä»®æ³ãã·ã³æ§æãšãã®äžã®ããŒããã£ã¹ã¯ãã¡ã€ã«ã®å Žæã瀺ããŸãã
ãŸããéèŠã§ã¯ãããŸãã-åããŒãã®ä»®æ³ã¹ã€ããã®ååãåãã§ãªããã°ãªããŸããã
ãã®åŸãä»®æ³ãã·ã³ãäœæããŠããããã®ä»®æ³ãã·ã³ãæ§æã§ããŸãã
ãã¡ãããOSã®éžæã¯ã çµ±åãµãŒãã¹ãããMS WindowsãšLinuxã«éå®ãããŸãããç§ãã¡ã¯ãããã䜿çšããããšã«ãªããŸããã
ãŸãããã¡ã€ã³ã³ã³ãããŒã©ãŒãHyper-Vã¯ã©ã¹ã¿ãŒã«è¿œå ããããšãå¿ããªãã§ãã ããã
ãããã¯ãŒã¯èšå®
ãã©ãŒã«ããã¬ã©ã³ãSQLãæ¢ã«ããããã©ãŒã«ããã¬ã©ã³ãããã³ããšã³ããšããã¯ãšã³ãããããŸãã
圌ããå€ã®äžçããã¢ã¯ã»ã¹ã§ããããã«äœããããŸãŸã§ãã
ãã¹ãã£ã³ã°ãããã€ããŒã«ã¯ããã®æ©èœãå®è£ ããããã®2ã€ã®ãµãŒãã¹ããããŸãã
- ãµãŒããŒã«è¿œå ã®IPã¢ãã¬ã¹ãèŠæ±ãããããMACã¢ãã¬ã¹ã«ãã€ã³ãããããšãã§ããŸãã
- ãµããããå šäœ/ 29ãŸãã¯/ 28ãèŠæ±ãã1ãã€ã³ãã®ã¢ãã¬ã¹ã«ã«ãŒãã£ã³ã°ããããã«äŸé Œããããšãã§ããŸãã
Hyper-vã¯ã©ã¹ã¿ãŒã«ãã1ã€ä»®æ³ãã·ã³ãäœæããŸãã ãã®ç®çã®ããã«ã ClearOSã䜿çšããŸã ã CentOSã«åºã¥ããŠæ§ç¯ãããçµ±åãµãŒãã¹ãã€ã³ã¹ããŒã«ã§ãããããéžæã¯ããã«åœŒå¥³ã«ããã£ãã
ã€ã³ã¹ããŒã«åŸã«ã€ã³ã¹ããŒã«ããããšãå¿ããªãã§ãã ãããããããªããšããããã¯ãŒã¯ã€ã³ã¿ãŒãã§ãŒã¹ã®æ¶å€±ã«åé¡ãçããå¯èœæ§ããããŸãã
圌女ã«ã¯3ã€ã®ã€ã³ã¿ãŒãã§ã€ã¹ããããŸãã
- ããŒã«ã«ãšãªã¢ãããã¯ãŒã¯
- Dmz
- å€éšãããã¯ãŒã¯
å€éšãããã¯ãŒã¯ã¯ããããã€ããŒã«å°ããè¿œå ã®ã¢ãã¬ã¹ã§ã
DMZ-ãããã€ããŒããæäŸããããµããããã
ãŸãããã®ãã·ã³ã¯ãNATãä»ããŠä»®æ³ãã·ã³ïŒçœãIPã¢ãã¬ã¹ãæããªãïŒã解æŸããŸãã
ãããã£ãŠãã«ãŒãã£ã³ã°ãã§ãŒã«ãªãŒããŒãäœæããŸããã ã«ãŒã¿ãŒã¯ã¯ã©ã¹ã¿ãŒåãããŠãããããŒãéã移åããããšãã§ããŸãã
ããŒãèªäœã§ããã¡ã€ã¢ãŠã©ãŒã«ãèšå®ããããšãå¿ããªãã§ãã ããïŒå±éºãªããŒãäžã®ä¿¡é Œã§ãããã®ãšããŒã«ã«ã®ãã®ãé€ããã¹ãŠã®IPããã®ã¢ã¯ã»ã¹ããããã¯ããŸãïŒã çœãIPã¢ãã¬ã¹ããªãã«ããæ¹ãè¯ãã§ãããã
ãã¡ãããè€æ°ã®ãã¯ã€ãã¢ãã¬ã¹ãå¿ èŠãªãå Žåã¯ããµããããå šäœã匷調衚瀺ããŠãæå³ããªããå€éšããã®ã¢ã¯ã»ã¹ã¯ããŒããã©ã¯ãŒãã£ã³ã°ããã³ãªããŒã¹ãããã·ãä»ããŠå®çŸã§ããŸãã
ãã©ãŒã«ããã¬ã©ã³ã¹ïŒå¥ã®ãã€ã«ã¹ããŒã³
åè¿°ããããã«ãé害ç¹ãæžããããã®éãé²ãã§ããŸãã ãããããŸã 1ã€ã®é害ç¹ããããŸãããããSANã§ãã ãã¡ã€ã³ã³ã³ãããŒã©ãŒãå«ããã¹ãŠã®ã¯ã©ã¹ã¿ãŒåãããä»®æ³ãã·ã³ããã®äžã«ããããããã®ãªãœãŒã¹ãæ¶å€±ãããšãããã¯ãšã³ããšããã³ããšã³ããæ¶å€±ããã ãã§ãªããã¯ã©ã¹ã¿ãŒã厩å£ããŸãã
ãµãŒããŒããã1ã€æ®ã£ãŠããŸãã æåŸã®ããã³ãã£ã¢ãšããŠäœ¿çšããŸãã
ããã¯ã¢ãããµãŒããŒã«2çªç®ã®ãã¡ã€ã³ã³ã³ãããŒã©ãŒã䜿çšããŠä»®æ³ãã·ã³ãäœæããADã¬ããªã±ãŒã·ã§ã³ãæ§æããŸãã
ãã¹ãŠã®ãã·ã³äžã®ã»ã«ã³ããªDNSãµãŒããŒãå¿ããã«ç»é²ããŠãã ããã ãã®å ŽåãCSVãæ¶ããŠããCSVã«äŸåããªããµãŒãã¹ãã€ãŸãã¯ã©ã¹ã¿ãŒåãããSQLãªã¹ããŒã¯æ©èœãç¶ããŸãã
CSVã®åŽ©å£åŸãããã¯ãšã³ããšããã³ããšã³ããéçšã«æ»ãããã«ãæ°ããWindows Server 2012æ©èœã§ããHyper-Vã¬ããªã±ãŒã·ã§ã³ã䜿çšããŸãã ãããžã§ã¯ãã®éèŠãªãã·ã³ã4å°ã®ãµãŒããŒã«è€è£œããŸãã æå°ã¬ããªã±ãŒã·ã§ã³æéã¯5åã§ãããããã»ã©éèŠã§ã¯ãããŸããã ããã³ããšã³ããšããã¯ãšã³ãã«ã¯ããã£ãã«æŽæ°ãããªãéçããŒã¿ãå«ãŸããŠããŸãã
ãããå®çŸããã«ã¯ãHyper-Vã¬ããªã«ãããŒã«ãŒã¯ã©ã¹ã¿ãŒã®åœ¹å²ãè¿œå ããå¿ èŠããããŸãã ãããŠããã®ããããã£ã§è€è£œããããã£ãèšå®ããŸãã ã¬ããªã±ãŒã·ã§ã³ã®è©³çŽ°ïŒ
Hyper-Vã¬ããªã«ã®æŠèŠ
Windows Server 2012 Hyper-V Hyper-Vã¬ããªã«
ãããŠããã¡ãããããã¯ã¢ãããå¿ããªãã§ãã ããã
ã¹ã±ãŒã©ããªãã£ã«ã€ããŠå°ã
ãã®ãœãªã¥ãŒã·ã§ã³ã¯ãããŒããµãŒããŒãè¿œå ããããšã§ãå°æ¥çã«æ¡åŒµã§ããŸãã
MSSQLãµãŒããŒã¯ãèªã¿åãå°çšããŒããè¿œå ããèªã¿åãã«ãŒãã®ãã©ã³ã¹ããšãããšã«ããæ¡åŒµãããŸãã
ä»®æ³ãã·ã³ã¯ãããŒããŠã§ã¢ã«çžãããããšãªãããªãœãŒã¹ããŒãã®ãµã€ãºã«ãèšåŒµããããããšãã§ããŸãã
ãã©ãã£ãã¯ãæé©åããããã«ãããŒããµãŒããŒã«è¿œå ã®ã€ã³ã¿ãŒãã§ã€ã¹ãè¿œå ãããããã®ã€ã³ã¿ãŒãã§ã€ã¹ã«Hyper-Vä»®æ³ã¹ã€ãããæ¥ç¶ã§ããŸãã ããã«ãããå€éšãã©ãã£ãã¯ãšå éšãã©ãã£ãã¯ãåé¢ã§ããŸãã
Azureã§ä»®æ³ãã·ã³ãè€è£œã§ããŸãã
SCVMMãšOrchestratorãè¿œå ããŠãããã©ã€ããŒãã¯ã©ãŠãããååŸã§ããŸãã
ãã®ãããªãã®ã䜿çšãããšãããçšåºŠãŸã§ãã©ãŒã«ããã¬ã©ã³ããªç¬èªã®ã¯ã©ã¹ã¿ãŒãæ§ç¯ã§ããŸãã ååãšããŠããã¹ãŠã®ãã©ãŒã«ããã¬ã©ã³ã¹ã
PS 3ãæ-ãã©ã€ãã¯æ£åžžã§ãã ã¯ã©ã¹ã¿ããŒããšä»®æ³ãã·ã³ã®æ°ã¯å¢ãç¶ããŠããŸãã ã¹ã¯ãªãŒã³ã·ã§ããã¯ãã·ã¹ãã ããã§ã«èª¬æãããŠãããããå€å°å€§ããããšã瀺ããŠããŸãã
ããããããã®æçš¿ã§ã¯èšå®ã®è©³çŽ°ããã¹ãŠæããã«ãªãããã§ã¯ãªãããã®ãããªã¿ã¹ã¯ã¯ãããŸããã§ããã ãã¹ãŠã®è©³çŽ°ãèªãã®ã¯éå±ã ãšæããŸãã çªç¶ã誰ã詳现ã«èå³ããããªã-ããªãã¯å€§æè¿ã§ãã æ¹å€ã¯å€§æè¿ã§ãã