VMware Consolidated Backup은 VMware에서 제공하는 가상머신 백업/복원 기능입니다. 이 VCB는 가상머신의 스냅숏 기능을 이용하여 백업을 하기 때문에, 기동중인 가상머신 전체를 백업할 수 있다는 장점이 있습니다만 VCB용 서버(VCB프록시)용으로 Windows Server 2003를 준비해야되고, 가상머신이 저장되어있는 SAN상의 LUN에 액세스가 가능해야 하는등 몇가지 전제 조건이 있습니다.
이 VCB는 vcbMounter 명령어를 이용하여 백업을 실행하는데 간단한 서식은 다음과 같습니다.
vmdk화일을 잘게 20개 이상으로 짤라놨더군요. --;
인터넷을 뒤져보니 기본 서식으로는 vmdk화일은 2GB씩 분할,압축을 한답니다. --;
이걸 방지하기 위해서는 export-flag를 지정해줘야 된답니다.
export-flag는 -M 0/1 (0:분할함 1:분할않함), -F 0/1 (0:압축함 1:압축않함)
이 VCB는 vcbMounter 명령어를 이용하여 백업을 실행하는데 간단한 서식은 다음과 같습니다.
vcbMounter -h <ESX Server호스트명> -u <유저명> -p <패스워드> -a ipaddr:<가상머신 어드레스> -r 백업용 디렉토리
위의 서식으로 가상머신을 백업해봤습니다.[root@mvs01 root]# vcbMounter -h localhost -u root -p xxxxxxx -a ipaddr:xxx.xxx.xxx.xxx -r /tmp/centos
[2009-05-08 14:35:07.020 'App' 3076461376 info] Current working directory: /root
Copying "[NFS] CentOS 5.3/CentOS 5.3.vmx":
0%=====================50%=====================100%
**************************************************
Copying "[NFS] CentOS 5.3/CentOS 5.3.nvram":
0%=====================50%=====================100%
**************************************************
Copying "[NFS] CentOS 5.3/vmware-9.log":
0%=====================50%=====================100%
**************************************************
Copying "[NFS] CentOS 5.3/vmware-5.log":
0%=====================50%=====================100%
**************************************************
Copying "[NFS] CentOS 5.3/vmware-10.log":
0%=====================50%=====================100%
**************************************************
Copying "[NFS] CentOS 5.3/vmware-6.log":
0%=====================50%=====================100%
**************************************************
Copying "[NFS] CentOS 5.3/vmware-8.log":
0%=====================50%=====================100%
**************************************************
Copying "[NFS] CentOS 5.3/vmware.log":
0%=====================50%=====================100%
**************************************************
Copying "[NFS] CentOS 5.3/vmware-7.log":
0%=====================50%=====================100%
**************************************************
Converting "/tmp/centos/scsi0-0-0-CentOS 5.3.vmdk" (compact file):
0%=====================50%=====================100%
**************************************************
[root@mvs01 root]# cd /tmp/
[root@mvs01 tmp]# ls
centos hsperfdata_root ssh-ZKo28816
cimserver_start.conf ssh-kQQ12240 vmhsdaemon-0
cimxml.socket ssh-lQc22048 vmware-root
[root@mvs01 tmp]# cd centos/
[root@mvs01 centos]# ls -al
total 3314448
drwxr-xr-x 2 root root 4096 May 8 15:45 .
drwxrwxrwt 10 root root 4096 May 8 15:47 ..
-rw-r--r-- 1 root root 861 May 8 14:35 catalog
-rw------- 1 root root 8684 May 8 14:35 CentOS 5.3.nvram
-rw------- 1 root root 2221 May 8 14:35 CentOS 5.3.vmx
-rw------- 1 root root 1612251136 May 8 15:45 scsi0-0-0-CentOS 5.3-s001.vmdk
-rw------- 1 root root 928579584 May 8 15:45 scsi0-0-0-CentOS 5.3-s002.vmdk
-rw------- 1 root root 209256448 May 8 15:45 scsi0-0-0-CentOS 5.3-s003.vmdk
-rw------- 1 root root 5308416 May 8 15:45 scsi0-0-0-CentOS 5.3-s004.vmdk
-rw------- 1 root root 5570560 May 8 15:45 scsi0-0-0-CentOS 5.3-s005.vmdk
-rw------- 1 root root 4784128 May 8 15:45 scsi0-0-0-CentOS 5.3-s006.vmdk
-rw------- 1 root root 5570560 May 8 15:45 scsi0-0-0-CentOS 5.3-s007.vmdk
-rw------- 1 root root 6094848 May 8 15:45 scsi0-0-0-CentOS 5.3-s008.vmdk
-rw------- 1 root root 395902976 May 8 15:45 scsi0-0-0-CentOS 5.3-s009.vmdk
-rw------- 1 root root 5308416 May 8 15:45 scsi0-0-0-CentOS 5.3-s010.vmdk
-rw------- 1 root root 4521984 May 8 15:45 scsi0-0-0-CentOS 5.3-s011.vmdk
-rw------- 1 root root 4521984 May 8 15:45 scsi0-0-0-CentOS 5.3-s012.vmdk
-rw------- 1 root root 5046272 May 8 15:45 scsi0-0-0-CentOS 5.3-s013.vmdk
-rw------- 1 root root 5570560 May 8 15:45 scsi0-0-0-CentOS 5.3-s014.vmdk
-rw------- 1 root root 6094848 May 8 15:45 scsi0-0-0-CentOS 5.3-s015.vmdk
-rw------- 1 root root 5308416 May 8 15:45 scsi0-0-0-CentOS 5.3-s016.vmdk
-rw------- 1 root root 59310080 May 8 15:45 scsi0-0-0-CentOS 5.3-s017.vmdk
-rw------- 1 root root 115408896 May 8 15:45 scsi0-0-0-CentOS 5.3-s018.vmdk
-rw------- 1 root root 4521984 May 8 15:45 scsi0-0-0-CentOS 5.3-s019.vmdk
-rw------- 1 root root 2424832 May 8 15:45 scsi0-0-0-CentOS 5.3-s020.vmdk
-rw------- 1 root root 65536 May 8 15:45 scsi0-0-0-CentOS 5.3-s021.vmdk
-rw------- 1 root root 1448 May 8 15:45 scsi0-0-0-CentOS 5.3.vmdk
-rw-r--r-- 1 root root 58 May 8 15:45 unmount.dat
-rw------- 1 root root 25238 May 8 14:35 vmware-10.log
-rw------- 1 root root 27037 May 8 14:35 vmware-5.log
-rw------- 1 root root 35380 May 8 14:35 vmware-6.log
-rw------- 1 root root 27527 May 8 14:35 vmware-7.log
-rw------- 1 root root 34018 May 8 14:35 vmware-8.log
-rw------- 1 root root 23399 May 8 14:35 vmware-9.log
-rw------- 1 root root 94259 May 8 14:35 vmware.log
백업을 하고 났더니... 허걱...[2009-05-08 14:35:07.020 'App' 3076461376 info] Current working directory: /root
Copying "[NFS] CentOS 5.3/CentOS 5.3.vmx":
0%=====================50%=====================100%
**************************************************
Copying "[NFS] CentOS 5.3/CentOS 5.3.nvram":
0%=====================50%=====================100%
**************************************************
Copying "[NFS] CentOS 5.3/vmware-9.log":
0%=====================50%=====================100%
**************************************************
Copying "[NFS] CentOS 5.3/vmware-5.log":
0%=====================50%=====================100%
**************************************************
Copying "[NFS] CentOS 5.3/vmware-10.log":
0%=====================50%=====================100%
**************************************************
Copying "[NFS] CentOS 5.3/vmware-6.log":
0%=====================50%=====================100%
**************************************************
Copying "[NFS] CentOS 5.3/vmware-8.log":
0%=====================50%=====================100%
**************************************************
Copying "[NFS] CentOS 5.3/vmware.log":
0%=====================50%=====================100%
**************************************************
Copying "[NFS] CentOS 5.3/vmware-7.log":
0%=====================50%=====================100%
**************************************************
Converting "/tmp/centos/scsi0-0-0-CentOS 5.3.vmdk" (compact file):
0%=====================50%=====================100%
**************************************************
[root@mvs01 root]# cd /tmp/
[root@mvs01 tmp]# ls
centos hsperfdata_root ssh-ZKo28816
cimserver_start.conf ssh-kQQ12240 vmhsdaemon-0
cimxml.socket ssh-lQc22048 vmware-root
[root@mvs01 tmp]# cd centos/
[root@mvs01 centos]# ls -al
total 3314448
drwxr-xr-x 2 root root 4096 May 8 15:45 .
drwxrwxrwt 10 root root 4096 May 8 15:47 ..
-rw-r--r-- 1 root root 861 May 8 14:35 catalog
-rw------- 1 root root 8684 May 8 14:35 CentOS 5.3.nvram
-rw------- 1 root root 2221 May 8 14:35 CentOS 5.3.vmx
-rw------- 1 root root 1612251136 May 8 15:45 scsi0-0-0-CentOS 5.3-s001.vmdk
-rw------- 1 root root 928579584 May 8 15:45 scsi0-0-0-CentOS 5.3-s002.vmdk
-rw------- 1 root root 209256448 May 8 15:45 scsi0-0-0-CentOS 5.3-s003.vmdk
-rw------- 1 root root 5308416 May 8 15:45 scsi0-0-0-CentOS 5.3-s004.vmdk
-rw------- 1 root root 5570560 May 8 15:45 scsi0-0-0-CentOS 5.3-s005.vmdk
-rw------- 1 root root 4784128 May 8 15:45 scsi0-0-0-CentOS 5.3-s006.vmdk
-rw------- 1 root root 5570560 May 8 15:45 scsi0-0-0-CentOS 5.3-s007.vmdk
-rw------- 1 root root 6094848 May 8 15:45 scsi0-0-0-CentOS 5.3-s008.vmdk
-rw------- 1 root root 395902976 May 8 15:45 scsi0-0-0-CentOS 5.3-s009.vmdk
-rw------- 1 root root 5308416 May 8 15:45 scsi0-0-0-CentOS 5.3-s010.vmdk
-rw------- 1 root root 4521984 May 8 15:45 scsi0-0-0-CentOS 5.3-s011.vmdk
-rw------- 1 root root 4521984 May 8 15:45 scsi0-0-0-CentOS 5.3-s012.vmdk
-rw------- 1 root root 5046272 May 8 15:45 scsi0-0-0-CentOS 5.3-s013.vmdk
-rw------- 1 root root 5570560 May 8 15:45 scsi0-0-0-CentOS 5.3-s014.vmdk
-rw------- 1 root root 6094848 May 8 15:45 scsi0-0-0-CentOS 5.3-s015.vmdk
-rw------- 1 root root 5308416 May 8 15:45 scsi0-0-0-CentOS 5.3-s016.vmdk
-rw------- 1 root root 59310080 May 8 15:45 scsi0-0-0-CentOS 5.3-s017.vmdk
-rw------- 1 root root 115408896 May 8 15:45 scsi0-0-0-CentOS 5.3-s018.vmdk
-rw------- 1 root root 4521984 May 8 15:45 scsi0-0-0-CentOS 5.3-s019.vmdk
-rw------- 1 root root 2424832 May 8 15:45 scsi0-0-0-CentOS 5.3-s020.vmdk
-rw------- 1 root root 65536 May 8 15:45 scsi0-0-0-CentOS 5.3-s021.vmdk
-rw------- 1 root root 1448 May 8 15:45 scsi0-0-0-CentOS 5.3.vmdk
-rw-r--r-- 1 root root 58 May 8 15:45 unmount.dat
-rw------- 1 root root 25238 May 8 14:35 vmware-10.log
-rw------- 1 root root 27037 May 8 14:35 vmware-5.log
-rw------- 1 root root 35380 May 8 14:35 vmware-6.log
-rw------- 1 root root 27527 May 8 14:35 vmware-7.log
-rw------- 1 root root 34018 May 8 14:35 vmware-8.log
-rw------- 1 root root 23399 May 8 14:35 vmware-9.log
-rw------- 1 root root 94259 May 8 14:35 vmware.log
vmdk화일을 잘게 20개 이상으로 짤라놨더군요. --;
인터넷을 뒤져보니 기본 서식으로는 vmdk화일은 2GB씩 분할,압축을 한답니다. --;
이걸 방지하기 위해서는 export-flag를 지정해줘야 된답니다.
export-flag는 -M 0/1 (0:분할함 1:분할않함), -F 0/1 (0:압축함 1:압축않함)
[root@mvs01 tmp]# vcbMounter -h localhost -u root -p -p xxxxxxx -a ipaddr:xxx.xxx.xxx.xxx -r /tmp/centos2 -M 1 -F 1
[2009-05-08 15:57:10.312 'App' 3076436800 info] Current working directory: /tmp
Copying "[NFS] CentOS 5.3/CentOS 5.3.vmx":
0%=====================50%=====================100%
**************************************************
Copying "[NFS] CentOS 5.3/CentOS 5.3.nvram":
0%=====================50%=====================100%
**************************************************
Copying "[NFS] CentOS 5.3/vmware-9.log":
0%=====================50%=====================100%
**************************************************
Copying "[NFS] CentOS 5.3/vmware-5.log":
0%=====================50%=====================100%
**************************************************
Copying "[NFS] CentOS 5.3/vmware-10.log":
0%=====================50%=====================100%
**************************************************
Copying "[NFS] CentOS 5.3/vmware-6.log":
0%=====================50%=====================100%
**************************************************
Copying "[NFS] CentOS 5.3/vmware-8.log":
0%=====================50%=====================100%
**************************************************
Copying "[NFS] CentOS 5.3/vmware.log":
0%=====================50%=====================100%
**************************************************
Copying "[NFS] CentOS 5.3/vmware-7.log":
0%=====================50%=====================100%
**************************************************
Converting "/vmfs/volumes/mvs01:storage1/centos2/scsi0-0-0-CentOS 5.3.vmdk" (flat file):
0%=====================50%=====================100%
**************************************************
[root@mvs01 tmp]# cd /tmp/centos2/
[root@mvs01 centos2]# ls
catalog unmount.dat vmware-8.log
CentOS 5.3.nvram vmware-10.log vmware-9.log
CentOS 5.3.vmx vmware-5.log vmware.log
scsi0-0-0-CentOS 5.3-flat.vmdk vmware-6.log
scsi0-0-0-CentOS 5.3.vmdk vmware-7.log
[root@mvs01 centos2]# ls -al
total 41945856
drwxr-xr-x 1 root root 2100 May 8 17:40 .
drwxr-xr-t 1 root root 1120 May 8 15:57 ..
-rw-r--r-- 1 root root 862 May 8 15:57 catalog
-rw------- 1 root root 8684 May 8 15:57 CentOS 5.3.nvram
-rw------- 1 root root 2221 May 8 15:57 CentOS 5.3.vmx
-rw------- 1 root root 42949672960 May 8 17:40 scsi0-0-0-CentOS 5.3-flat.vmdk
-rw------- 1 root root 425 May 8 17:40 scsi0-0-0-CentOS 5.3.vmdk
-rw-r--r-- 1 root root 58 May 8 17:40 unmount.dat
-rw------- 1 root root 25238 May 8 15:57 vmware-10.log
-rw------- 1 root root 27037 May 8 15:57 vmware-5.log
-rw------- 1 root root 35380 May 8 15:57 vmware-6.log
-rw------- 1 root root 27527 May 8 15:57 vmware-7.log
-rw------- 1 root root 34018 May 8 15:57 vmware-8.log
-rw------- 1 root root 23399 May 8 15:57 vmware-9.log
-rw------- 1 root root 96438 May 8 15:57 vmware.log
흐흐... 역시 매뉴얼이나 help는 제대로 봐야되겠네요...[2009-05-08 15:57:10.312 'App' 3076436800 info] Current working directory: /tmp
Copying "[NFS] CentOS 5.3/CentOS 5.3.vmx":
0%=====================50%=====================100%
**************************************************
Copying "[NFS] CentOS 5.3/CentOS 5.3.nvram":
0%=====================50%=====================100%
**************************************************
Copying "[NFS] CentOS 5.3/vmware-9.log":
0%=====================50%=====================100%
**************************************************
Copying "[NFS] CentOS 5.3/vmware-5.log":
0%=====================50%=====================100%
**************************************************
Copying "[NFS] CentOS 5.3/vmware-10.log":
0%=====================50%=====================100%
**************************************************
Copying "[NFS] CentOS 5.3/vmware-6.log":
0%=====================50%=====================100%
**************************************************
Copying "[NFS] CentOS 5.3/vmware-8.log":
0%=====================50%=====================100%
**************************************************
Copying "[NFS] CentOS 5.3/vmware.log":
0%=====================50%=====================100%
**************************************************
Copying "[NFS] CentOS 5.3/vmware-7.log":
0%=====================50%=====================100%
**************************************************
Converting "/vmfs/volumes/mvs01:storage1/centos2/scsi0-0-0-CentOS 5.3.vmdk" (flat file):
0%=====================50%=====================100%
**************************************************
[root@mvs01 tmp]# cd /tmp/centos2/
[root@mvs01 centos2]# ls
catalog unmount.dat vmware-8.log
CentOS 5.3.nvram vmware-10.log vmware-9.log
CentOS 5.3.vmx vmware-5.log vmware.log
scsi0-0-0-CentOS 5.3-flat.vmdk vmware-6.log
scsi0-0-0-CentOS 5.3.vmdk vmware-7.log
[root@mvs01 centos2]# ls -al
total 41945856
drwxr-xr-x 1 root root 2100 May 8 17:40 .
drwxr-xr-t 1 root root 1120 May 8 15:57 ..
-rw-r--r-- 1 root root 862 May 8 15:57 catalog
-rw------- 1 root root 8684 May 8 15:57 CentOS 5.3.nvram
-rw------- 1 root root 2221 May 8 15:57 CentOS 5.3.vmx
-rw------- 1 root root 42949672960 May 8 17:40 scsi0-0-0-CentOS 5.3-flat.vmdk
-rw------- 1 root root 425 May 8 17:40 scsi0-0-0-CentOS 5.3.vmdk
-rw-r--r-- 1 root root 58 May 8 17:40 unmount.dat
-rw------- 1 root root 25238 May 8 15:57 vmware-10.log
-rw------- 1 root root 27037 May 8 15:57 vmware-5.log
-rw------- 1 root root 35380 May 8 15:57 vmware-6.log
-rw------- 1 root root 27527 May 8 15:57 vmware-7.log
-rw------- 1 root root 34018 May 8 15:57 vmware-8.log
-rw------- 1 root root 23399 May 8 15:57 vmware-9.log
-rw------- 1 root root 96438 May 8 15:57 vmware.log
'virtualization > VMware' 카테고리의 다른 글
VMware vSphere 4.0 평가판 제공개시 (0) | 2009.05.29 |
---|---|
VMware vSphere 4 (3) (0) | 2009.05.16 |
VMware vSphere 4 (2) (0) | 2009.05.14 |
VMware vSphere 4 (1) (0) | 2009.05.13 |
vSphere 4가 드디어 공개되다!! (0) | 2009.04.22 |
VMware Server 2.0 상에서 ESX Server 인스톨하기 (0) | 2009.04.19 |
VMware 가상머신의 구성화일에 대해서 (0) | 2009.04.17 |
vSphere 4.0가 4월 21일 공개(?) (0) | 2009.04.03 |