VMware Consolidated Backup(VCB)的使用

 

VMware Consolidated Backup(VCB)的使用(一)
VMware Consolidated Backup是VMware为VMware Virtual Infrastructure新推出的一款备份工具,操作简便、功能强大,但代价不菲,需要ESX和VCB Proxy同时连接到共享存储SAN!(在写本文时实验环境是直连的SCSI盘柜,可简单看做SAN。NFS、ISCSI未经测试)
拓扑结构:
实验环境:ESX Server 3.0与VCB Proxy均为两台IBM X345服务器,1G RAM、36G HD、板载Intel双千兆网卡,连接到了一台Edins 3000 的SCSI盘柜上(RAID 5,容量只有200G,全部被ESX格式化成VMFS 3.0)
ESX服务器IP地址为192.168.19.124,在Edins 3000存储上随意安装了一台Windows 2003的虚拟机,装好VMware tools,ip地址192.168.20.101(就备份它了)
VCB Proxy安装Windows Server 2003企业版,ip地址192.168.19.247
ESX Server能完全管理到Edins 3000上的全部磁盘空间,Windows 2003的磁盘管理器只能显示出该磁盘,但无法有效管理。
1.首先在VCB Proxy上安装VMware Consolidated Backup,下载地址请自行搜索:-)
2.进入VCB Proxy命令行下,输入
C:\Program Files\VMware\VMware Consolidated Backup Framework>vcbMounter.exe -h 192.168.19.124 -u root -p 密码 -a ipaddr:192.168.20.101 -r e:\back -t fullvm -m san                                             
参数大概意思是需备份的ESX Server为192.168.19.124,使用root用户和其密码,预备份虚拟机Guest OS的ip为192.168.20.101,备份到e盘的back文件夹里,模式为全备份
其他参数可以运行 vcbMounter.exe 得到详细的说明
此时虚拟机可以是开机状态
以下为输出结果:
[2006-09-15 10:40:08.750 'App' 3800 info] Current working directory: C:\ProgramFiles\VMware\VMware Consolidated Backup Framework                                                                                                                                   
[2006-09-15 10:40:09.328 'BaseLibs' 4016 warning] [Vmdb_Unset] Unsetting unknown path: /vmomi/                     
Copying "[Edi3000] /win2k3/win2k3.vmx":                                                                                                     
        0%=====================50%=====================100%                                                       
        **************************************************                                                          
Copying "[Edi3000] /win2k3/win2k3.nvram":                                                                                                  
        0%=====================50%=====================100%                                                      
        **************************************************                                                         
Copying "[Edi3000] /win2k3//vmware-1.log":                                                                                                 
        0%=====================50%=====================100%                                                      
        **************************************************                                                         
Copying "[Edi3000] /win2k3//vmware.log":                                                                                                    
        0%=====================50%=====================100%                                                      
        **************************************************                                                         
[2006-09-15 10:40:17.062 'BaseLibs' 4016 warning] [Vmdb_Unset] Unsetting unknown path: /vmomi/                     
Converting "e:\back\scsi0-0-0-win2k3.vmdk" (compact file):                                                                           
        0%=====================50%=====================100%                                                       
        **************************************************                                                         
[2006-09-15 10:42:11.078 'BlockList' 3800 warning] Could not log out                                                               
C:\Program Files\VMware\VMware Consolidated Backup Framework>                                                                  
3.查看E:\back,证实备份成功。
VMware Consolidated Backup(VCB)的使用(二)
本文接 上篇
首先用 WinSCP3,把VCB Proxy的E:\back\文件夹里的内容都拷贝到ESX Server /tmp/back下
开始搞破坏喽-__-
首先请先关掉你正在运行的那台虚拟机,用VMware Virtual Infrastructure Client登录到ESX,删除与该虚拟机有关的所有文件!!模拟出来的灾难够严重的了吧:-)
如果此时尝试开启虚拟机,会得到错误提示:A general system error occured: Internal error
现在在Windows下使用 putty远程管理ESX,或者直接在ESX本地操作Service Console
输入:
[root@a2 /]# vcbRestore -h 127.0.0.1 -u root -p 密码 -s /tmp/back -b overwrite
注意vcbRestore的大小写
输出结果:
[2006-09-15 08:32:12.030 'App' 3076444288 info] Current working directory: /                                  
[2006-09-15 08:32:12.362 'BaseLibs' 4586416 warning] [Vmdb_Unset] Unsetting unknown path: /vmomi/
Converting "/vmfs/volumes/Edi3000//win2k3/win2k3.vmdk" (VMFS (flat)):                                          
        0%=====================50%=====================100%                                     
        **************************************************                                        
[root@a2 /]#                                                                                                                         

再尝试启动虚拟机,无报错,进入系统后查看无异常,恢复成功!

你可能感兴趣的:(vmware,职场,休闲,vcb)