ãã°ããããŠããããžã§ã¯ãã®éçºã«äŒŽãã管çæ©èœïŒç£èŠãããã¯ã¢ããïŒã®æ§æãéå§ãããœããRAID ãçŽæããããã¹ãã£ã³ã°æ¥è ïŒOVHïŒãESXIã€ã¡ãŒãžãããŒã«ã¢ãããããµãŒããŒãRAIDãªãã§ããããšãããããŸããïŒ ããã¯ã¡ããã©2ã€ã®ãã£ã¹ã¯ã§ãã ãããã¯ããESXIã¯ãœããRAIDããµããŒããããããŒãã®ã¿ããµããŒãããŠããããšãããããŸããã äžå¿«ã«ãªããŸããã ã¯ãã2TBã§ã¯äžååã§ããã äžè¬çã«ãããŒããŠã§ã¢RAIDãåãããã倧ããªãµãŒããŒã䜿çšããŠãããã«ESXI 6.0ãé 眮ããŸããã
ãããŠã2ã€ã®åé¡ãçºçããŸããããã®è§£æ±ºçãããã§èª¬æããŸãã
- æå°éã®ãªãã©ã€ã³ã§ä»®æ³ãã·ã³ïŒäžéšã¯çŽ1TBïŒããããµãŒããŒããå¥ã®ãµãŒããŒã«è»¢éãã
- å®æçãªããã¯ã¢ãããäœæãã
å°ãªããšãæäœæ¯æé¡ã®ESXIã©ã€ã»ã³ã¹ãããã°ããããã®ã¿ã¹ã¯ã¯äž¡æ¹ãšãç°¡åã«è§£æ±ºã§ãããšããã«èšããŸãã å®éã®ãšãããç¡æçã®ESXIã®ããã€ãã£ããããã¯ã¢ããAPIã¯ãªãã«ãªã£ãŠããŸãã ãããã£ãŠãä»ã®æ¹æ³ãèŠã€ããå¿ èŠããããŸãã
ææã©ã€ã»ã³ã¹ã§ã¯ã vCenterãä»ãã移è¡ãªãã·ã§ã³ããããŸã ã Veeam Backupã®ç¡æããŒãžã§ã³ããããŸããããã«ãããä»®æ³ãã·ã³ãåæ¢ããããšãªããããã·ã¹ãã ããå¥ã®ã·ã¹ãã ã«ããã¯ã¢ããããã³è»¢éã§ããŸãã ããããç¡æã®ESXIã©ã€ã»ã³ã¹ã§ã¯ãçŸåšã®ããŒãžã§ã³ã§ããVeeam 9 ã¯ãŸã£ããæ©èœããŸãã ã
HPã®ãœãªã¥ãŒã·ã§ã³-VM Explorerã«ã¯ãç¡æã®ç¡æçããããŸãã
VM Explorer 6.2ã¯ç¡æã®ESXIã§åäœããŸããã次ã®ãšããã§ãã
- ããã¯ã¢ãããäœæãããšãããã£ã¹ã¯ãèãå Žåã§ãããµãŒããŒããå®å šãªã€ã¡ãŒãžãµã€ãºãã³ããŒãããŸãã ã€ãŸããä»®æ³ãã·ã³ã®ãã£ã¹ã¯ã500GBã§ãããã«50GBã®ã¿ãèšé²ãããŠããå Žåã500GBãã³ããŒãããŸãã ãããŠ-æ¯åã å¢åããã¯ã¢ããã¢ãŒãïŒããŒã«ã«ã³ã³ãã¥ãŒã¿ãŒã®ã¿ïŒã¯ææçã§ããããã¹ãããŠããŸãã-ãããã©ãã»ã©å¹æçãã¯ããã£ãŠããŸãã
- ç¡æã®ã©ã€ã»ã³ã¹ã§ã¯ãããŒã«ã«ãã©ã€ãã«ã®ã¿ããã¯ã¢ããã§ããŸãã ã€ãŸããå¥ã®ESXIãã¹ãã«ã³ããŒããã«ã¯ãæ¢ã«ææã©ã€ã»ã³ã¹ãå¿ èŠã§ãã
- ç¡æçã«ã¯ã¹ã±ãžã¥ãŒã©ã¯ãããŸãããã€ãŸããæåã§ããã¯ã¢ãããéå§ããå¿ èŠããããŸãã
ãã1ã€ã®äººæ°ã®ãããœãªã¥ãŒã·ã§ã³ã¯ã ghettoVCBãªãŒãã³ãœãŒã¹ãããžã§ã¯ãã§ããã䜿çšããã®ã¯ããé£ããããã§ã ããã¥ã¡ã³ãã¯å°ãæ代é ãã«èŠããŸãã ãã®ãããžã§ã¯ãã«ã€ããŠã¯ãã§ã«Habréã§ããã«æžããŠããŸã ã
ç§ã¯ä»ã®å€ãã®ãªãã·ã§ã³ããããšç¢ºä¿¡ããŠããŸãã çµéšè±å¯ãªç®¡çè ã®ã³ã¡ã³ããèªãã®ã¯é¢çœãã§ãããã ç§ã¯åœŒããå¿ èŠãªã©ã€ã»ã³ã¹ãè³Œå ¥ããå¿é ããªãã§çµéšè±å¯ãªä»äºã ãšæãã...
ããã§èšåããããšãã§ããŸãïŒ
- Nakivoã«ã¯ãç¡æçã§2 VMã®å¶éããããŸãã
- Unitrends ãç¡æçã§ã¯1TBã®å¶éããããŸãã
- ã·ã³ãŠã§ã¢
ãããã®è£œåã®äœ¿çšçµéšãããå Žåã¯ãã³ã¡ã³ããå ±æããŠãã ããã
æçµçã«ã2ã€ã®ããŒã«ã䜿çšããããšã«ããŸããã
- Xsibackupã«ã¯ç¡æçããããŸã
- Ovftool
Xsibackup
ããŒãžã§ã³4.4ããåã¯ãXsibackupã¯Githubã«ãããŸããããçŸåšïŒããŒãžã§ã³6.0.7ïŒXsibackupã¯Githubããåé€ãããŠããŸããäœæè ã®Webãµã€ãããã€ã³ã¹ããŒã«ããå¿ èŠããããŸãã
ç¡æçã§ã¯ïŒ
- ä»®æ³ãã·ã³ãåæ¢ããã«ãããããã¯ã¢ããã ããã¯ãã¹ãããã·ã§ããïŒã¹ãããã·ã§ããïŒã䜿çšããŠè¡ãããŸã
- ESXIã§ã®Cronã®æ§æ
- ã¡ãŒã«ã¬ããŒã
- ããã¯ã¢ããããŒããŒã·ã§ã³
- å¥ã®ESXIãã¹ãã«ããã¯ã¢ããããŸãã ç¡æçã§ã¯-rsyncã䜿çšããESXIã§ã·ã£ãŒãã«ããŸãã ææçã§ã¯ãäžéã¹ãããã·ã§ããã®äœæã«ããå¢åããã¯ã¢ããïŒ OneDiff ïŒïŒç§ã«ãšã£ãŠã¯ããã¯ããŸãè¯ã解決çã§ã¯ãããŸããïŒãšNASã䜿çšããéè€æé€ïŒ XSINAS ïŒããããŸã
Xsibackupã®ã€ã³ã¹ããŒã«æé
è±èªã§åãæ瀺-33hops.com/blog_xsibackup-quickstart.html
Xsibackupã¯ãããã¯ã¢ãããå¿ èŠãªESXIãã¹ãã«ã€ã³ã¹ããŒã«ãããŸãã
ESXIã§ã¯ãSSHãæå¹ã«ããå¿ èŠããããŸãã
èè ã®ãŠã§ããµã€ãã«ç»é²-xsibackupãããŠã³ããŒã-33hops.com/xsibackup-vmware-esxi-backup.html
次ã®é»åã¡ãŒã«ã§ãESXIã«ã€ã³ã¹ããŒã«ããããã®ç¡æã®ããŒãšã¹ã¯ãªãããåãåããŸãã
secretKeyã«ã¯ç¬èªã®ãã®ããããŸãã
ããŒã¿ã¹ãã¢ã®åŒã³åºãæ¹æ³ãç°ãªãå Žåã¯ããã¹ãç»é²ããå¿ èŠããããŸãã
wgetãèŠããšã誰ããé ãæ¯ã£ãŠã誰ãã®ãœãããŠã§ã¢ãESXIãã¹ãã«çœ®ãããšã¯å®å šã§ã¯ãªããšèšãããšãã§ããŸãã ãã ããããã¯ã¢ããã®å Žåã¯ãrootã«ããã¯ã¢ããããã°ã©ã ã®ãã¹ã¯ãŒããæž¡ããŸããã€ãŸããã©ã®ãããªå Žåã§ã誰ããä¿¡é ŒããŸãã ããŒã«ã«ã³ããŒã®å ŽåãXsibackupã¯è¡šç€ºããã³ãã§ãã¯ã§ããã·ã§ã«ã¹ã¯ãªããã®ã¿ã䜿çšããŸã...
次ã«ãããã¯ã¢ãããä¿åãããã©ã«ããŒãããŒã«ã«ãŸãã¯å¥ã®ãµãŒããŒã«äœæããŸãã
ãã¹ãéã§ããã¯ã¢ãããã³ããŒããå ŽåãSSHããŒãå ±æããŸãã
ã¯ã©ãŠã³ãä»ããŠããã¯ã¢ãããèµ·åãããå ŽåïŒ
ãã¹ãŠãããŒã«ã«ã§æ©èœããããšããã¹ãããŸãã
ãã¹ãéã®æäœããã¹ãããããã«ã以äžãå€æŽããŸãã
SMTPã«TLSãå¿ èŠãªå Žåã-smtp-sec = TLSããµããŒããããŸãã
Xsibackupã¯ãããã¯ã¢ãããå¿ èŠãªESXIãã¹ãã«ã€ã³ã¹ããŒã«ãããŸãã
ESXIã§ã¯ãSSHãæå¹ã«ããå¿ èŠããããŸãã
èè ã®ãŠã§ããµã€ãã«ç»é²-xsibackupãããŠã³ããŒã-33hops.com/xsibackup-vmware-esxi-backup.html
次ã®é»åã¡ãŒã«ã§ãESXIã«ã€ã³ã¹ããŒã«ããããã®ç¡æã®ããŒãšã¹ã¯ãªãããåãåããŸãã
cd /vmfs/volumes/datastore1/xsi-dir 2>/dev/null || mkdir /vmfs/volumes/datastore1/xsi-dir && \ cd /vmfs/volumes/datastore1/xsi-dir && \ esxcli network firewall unload && \ wget http://a.33hops.com/downloads/?key=64cG...secretKey -O xsibackup.zip && \ unzip -o xsibackup.zip || cat xsibackup.zip && echo "" && \ chmod 0700 xsibackup* && \ rm -rf xsibackup.zip && \ esxcli network firewall load
secretKeyã«ã¯ç¬èªã®ãã®ããããŸãã
ããŒã¿ã¹ãã¢ã®åŒã³åºãæ¹æ³ãç°ãªãå Žåã¯ããã¹ãç»é²ããå¿ èŠããããŸãã
wgetãèŠããšã誰ããé ãæ¯ã£ãŠã誰ãã®ãœãããŠã§ã¢ãESXIãã¹ãã«çœ®ãããšã¯å®å šã§ã¯ãªããšèšãããšãã§ããŸãã ãã ããããã¯ã¢ããã®å Žåã¯ãrootã«ããã¯ã¢ããããã°ã©ã ã®ãã¹ã¯ãŒããæž¡ããŸããã€ãŸããã©ã®ãããªå Žåã§ã誰ããä¿¡é ŒããŸãã ããŒã«ã«ã³ããŒã®å ŽåãXsibackupã¯è¡šç€ºããã³ãã§ãã¯ã§ããã·ã§ã«ã¹ã¯ãªããã®ã¿ã䜿çšããŸã...
次ã«ãããã¯ã¢ãããä¿åãããã©ã«ããŒãããŒã«ã«ãŸãã¯å¥ã®ãµãŒããŒã«äœæããŸãã
mkdir /vmfs/volume1/datastore1/backup
ãã¹ãéã§ããã¯ã¢ãããã³ããŒããå ŽåãSSHããŒãå ±æããŸãã
./xsibackup --link-srv=[second.esxi.system.ip]
ã¯ã©ãŠã³ãä»ããŠããã¯ã¢ãããèµ·åãããå ŽåïŒ
./xsibackup --install-cron
ãã¹ãŠãããŒã«ã«ã§æ©èœããããšããã¹ãããŸãã
./xsibackup --backup-point=/vmfs/volumes/datastore1/backup --backup-type=running --mail-from=email.sender@yourdomain.com --mail-to=email.recipient@anotherdomain.com --smtp-srv=smtp.yourserver.com --smtp-port=25 --smtp-usr=username --smtp-pwd=password --test-mode=true
ãã¹ãéã®æäœããã¹ãããããã«ã以äžãå€æŽããŸãã
--backup-point="IP-OF-ESXI:22:/vmfs/volumes/datastore1", 22 - SSH .
SMTPã«TLSãå¿ èŠãªå Žåã-smtp-sec = TLSããµããŒããããŸãã
» ãªãã·ã§ã³ã®å šãªã¹ã ïŒè±èªïŒ
ããŒã«ã«ãã€ãŸãã1ã€ã®ãã¹ãã§ãã¹ãŠãæ£åžžã«æ©èœããŸããããã¯ã¢ããã¯ãESXIãã€ãã£ããŠãŒãã£ãªãã£vmkfstoolsã䜿çšããŠè¡ãããŸãã ãã¹ãŠãé«éã§ãèåãã£ã¹ã¯ã¯èåã®ãŸãŸã§ãã ããŒããã©ã€ãã§ã¯ãçŽ60MB / sã®é床ãåŸãããŸãã
ãã ãããªã¢ãŒããã¹ãã«ã³ããŒãããšãHP VM Explorerãšåãåé¡ãèŠã€ãããŸããããã£ã¹ã¯ãèããå°ããéšåã®ã¿ã䜿çšãããŠããŠããVMã®ãã«ãµã€ãºãã³ããŒãããŸãã
èè ã«ãã®çç±ãå°ãããšãrsyncã¯ãã¹ãéã®ã³ããŒã«äœ¿çšãããã·ã³ãã£ã¹ã¯ã®æªå²ãåœãŠãããã¯ãã¹ãããããã®ã«ååã§ã¯ãªããšæžããŠããŸãã
ãã¹ãã®éãããã¯ã¢ãããç¹°ãè¿ããŠããrsyncã¯ã³ããŒæéãå®è³ªçã«ççž®ããªãããšãããããŸãã-VMå šäœã®ãµã€ãºãåã³ãããã¯ãŒã¯ãééããŸãã
èè ã¯ãrsyncã§ã¯ãªãç¬èªã®ãŠãŒãã£ãªãã£ããã¡ã€ã«ããããšãèšç»ããŠãããšæžããŠããŸãã 圌ãã¯å¹Žæ«ãŸã§ã«ãªãªãŒã¹ããäºå®ã§ãã
ç§ã®å Žåããã¹ãã£ã³ã°äºæ¥è ã¯250Mb / sïŒã31MB / sïŒã®ãããã¯ãŒã¯é床ãä¿èšŒããŠããŸãããå®éã«ã¯åãããŒã¿ã»ã³ã¿ãŒå ã®2ã€ã®ãã¹ãéã§ããã¯ã¢ããã10-20MB / sã§æ©èœããŸããã ããã§äœãåé¡ãªã®ãããããŸãã-ãããã¯ãŒã¯ãrsyncããã®ä»ã®é床ãäœäžãããŸãããããã»ã¹ãé·ãããŸãã
æŽæ° ïŒç§ã¯èšäºãèŠã€ããŸãã -圌ãã®ãã³ãããŒã¯ã«ãããšãåé¡ã¯SSHïŒrsyncãåäœããäžã§ïŒãé ãããŠããããšãå€æããNFSã«ãããšããã¯éããªãã§ãããã
ãã®çµæããã£ã¹ã¯ãèããŸãŸã§ããããšãå¬ããæããŸãã
VMã®è»¢éããã³ããã¯ã¢ããã®ããã»ã¹
ãã¹ãéã§VMã転éããããã»ã¹ã¯ã次ã®ããã«ãªããŸãã
- ãŸããXsibackupã䜿çšããŠããŒã«ã«ããã¯ã¢ãããäœæããŸãã
- æ°ããVMãç»é²ããŠããŸã-åã®æé ã®ã³ããŒã§ãã
- ãªãã·ã§ã³ïŒæ¬¡ã®ã³ãã³ãã䜿çšããŠãåé€ããããã¡ã€ã«ããVMããã¯ãªãŒã³ãã§ããŸãã
vmkfstools --punchzero VMname.vmdk
-flatã®ãã¡ã€ã«ã§ã¯ãªããã¡ã€ã³ãã¡ã€ã«ãæå®ããŸãã - 次ã«ãOvftoolïŒäžèšåç §ïŒã䜿çšããŠãå¥ã®ãã¹ãã«ã³ããŒããŸãã Ovftoolã¯ã䜿çšæžã¿ã®éšåã®ã¿ãéä¿¡ãããããã«ã·ã³ãã£ã¹ã¯ãéä¿¡ã§ããŸãã
- ãã®åŸãæåã®ãã¹ãã®VMãã·ã£ããããŠã³ããæ°ãããã¹ããèµ·åããŸãã
åæ§ã«ããã¹ãã£ã³ã°äºæ¥è ããèªå® ãžã®VMããã¯ã¢ããããŸã èŠãŠããŸãã ãããè¡ãããã«ãESXIã¯èªå® ã§å転ããŠãããããovftoolã¯ãããã¯ãŒã¯ãä»ããŠã®ã¿ãã€ããŒããéä¿¡ã§ããŸãã
ãã©ãŒã©ã 㯠ãæ¢åã®ããŒã¿ã®ã¿ã転éãããããã«ãã¹ããŒã¹ãªãã·ã§ã³ã䜿çšããŠãã¡ã€ã«ãNFSã«ã³ããŒããæ¹æ³ãããããã«æããããšæžããŠããŸããããŸã ããããŸããã
å¢åããã¯ã¢ãããè¡ãæ¹æ³ãèŠã€ãããŸããã§ããã
ããã¯ãã¹ãŠã³ã³ãœãŒã«ããæåã§è¡ããŸãããå¥ã®ãã¹ãã«è»¢éããŠæåã®ããã¯ã¢ãããäœæããŸãããæéã®çµéãšãšãã«ãã¹ãŠãã¯ã©ãŠã³ã§æ§æãããšæããŸãã ãã¶ããã¯ã©ãŠã³ã®èšå®æ¹æ³ã«é¢ããããã€ãã®æ®µèœãããã«è¿œå ããŸãã å ã®æé ã¯ãã¡ãïŒ 33hops.com/xsibackup-cron-how-to.html
ãããã£ãŠãåããµãŒããŒäžã«æåã®ã³ããŒãè¿ãã«ãããããªãè¿ éã«å埩ã§ããŸãã
2çªç®ã®ã³ããŒã¯èªå® ã«ãããŸããã€ãŸãã æšå¥šãããŠããããã«ãç©ççã«ç°ãªãå Žæã«ãããŸãã å埩ããã«ã¯ããããã¯ãŒã¯çµç±ã§ã¢ããããŒãããå¿ èŠããããŸãããããã¯ã¯ããã«é ãã§ãã ãããããããå¿ èŠã«ãªãå¯èœæ§ãéåžžã«äœãã§ãã
Ovftool
å®å šãªè±èªã®ããã¥ã¢ã«ã¯ãã¡ãã«ãããããããããŠã³ããŒãã§ããŸãã Ovftoolã¯ä»»æã®ã³ã³ãã¥ãŒã¿ãŒã«ã€ã³ã¹ããŒã«ã§ãããããããã€ããŒãã€ã¶ãŒãå¶åŸ¡ã§ããŸãã ãŸããESXIãã¹ãã«çŽæ¥é 眮ããããšãã§ããŸãããããã¯ãµããŒããããŠããæ©èœã§ã¯ãããŸããã
ESXiã«Ovftoolãã€ã³ã¹ããŒã«ãã
äžè¬ã«ãããã»ã¹ã¯æ¬¡ã®ãšããã§ããæåã«OvftoolãLinux x64ã«ã€ã³ã¹ããŒã«ããïŒUbuntu 16ã«ã€ã³ã¹ããŒã«ãããŸããïŒã次ã«ãã¡ã€ã«ãESXIãã¹ãã«è»¢éãããŸãã
æé ã¯æ¬¡ã®ãšããã§ãã
æé ã¯æ¬¡ã®ãšããã§ãã
- VMwareã«ç»é²ãããLinux 64ãããçšVMware OVFããŒã«ããããŠã³ããŒãããŸã
- Linuxã§ããŠã³ããŒããããã¡ã€ã«ãå®è¡ããçµæã®ãã¡ã€ã«ãESXIã«ã³ããŒããŸãã
sudo /bin/sh VMware-ovftool-4.1.0-2459827-lin.x86_64.bundle scp -r /usr/lib/vmware-ovftool/ root@esx.com:/vmfs/volumes/datastore1
- 次ã«ããã§ã«ãã¹ãèªäœã§ã1ã€ã®ãã¡ã€ã«ãç·šéããå¿
èŠããããŸã-/ vmfs / volumes / datastore1 / vmware-ovftool / ovftoolãããŠïŒïŒ/ Bin / bashãïŒïŒ/ Bin / shã«çœ®ãæããŸã
Ovftoolã¯ããããã¢ãŒãã§VMãã³ããŒããæ¹æ³ãç¥ããŸãããã€ãŸããä»®æ³ãã·ã³ããªãã«ããå¿ èŠããããŸãã ãããã£ãŠ-äžèšã®Xsibackupã®å¿ èŠæ§ã
Ovftoolã®ããã€ãã®æ©èœïŒ
- ãã¿ã¹ã¯ã¯ãŠãŒã¶ãŒã«ãã£ãŠãã£ã³ã»ã«ãããŸããããŸãã¯ããšã©ãŒïŒvim.fault.FileNotFoundããšãããšã©ãŒããããã¢ãã衚瀺ãããŠããŸããã äž¡æ¹ã®ãšã©ãŒã®çç±ã¯ãå ã®ãã·ã³ã®CDROMãã¿ãŒã²ãããã¹ãã«ãªãISOãæããŠããããã§ãã ãšã©ãŒã®ããã¹ããããããæšæž¬ããŠã¿ãŠãã ãã... CDROMããã€ã¹ãåãå€ãããšã§æ±ºå®ãããŸããïŒOSã®ã€ã³ã¹ããŒã«ã«ã®ã¿äœ¿çšãããŸããïŒã
- ç§èªèº«ã¯ãã¹ãããŠããŸããããovftoolã¯ã¹ãããã·ã§ãããä¿åããªãããã§ãã
ESXiã§å®è¡ããå Žåã«ã®ã¿ãOvftoolã®ããã€ãã®æ©èœãè¿œå ããŸãã
- ovftoolã¯ããŒã«ã«ã§å®è¡ãããŸããããã¹ããžã®ãã¹ã¯ããŠãŒã¶ãŒãšãã¹ã¯ãŒããšãšãã«å®å šã«æå®ããå¿ èŠããããŸãã
- ã³ã³ãœãŒã«ãããã¹ã¯ãŒãã察話圢åŒã§èªã¿åãããšã¯ã§ããŸããããã³ãã³ãã©ã€ã³ã§ãã©ã¡ãŒã¿ãŒãšããŠæž¡ãå¿ èŠããããŸãã
- ãã¹ã¯ãŒãã«ã¯ãæåãæ°åãããã³ã-ãã®ã¿ã䜿çšã§ããŸãã `ïŒ`ã®ãããªä»ã®æåã䜿çšããããšãããšã-ãã¹ã¯ãŒãã¯åãå ¥ããããŸããã§ããã
ovftoolã®äœ¿çšäŸïŒ
- ããŒã¿ã¹ãã¢ã«ç»é²ãããŠãããã¹ãŠã®ä»®æ³ãã·ã³ããªã¹ãããŸãã
ovftool -ds=datastore1 "vi://root:password@esx1.com/"
- ä»®æ³ãã·ã³ã®ã³ããŒïŒç»é²ããå¿
èŠããããŸãïŒïŒ
ovftool -ds=datastore1 -dm=thin "vi://root:password@esx1.com/vmName" "vi://root:password@esx2.com/"