Comments (9)
Confirm - I have same error
from ghettovcb.
I have the same problem; interestingly, it seems to have popped up only after upgrading to 6.5.
from ghettovcb.
Which Storage adapter are you using? It seems like there may have been some depreciation which is what the snapshot creation error is returning
from ghettovcb.
Thanks for the quick response, William. I have VMs with LSI Logic Parallel and VMware Paravirtual adapters. Is either of them deprecated ?
from ghettovcb.
Isn't that some kind of script error because there are these "sh: missing ]] sh: bad number" listed in the end of log texts. Version change may have something to do with that too.
from ghettovcb.
OK. I just quickly pulled down the latest version of the script and I see where the error is coming from and I also ran into few other minor issues. dd74e93 should address it and I've added 6.5 support (only did light validation)
Below is a successful backup of a VM w/LSI Adapter on ESXi 6.5
[root@mini:~] vmware -vl;./ghettoVCB.sh -f vms_to_backup -d debug
VMware ESXi 6.5.0 build-4564106
VMware ESXi 6.5.0 GA
Logging output to "/tmp/ghettoVCB-2016-11-20_19-44-33-293312.log" ...
2016-11-20 19:44:33 -- info: ============================== ghettoVCB LOG START ==============================
2016-11-20 19:44:33 -- debug: Succesfully acquired lock directory - /tmp/ghettoVCB.work
2016-11-20 19:44:33 -- debug: HOST VERSION: VMware ESXi 6.5.0 build-4564106
2016-11-20 19:44:33 -- debug: HOST LEVEL: VMware ESXi 6.5.0 GA
2016-11-20 19:44:33 -- debug: HOSTNAME: mini.primp-industries.com
2016-11-20 19:44:33 -- info: CONFIG - VERSION = 2015_05_06_1
2016-11-20 19:44:33 -- info: CONFIG - GHETTOVCB_PID = 293312
2016-11-20 19:44:33 -- info: CONFIG - VM_BACKUP_VOLUME = /vmfs/volumes/mini-local-datastore-hdd/backups
2016-11-20 19:44:33 -- info: CONFIG - VM_BACKUP_ROTATION_COUNT = 3
2016-11-20 19:44:33 -- info: CONFIG - VM_BACKUP_DIR_NAMING_CONVENTION = 2016-11-20_19-44-33
2016-11-20 19:44:33 -- info: CONFIG - DISK_BACKUP_FORMAT = thin
2016-11-20 19:44:33 -- info: CONFIG - POWER_VM_DOWN_BEFORE_BACKUP = 0
2016-11-20 19:44:33 -- info: CONFIG - ENABLE_HARD_POWER_OFF = 0
2016-11-20 19:44:33 -- info: CONFIG - ITER_TO_WAIT_SHUTDOWN = 3
2016-11-20 19:44:33 -- info: CONFIG - POWER_DOWN_TIMEOUT = 5
2016-11-20 19:44:33 -- info: CONFIG - SNAPSHOT_TIMEOUT = 15
2016-11-20 19:44:33 -- info: CONFIG - LOG_LEVEL = debug
2016-11-20 19:44:33 -- info: CONFIG - BACKUP_LOG_OUTPUT = /tmp/ghettoVCB-2016-11-20_19-44-33-293312.log
2016-11-20 19:44:33 -- info: CONFIG - ENABLE_COMPRESSION = 0
2016-11-20 19:44:33 -- info: CONFIG - VM_SNAPSHOT_MEMORY = 0
2016-11-20 19:44:33 -- info: CONFIG - VM_SNAPSHOT_QUIESCE = 0
2016-11-20 19:44:33 -- info: CONFIG - ALLOW_VMS_WITH_SNAPSHOTS_TO_BE_BACKEDUP = 0
2016-11-20 19:44:33 -- info: CONFIG - VMDK_FILES_TO_BACKUP = all
2016-11-20 19:44:33 -- info: CONFIG - VM_SHUTDOWN_ORDER =
2016-11-20 19:44:33 -- info: CONFIG - VM_STARTUP_ORDER =
2016-11-20 19:44:33 -- info: CONFIG - RSYNC_LINK = 0
2016-11-20 19:44:33 -- info: CONFIG - BACKUP_FILES_CHMOD =
2016-11-20 19:44:33 -- info: CONFIG - EMAIL_LOG = 0
2016-11-20 19:44:33 -- info:
2016-11-20 19:44:35 -- debug: Storage Information before backup:
2016-11-20 19:44:35 -- debug: SRC_DATASTORE: mini-local-datastore-ssd
2016-11-20 19:44:35 -- debug: SRC_DATASTORE_CAPACITY: 63488.0
111.8 GB
2016-11-20 19:44:35 -- debug: SRC_DATASTORE_FREE: 79.1 GB
2016-11-20 19:44:35 -- debug: SRC_DATASTORE_BLOCKSIZE: 1
2016-11-20 19:44:35 -- debug: SRC_DATASTORE_MAX_FILE_SIZE: 256 GB
2016-11-20 19:44:35 -- debug:
2016-11-20 19:44:35 -- debug: DST_DATASTORE: mini-local-datastore-hdd
2016-11-20 19:44:35 -- debug: DST_DATASTORE_CAPACITY: 63488.0
698.5 GB
2016-11-20 19:44:35 -- debug: DST_DATASTORE_FREE: 697.1 GB
2016-11-20 19:44:35 -- debug: DST_DATASTORE_BLOCKSIZE: 1
2016-11-20 19:44:35 -- debug: DST_DATASTORE_MAX_FILE_SIZE: 256 GB
2016-11-20 19:44:35 -- debug:
2016-11-20 19:44:36 -- debug: getVMDKs() - TinyVM.vmdk###1:
2016-11-20 19:44:36 -- info: Initiate backup for TinyVM
2016-11-20 19:44:36 -- info: Creating Snapshot "ghettoVCB-snapshot-2016-11-20" for TinyVM
2016-11-20 19:44:36 -- debug: Waiting for snapshot "ghettoVCB-snapshot-2016-11-20" to be created
2016-11-20 19:44:36 -- debug: Snapshot timeout set to: 900 seconds
2016-11-20 19:44:37 -- debug: findVMDK() - Searching for VMDK: "TinyVM.vmdk" to backup
2016-11-20 19:44:37 -- debug: /sbin/vmkfstools -i "/vmfs/volumes/mini-local-datastore-ssd/TinyVM/TinyVM.vmdk" -a "lsilogic" -d "thin" "/vmfs/volumes/mini-local-datastore-hdd/backups/TinyVM/TinyVM-2016-11-20_19-44-33/TinyVM.vmdk"
2016-11-20 19:44:38 -- info: Removing snapshot from TinyVM ...
2016-11-20 19:44:38 -- info: Backup Duration: 2 Seconds
2016-11-20 19:44:38 -- info: Successfully completed backup for TinyVM!
2016-11-20 19:44:40 -- debug: Storage Information after backup:
2016-11-20 19:44:40 -- debug: SRC_DATASTORE: mini-local-datastore-ssd
2016-11-20 19:44:40 -- debug: SRC_DATASTORE_CAPACITY: 63488.0
111.8 GB
2016-11-20 19:44:40 -- debug: SRC_DATASTORE_FREE: 79.1 GB
2016-11-20 19:44:40 -- debug: SRC_DATASTORE_BLOCKSIZE: 1
2016-11-20 19:44:40 -- debug: SRC_DATASTORE_MAX_FILE_SIZE: 256 GB
2016-11-20 19:44:40 -- debug:
2016-11-20 19:44:40 -- debug: DST_DATASTORE: mini-local-datastore-hdd
2016-11-20 19:44:40 -- debug: DST_DATASTORE_CAPACITY: 63488.0
698.5 GB
2016-11-20 19:44:40 -- debug: DST_DATASTORE_FREE: 697.1 GB
2016-11-20 19:44:40 -- debug: DST_DATASTORE_BLOCKSIZE: 1
2016-11-20 19:44:40 -- debug: DST_DATASTORE_MAX_FILE_SIZE: 256 GB
2016-11-20 19:44:40 -- debug:
2016-11-20 19:44:40 -- info: ###### Final status: All VMs backed up OK! ######
2016-11-20 19:44:40 -- debug: Succesfully removed lock directory - /tmp/ghettoVCB.work
2016-11-20 19:44:40 -- info: ============================== ghettoVCB LOG END ================================
from ghettovcb.
Works great, thanks for the quick turnaround!
from ghettovcb.
Hi,
I have similar issue with backup. Backup a save to permanent NFS folder, added in the Configuration - Storage section. I always have the line "adaptertype is deprecated and hence will be ignored". Is this something that i should wary about.
Is this connected with deprecated VMCI devicde?
from ghettovcb.
Here is the modifications I did in the script for my vSphere 6.5 not to show this error.
The backups work well (2 Windows + 1 FortiAnalyzer).
Hope this will help !
VMDK_OUTPUT=$(mktemp ${WORKDIR}/ghettovcb.XXXXXX)
tail -f "${VMDK_OUTPUT}" &
TAIL_PID=$!
#ADAPTER_FORMAT=$(grep -i "ddb.adapterType" "${SOURCE_VMDK}" | awk -F "=" '{print $2}' | sed -e 's/^[[:blank:]]*//;s/[[:blank:]]*$//;s/"//g')
if [[ -z "${FORMAT_OPTION}" ]] ; then
logger "debug" "${VMKFSTOOLS_CMD} -i \"${SOURCE_VMDK}\" \"${DESTINATION_VMDK}\""
${VMKFSTOOLS_CMD} -i "${SOURCE_VMDK}" "${DESTINATION_VMDK}" > "${VMDK_OUTPUT}" 2>&1
else
logger "debug" "${VMKFSTOOLS_CMD} -i \"${SOURCE_VMDK}\" -d \"${FORMAT_OPTION}\" \"${DESTINATION_VMDK}\""
${VMKFSTOOLS_CMD} -i "${SOURCE_VMDK}" -d "${FORMAT_OPTION}" "${DESTINATION_VMDK}" > "${VMDK_OUTPUT}" 2>&1
fi
from ghettovcb.
Related Issues (20)
- am i missing something else from global config
- auto-backup.sh still shows old backup software HOT 1
- error backing up vms HOT 2
- getting backups to use another VMKernel port
- Calculated digest at EOF does not match expected result HOT 3
- ESXI 8 sending Logs per Mail, is it possible on ESXi8 ? HOT 1
- Upgrade for ESXi 8 does not persist - keeps reverting back to older version HOT 2
- SMTP protocol synchronization error (next input sent too soon: pipelining was not advertised) HOT 1
- How can cronjobs made persistent during a reboot with UEFI secure boot enabled HOT 4
- 8.0U2 --> ESX(i) Version not supported! HOT 5
- Using SCP to copy files in a remote destination folder
- VIB-Installation on VMware ESXi 8.0.1 build-21813344 not possible - acceptance level HOT 2
- 8.0U2 build 22380479 - VIB installation fails HOT 2
- Machine
- Calculated digest at EOF does not match expected result HOT 5
- not running cron jobs HOT 8
- Cp: can’t create ‘/etc/rc.local’: Operation not permitted HOT 1
- install on vcenter HOT 2
- DISK_BACKUP_FORMAT=thin but copies as a thick
- Documentation links broken since Broadcom migration HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ghettovcb.