Chinaunix首页 | 论坛 | 博客
  • 博客访问: 475656
  • 博文数量: 132
  • 博客积分: 2995
  • 博客等级: 少校
  • 技术积分: 1412
  • 用 户 组: 普通用户
  • 注册时间: 2007-03-06 20:14
文章分类

全部博文(132)

文章存档

2010年(2)

2008年(21)

2007年(109)

我的朋友

分类:

2008-09-18 08:54:56

eg: C:\Program Files\VMware\VMware Consolidated Backup Framework>vcbmounter -h hostname -u root -p xxx -a ipaddr: x.x.x.x -r d:\backup\vcb\die -t fullvm -m nbd
 
Note:
  • you do not need to purchase additional licences for VCB to use this function.
  • you do not need to run these commands from a VCB Proxy Server.
  • you do not need a Windows host or alternate physical host to run these commands.
  • you do not need to install any additional software in the COS to use these commands.
  • you do not need to have backup software installed in order to use these functions.
  • you do need to run these commands from the console or from an SSH session on the ESX host.
  • if you have a VC server, use the VC server for the vcbMounter and vcbRestore -h/-p options, not the ESX host that the VM is running on.
vcbVmName
  1. Provides details of each VM that is running on the ESX host (or VC server, depending on which parameter you provide  for the -h option).
  2. You need to use one of these parameters for the -a option in the vcbMounter command line.
vcbMounter
  1. takes a snapshot of the VM specified, and by default, creates a folder with a catalog file and all of the VM files (within the directory specified, must not exist already), also by default will split the VMs flat files into 2gb chunks
vcbRestore
  1. Restores the VM to either the ESX host or the VC from which it was running.
  2. You must use the information from the VC server to restore using the vcbMounter command if the host is registered to a VC server (for example, if the host is connected to a VC server, even though you want to restore it to a specific host you will still need to provide the -h/-p for the VC server).  To determine if a host is connected to a VC server, type "service vmware-vpxa status, if this service is running then the ESX host has been added to a VC server.

Note: Following are working examples and explanations of how to use these commands:

In this example, the following parameters are being passed by these commands:
  • Virtual Center IP Address: 10.0.0.2
  • Username for VC: Administrator
  • Password for VC server: passw0rd
  • Path to backup the VM to: /vmfs/volumes/LUN-1/testVCB/testVCB
Note: The /vmfs/volumes/LUN-1/testVCB path already exists, but the vcbMounter command will fail if the final /testVCB directory already exists.
 
vcbVmName -h 10.0.0.2 -u Administrator -p passw0rd -s
  1. This command will give you the information needed to backup the VM, you can pull more from it or the ipaddr, if vmware tools has been installed in the guest.
  2. Use grep to pull the VM name from the list.
vcbMounter -h 10.0.0.2 -u Administrator -p passw0rd -a moref:vm-1000 -r /vmfs/volumes/LUN-1/testVCB/testVCB -t fullvm -L 6
  1. This command provides the information for the VC servers' username and password, uses the moref from the vcbVmName command used above, tells it to backup the fullvm, tells it which path to backup to, and logs the output information at the highest level possible.
vcbRestore -h 10.0.0.2 -u Administrator -p passw0rd -s /vmfs/volumes/LUN-1/testVCB/testVCB -b prompt
  1. This command uses the information passed to it from the catalog file for the VM from the vcbMounter directory that was created during the restore
  2. You can modify the catalog file to reflect an alternate location to restore the VM (for example, if you created the VM backup on an ESX host, but that host is now part of a VC cluster, you can restore it to the cluster by modifing the catalog file).
  3. You can use a plain text editor (vi, nano) to modify the catalog file.
  4. If you are restoring to a host that is part of a VC cluster, you must restore to the VC server by using the VC server for the -h/-p options.
vcbUtils
  1. If you need to modify the catalog file prior to restoring the VM then you can pass the VC -h/-p to this and obtain the information that you will need to use to modify the catalog file.
阅读(1012) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~