ghettoVCB icon indicating copy to clipboard operation
ghettoVCB copied to clipboard

ADAPTER_FORMAT create error on second vm

Open gbin2265 opened this issue 3 years ago • 1 comments

If you have more than one vm , and ADAPTER_FORMAT is filled in in the conf file, you will have double -a -a when the 2nd vm is backed up

ADAPTER_FORMAT=buslogic in the conf file for the 1st vm it is "-a buslogic", for the 2nd vm it is "-a -a buslogic"

Output DEBUG

  • echo -e '2022-07-20 20:41:08 -- debug: /sbin/vmkfstools -i "/vmfs/volumes/.../name.vmdk" -a -a buslogic -d thin "/vmfs/volumes/.../name.vmdk"'

Output when i do 'sh -x ./ghettoVCB.sh :

    • '[['tail -n '-a buslogic' -f ]] /tmp/ghettoVCB.work/ghettovcb.UP1ZKz
  • ADAPTER_FORMAT='-a -a buslogic'

And also ... eval /sbin/vmkfstools -i '"${SOURCE_VMDK}"' '-a -a buslogic' '-d thin' '"${DESTINATION_VMDK}"'

I've removed the ADAPTER_FORMAT option in the conf file and everything works.

VERSION = 2021_10_20_1 ESX_VERSION=7.0.3 (VCENTER)

Regards, Geert

gbin2265 avatar Jul 20 '22 21:07 gbin2265

This is the same as issue #264. Removing the ADAPTER_FORMAT in config fixes both. But the script might need fixing to sense if the errant entry is not removed from the call if the adapter type is depreciated.

thraxarious avatar Jan 14 '23 12:01 thraxarious