GhettoVCB 上的本地存储

GhettoVCB 上的本地存储

尝试在 ESXI 5.0 主机上运行 GhettoVCB 作为测试。这是我的配置

VM_BACKUP_VOLUME=/Datastore1/BACKUPS
DISK_BACKUP_FORMAT=thin
VM_BACKUP_ROTATION_COUNT=3
POWER_VM_DOWN_BEFORE_BACKUP=0
ENABLE_HARD_POWER_OFF=0
ITER_TO_WAIT_SHUTDOWN=3
POWER_DOWN_TIMEOUT=5
ENABLE_COMPRESSION=0
VM_SNAPSHOT_MEMORY=0
VM_SNAPSHOT_QUIESCE=0
ENABLE_NON_PERSISTENT_NFS=0
UNMOUNT_NFS=0
NFS_SERVER=
NFS_MOUNT=
NFS_LOCAL_NAME=
NFS_VM_BACKUP_DIR=
SNAPSHOT_TIMEOUT=15
EMAIL_LOG=0
EMAIL_DEBUG=0
EMAIL_SERVER=auroa.primp-industries.com
EMAIL_SERVER_PORT=25
EMAIL_DELAY_INTERVAL=1
[email protected]

我尝试在本地运行这个程序,但每次运行它都提示找不到数据存储。我确信我在这里做错了什么,有什么想法吗?这是调试输出。

 ============================== ghettoVCB LOG START ==============================

2012-10-11 02:25:52 -- debug: Succesfully acquired lock directory - /tmp/ghettoVCB.lock

2012-10-11 02:25:52 -- debug: HOST VERSION: VMware ESXi 5.0.0 build-623860
2012-10-11 02:25:52 -- debug: HOST LEVEL: VMware ESXi 5.0.0 Update 1
2012-10-11 02:25:52 -- debug: HOSTNAME: vm5.smarterdedicatedserver.com

2012-10-11 02:25:52 -- info: CONFIG - VERSION = 2011_11_19_1
2012-10-11 02:25:52 -- info: CONFIG - GHETTOVCB_PID = 1087454
2012-10-11 02:25:52 -- info: CONFIG - VM_BACKUP_VOLUME = /vmfs/volumes/dlgCore-NFS-bigboi.VM-Backups/WILLIAM_BACKUPS
2012-10-11 02:25:52 -- info: CONFIG - VM_BACKUP_ROTATION_COUNT = 3
2012-10-11 02:25:52 -- info: CONFIG - VM_BACKUP_DIR_NAMING_CONVENTION = 2012-10-11_02-25-52
2012-10-11 02:25:52 -- info: CONFIG - DISK_BACKUP_FORMAT = thin
2012-10-11 02:25:52 -- info: CONFIG - POWER_VM_DOWN_BEFORE_BACKUP = 0
2012-10-11 02:25:52 -- info: CONFIG - ENABLE_HARD_POWER_OFF = 0
2012-10-11 02:25:52 -- info: CONFIG - ITER_TO_WAIT_SHUTDOWN = 3
2012-10-11 02:25:52 -- info: CONFIG - POWER_DOWN_TIMEOUT = 5
2012-10-11 02:25:52 -- info: CONFIG - SNAPSHOT_TIMEOUT = 15
2012-10-11 02:25:52 -- info: CONFIG - LOG_LEVEL = debug
2012-10-11 02:25:52 -- info: CONFIG - BACKUP_LOG_OUTPUT = /tmp/ghettoVCB-2012-10-11_02-25-52.log
2012-10-11 02:25:52 -- info: CONFIG - VM_SNAPSHOT_MEMORY = 0
2012-10-11 02:25:52 -- info: CONFIG - VM_SNAPSHOT_QUIESCE = 0
2012-10-11 02:25:52 -- info: CONFIG - VMDK_FILES_TO_BACKUP = all
2012-10-11 02:25:52 -- info: CONFIG - EMAIL_LOG = 0
2012-10-11 02:25:52 -- info:
Datastore not found.

Datastore not found.

Datastore not found.

2012-10-11 02:25:54 -- debug: Storage Information before backup:
2012-10-11 02:25:54 -- debug: SRC_DATASTORE: datastore1
2012-10-11 02:25:54 -- debug: SRC_DATASTORE_CAPACITY: 1858.0 GB
2012-10-11 02:25:54 -- debug: SRC_DATASTORE_FREE: 1415.5 GB
2012-10-11 02:25:54 -- debug: SRC_DATASTORE_BLOCKSIZE: 1
2012-10-11 02:25:54 -- debug: SRC_DATASTORE_MAX_FILE_SIZE: 256 GB
2012-10-11 02:25:54 -- debug:
2012-10-11 02:25:54 -- debug: DST_DATASTORE: dlgCore-NFS-bigboi.VM-Backups
2012-10-11 02:25:54 -- debug: DST_DATASTORE_CAPACITY: 0.0 GB
2012-10-11 02:25:54 -- debug: DST_DATASTORE_FREE: 0.0 GB
2012-10-11 02:25:54 -- debug: DST_DATASTORE_BLOCKSIZE: NA
2012-10-11 02:25:54 -- debug: DST_DATASTORE_MAX_FILE_SIZE: NA
2012-10-11 02:25:54 -- debug:
2012-10-11 02:25:54 -- info: Snapshot found for VM1-680, backup will not take place

2012-10-11 02:25:54 -- info: ###### Final status: ERROR: All VMs failed! ######

2012-10-11 02:25:54 -- debug: Succesfully removed lock directory - /tmp/ghettoVCB.lock

也不知道从哪里获得 dlgCore-NFS-bigboi.VM-Backups 作为 DST_DATASTORE,一定是默认的,任何帮助都将非常有用!

答案1

是的,dlgCore-NFS-bigboi.VM-Backups 是 ghettoVCB.sh 本身的默认设置。尝试在 ghettoVCB 命令中使用-g ghettoVCB.conf或任何配置文件路径指定您的配置文件。

答案2

要解决此问题,您需要直接进入 ghettoVCB 文件本身并修改目标数据存储。最初我以为所有配置都在 .conf 文件中完成,但显然并非如此。

答案3

@Al Katawazi。hwilbanks 给出了正确的答案。您不需要修改 sh 文件,而是需要在发出备份命令时提供 conf 文件作为参数,例如

./ghettoVCB.sh -f backup_vm -g ghettoVCB.conf

backup_vm包含要备份的虚拟机列表的文件在哪里,以及gettoVCB.conf包含所有配置的文件在哪里。

相关内容