ghettoVCB issue

5

Eu configurei um script ghettoVCB para fazer backup de três VMs.

Eu coloquei em um crontab, mas eu tenho um problema.

Na minha pasta de backup, tenho três pastas diferentes, uma para cada VM.

Em cada pasta eu tenho os seguintes arquivos:

-rw-r--r-- 1 root root 1263 Mar 17 01:51 vm1-2010-03-16--2.gz
-rw-r--r-- 1 root root 1263 Mar 17 00:41 vm1-2010-03-16--3.gz
-rw-r--r-- 1 root root 1261 Mar 18 01:22 vm1-2010-03-17--1.gz
drwxr-xr-x 1 root root 980 Mar 19 23:39 vm1-2010-03-19

O problema é a última pasta. Parece que um backup não terminou o processo.

Quando leio os registros referentes a essa pasta, obtenho:

2010-03-19 23:00:01 -- info: CONFIG - VM_BACKUP_VOLUME = /vmfs/volumes/datastore1/backup/
2010-03-19 23:00:01 -- info: CONFIG - VM_BACKUP_ROTATION_COUNT = 3
2010-03-19 23:00:01 -- info: CONFIG - DISK_BACKUP_FORMAT = zeroedthick
2010-03-19 23:00:01 -- info: CONFIG - ADAPTER_FORMAT = buslogic
2010-03-19 23:00:01 -- info: CONFIG - POWER_VM_DOWN_BEFORE_BACKUP = 0
2010-03-19 23:00:01 -- info: CONFIG - ENABLE_HARD_POWER_OFF = 0
2010-03-19 23:00:01 -- info: CONFIG - ITER_TO_WAIT_SHUTDOWN = 3
2010-03-19 23:00:01 -- info: CONFIG - POWER_DOWN_TIMEOUT = 5
2010-03-19 23:00:01 -- info: CONFIG - SNAPSHOT_TIMEOUT = 15
2010-03-19 23:00:01 -- info: CONFIG - LOG_LEVEL = info
2010-03-19 23:00:01 -- info: CONFIG - BACKUP_LOG_OUTPUT = stdout
2010-03-19 23:00:01 -- info: CONFIG - VM_SNAPSHOT_MEMORY = 0
2010-03-19 23:00:01 -- info: CONFIG - VM_SNAPSHOT_QUIESCE = 0
2010-03-19 23:00:01 -- info: CONFIG - VMDK_FILES_TO_BACKUP = all

http://...

2010-03-19 23:39:35 -- info: Initiate backup for vm1
2010-03-19 23:39:35 -- info: Creating Snapshot "ghettoVCB-snapshot-2010-03-19" for vm1

Destination disk format: VMFS zeroedthick
Cloning disk '/vmfs/volumes/datastore1/vm1/vm1_1.vmdk'...
^MClone: 0% done.^MClone: 1% done.^MClone: 2% done.^MClone: 3% done.^MClone: 4% done.^MClone: 5% done.^MClone: 6% done.^MClone: 7% done.^MClone: 8% done.^MClone: 9% done.^MClone
Failed to clone disk : The file already exists (39).
Destination disk format: VMFS zeroedthick
Cloning disk '/vmfs/volumes/datastore1/vm1/vm1.vmdk'...
2010-03-20 00:46:20 -- info: Removing snapshot from vm1 ...
one: 7% done.^MClone: 8% done.^MClone: 9% done.^MClone: 10% done.^MClone: 11% done.^MClone: 12% done.^MClone: 13% done.^MClone: 14% done.^MClone: 15% done.^MClone: 16% done.^MCl
2010-03-19 23:51:19 -- info: Removing snapshot from vm1 ...

Não consigo mais executar o ghettoVCB porque a VM tem um instantâneo que não foi excluído. Eu sei como excluir o instantâneo, mas não sei por que o script do VCB não é capaz de lidar com a rotação dos backups de VMs?

Alguma idéia?

Obrigado!

    
por Marko 22.03.2010 / 13:07

1 resposta

2

Considere as Perguntas frequentes sobre Cronjob aqui :

i qoute:

Important Note: Always redirect the ghettoVCB output to /dev/null and/or to a log when automating via cron [...] may cause ghettoVCB to stop in the middle of a backup.

This primarily only affects users on ESXi, but it is good practice to always redirect the output.

Espero que ajude.

    
por 28.11.2012 / 16:06