Code Monkey home page Code Monkey logo

Comments (9)

auk avatar auk commented on September 2, 2024

Confirm - I have same error

from ghettovcb.

memorygardener avatar memorygardener commented on September 2, 2024

I have the same problem; interestingly, it seems to have popped up only after upgrading to 6.5.

from ghettovcb.

lamw avatar lamw commented on September 2, 2024

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.

memorygardener avatar memorygardener commented on September 2, 2024

Thanks for the quick response, William. I have VMs with LSI Logic Parallel and VMware Paravirtual adapters. Is either of them deprecated ?

from ghettovcb.

riparap avatar riparap commented on September 2, 2024

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.

lamw avatar lamw commented on September 2, 2024

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.

memorygardener avatar memorygardener commented on September 2, 2024

Works great, thanks for the quick turnaround!

from ghettovcb.

talekksna avatar talekksna commented on September 2, 2024

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.

ppfx avatar ppfx commented on September 2, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.