Hi,
for testing i updated a server from VMWare ESXi 6.7U3 to VMWare ESXI 7
But now there is a problem backing up the vmdk files.
Here’s the verbose log of a backup call
[root@esxi:/vmfs/volumes/57e2d23c-90f51f2b-57a5-408d5c4a53e8/verticalbackup] ./vertical -v backup -t mtest Rohrpostix
Vertical Backup 1.4.0
Licensed to ; expires on 2020-11-13
Storage set to sftp://
Listing all virtual machines
Running command: /bin/vim-cmd vmsvc/getallvm, timeout: 30
Vmid Name File Guest OS Version Annotation
…
49 Rohrpostix [PCIE-Slot4] Rohrpostix/Rohrpostix.vmx ubuntu64Guest vmx-11
…
Backing up Rohrpostix, id: 49, vmx path: /vmfs/volumes/PCIE-Slot4/Rohrpostix/Rohrpostix.vmx, guest os: ubuntu64Guest
Last backup at revision 325 found
Running command: /bin/vim-cmd vmsvc/power.getstate 49, timeout: 30
Retrieved runtime info
Powered on
Virtual machine Rohrpostix is powered on
Removing all snapshots of Rohrpostix
Running command: /bin/vim-cmd vmsvc/snapshot.removeall 49, timeout: 600
Remove All Snapshots:
Creating a new virtual machine snapshot for Rohrpostix
Running command: /bin/vim-cmd vmsvc/snapshot.create 49 2020-04-27-08-42-24 ‘Created by Vertical Backup 1.4.0’ 0 1, timeout: 600
Create Snapshot:
Uploaded chunk 7df1eb59107d165f2690b546fd53c70f12049c7475ee572c77b8b8027ac22466 size 504
Uploaded file /vmfs/volumes/PCIE-Slot4/Rohrpostix/Rohrpostix.vmdk
Uploading file Rohrpostix-flat.vmdk
Failed to open file ‘/vmfs/volumes/PCIE-Slot4/Rohrpostix/Rohrpostix-flat.vmdk’: Device or resource busy
Removing all snapshots of Rohrpostix
Running command: /bin/vim-cmd vmsvc/snapshot.removeall 49, timeout: 600
Remove All Snapshots:
So I tried this manually and got the same error even though the file is in Read-Only mode according to vmfsfilelockinfo (I tried to access the file with head, which should be read-only for sure)
#>/bin/vim-cmd vmsvc/snapshot.create 49 2020-04-27-08-42-24 ‘Created by Vertical Backup 1.4.0’ 0 1
Create Snapshot:
#>vmfsfilelockinfo -p /vmfs/volumes/PCIE-Slot4/Rohrpostix/Rohrpostix-flat.vmdk
vmfsfilelockinfo Version 2.0
Looking for lock owners on “Rohrpostix-flat.vmdk”
“Rohrpostix-flat.vmdk” is locked in Read-Only mode by host having mac address [‘xx:xx:xx:xx:xx:xx’]
#>head -n 10 ‘/vmfs/volumes/PCIE-Slot4/Rohrpostix/Rohrpostix-flat.vmdk’
head: /vmfs/volumes/PCIE-Slot4/Rohrpostix/Rohrpostix-flat.vmdk: Device or resource busy
By googeling the error I found this interesting thread in the vmware forums: https://communities.vmware.com/thread/632492
so this seems to be either a undocumented change in vmware 7 or just a bug…
Is there a known workaround? Or maybe gchen can check with vmware if this will be changed again in a future update.
But for now I would be very careful with updating to ESXi 7 if you planning on using verticalbackup…