#1 2021-05-31 13:49:09

samad5589
Member
Registered: 2021-05-31
Posts: 2

Unable to backup VM seems permission error and locked

Hello,

I would like ask for an help on my following issue.
I have a connect between 2 VPSHERE Server and trying to backup a VM, came up with following issues, Any solution to start the backup.




[root@localhost:/vmfs/volumes/5b97034d-d0fdbcd5-e679-842b2b4df21f/xsi-dir1] ./xsibackup --link-srv=192.168.88.55
###############################################################################
#
#  (c) XSIBACKUP-FREE 11.0.1 | Backup for (c) VMWARE ESXi Hypervisor by 33hops.com
#
###################################################################################

NOTICE: (c) XSIBackup kills any user launched jobs, make sure you don't overlap manual jobs
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
XSIBackup PID:          2559864                                           localhost.localdomain
Enabling port 22 out in the ESXi firewall...
There is already an RSA public key at /vmfs/volumes/datastore1/xsi-dir1/xsibackup_id_rsa.pub. We will use the existing one.
Enter the remote server root password when prompted.
Enter remote systems's password for user root, checking OS type...
FIPS mode initialized
Password:
FIPS mode initialized
Password:
The local RSA key has already been added to the authorized_keys file at 192.168.88.55.
There is no need to add it again, you should be able to connect with XSIBackup to 192.168.88.55 without any password.
Killed
[root@localhost:/vmfs/volumes/5b97034d-d0fdbcd5-e679-842b2b4df21f/xsi-dir1] ./xsibackup --run-backup=002-FSRV-TO-BKP
###############################################################################
#
#  (c) XSIBACKUP-FREE 11.0.1 | Backup for (c) VMWARE ESXi Hypervisor by 33hops.com
#
###################################################################################

NOTICE: (c) XSIBackup kills any user launched jobs, make sure you don't overlap manual jobs
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
XSIBackup PID:          2560305                                           localhost.localdomain
Mon, 31 May 2021 17:08:06 +0000                               IPv4: 192.168.3.206/255.255.255.0
VMware ESXi 6.7.0 build-8169922                              (c) Rsync 3.1.0 as opt. dependency
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Backup Id:      002-fsrv-to-bkp                 Intel(R) Xeon(R) CPU           E5649  @ 2.53GHz
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Backup description: file serverbackup
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Alert: crontab is not installed for user root
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
ADVICE: no SSD disks, please consider adding an SSD cache disk to improve performance
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Backup user is: root
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Backup program is: onediff
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Service OpenSSH ready at server 192.168.88.55:22
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Info: remote XSIBACKUP-FREE install dir has been set by means of the --remote-xsipath argument
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Remote xsi path set to: /vmfs/volumes/datastore1/xsi-dir # (filesystem: VMFS-5)
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Remote ESXi version is 6.5.0
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Mirroring to server 192.168.88.55 port 22
Checking Rsync exists on the other side...
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
xsibackup-rsync needs to be copied/updated in the remote server
xsibackup-rsync                                                                                                                           100% 1168KB  87.9MB/s   00:00
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
(c)XSIDiff needs to be copied/updated in the remote server
xsidiff                                                                                                                                   100% 1676KB  93.5MB/s   00:00
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
The backup room has been limited to 8000 gb.
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Skipping invalid VM '26'
Getting list of all VMs...
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------

3      Fileserver2018     [datastore1] VM1.TEST.local/VM1.TEST.local.vmx   windows7Server64Guest   vmx-10
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
VMs to backup:
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
3      Fileserver2018     [datastore1] VM1.TEST.local/VM1.TEST.local.vmx   windows7Server64Guest   vmx-10
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
[Fileserver2018] Starting backup (size is 8973184M on 8973184M file)
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
XSIBackup will backup your VMs while they are running and will quiesce guest services too, so that users
can continue to use the VM while the backup is taking place. You can also run cold and warm --backup-how
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Hot backup selected for VM: [Fileserver2018], will not be switched off
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Skipping invalid VM '26'
Skipping invalid VM '26'
[Fileserver2018] info: boot partition is MBR
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
[Fileserver2018] info: Win64 OS (windows7Server64) detected on MBR, applying Windows algorithm
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Remember: --date-dir argument will be ignored in OneDiff backups
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Skipping invalid VM '26'
Skipping invalid VM '26'
FIPS mode initialized
[Fileserver2018] notice DIFRMMIS: no [VM1.TEST.local.vmx] in remote OneDiff mirror, first run?.
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
[Fileserver2018] notice DIFRMMIS: no [VM1.TEST.local.vmx_1-flat.vmdk] in remote OneDiff mirror, first run?.
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
[Fileserver2018] notice DIFRMMIS: no [VM1.TEST.local.vmx_2-flat.vmdk] in remote OneDiff mirror, first run?.
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FIPS mode initialized
[Fileserver2018] info: remote VMX file size 5512
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FIPS mode initialized
System disk CIDs a9f102e6|a9f102e6
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
[Fileserver2018] (c) OneDiff algorithm
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
[Fileserver2018] info: OneDiff backup first run, removing snapshots
[Fileserver2018] info: all snapshots removed
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Snapshot & Quiescing
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
[Fileserver2018] info: VMWare Tools detected, taking snapshot QUIESCED(false)...
[Fileserver2018] info: set argument --snapshot=doquiesce to quiesce your VMs
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
[Fileserver2018] info: round 1
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
[Fileserver2018] error DIFCRES1: create snapshot xsibackupdiff (1) failed
[Fileserver2018] info: snapshot taken, quiescing status:
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FIPS mode initialized
Removing snapshots, please wait...
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Error CLDELSN1: cannot delete snapshot VM Id: 3, details: Skipping invalid VM '26'
Skipping invalid VM '26'
Syncronizing config files
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Skipping invalid VM '26'
Skipping invalid VM '26'
[Fileserver2018] info: the /vmfs/volumes/datastore1/Fileserver2018 dir was removed as per the :F flag
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
[Fileserver2018] info: created dir to host VM backup
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
[Fileserver2018] info: VMX file succesfully queued
[Fileserver2018] info: VMSD file succesfully queued
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Backing up virtual disks...
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
DISK=/vmfs/volumes/datastore1/VM1.TEST.local/VM1.TEST.local.vmdk
DISK=/vmfs/volumes/datastore1/VM1.TEST.local/VM1.TEST.local_1.vmdk
DISK=/vmfs/volumes/datastore1/VM1.TEST.local/VM1.TEST.local_2.vmdk
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Rsync: transfering file | /vmfs/volumes/datastore1/VM1.TEST.local/VM1.TEST.local.vmdk
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
[Fileserver2018] error CLRSYNC4: sh: /vmfs/volumes/datastore1/xsi-dir: Permission denied
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: remote command could not be run (code 126) at io.c(226) [sender=3.1.0]
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
The file "/vmfs/volumes/datastore1/VM1.TEST.local/VM1.TEST.local-flat.vmdk" is locked. Independent disks cannot be hot backed up, issue a cold backup for or                           exlude the disk from the backup. Make sure that the VM state (on/off) was not manually changed during the backup
Rsync: transfering file | /vmfs/volumes/datastore1/VM1.TEST.local/VM1.TEST.local_1.vmdk
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
[Fileserver2018] error CLRSYNC4: sh: /vmfs/volumes/datastore1/xsi-dir: Permission denied
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: remote command could not be run (code 126) at io.c(226) [sender=3.1.0]
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
The file "/vmfs/volumes/datastore1//VM1.TEST.local/VM1.TEST.local_1-flat.vmdk" is locked. Independent disks cannot be hot backed up, issue a cold backup for                           or exlude the disk from the backup. Make sure that the VM state (on/off) was not manually changed during the backup
Rsync: transfering file | /vmfs/volumes/datastore1/VM1.TEST.local/VM1.TEST.local_2.vmdk
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
[Fileserver2018] error CLRSYNC4: sh: /vmfs/volumes/datastore1/xsi-dir: Permission denied
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(226) [sender=3.1.0]
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
The file "/vmfs/volumes/datastore1//VM1.TEST.local/VM1.TEST.local_2-flat.vmdk" is locked. Independent disks cannot be hot backed up, issue a cold backup for                           or exlude the disk from the backup. Make sure that the VM state (on/off) was not manually changed during the backup
FIPS mode initialized
[Fileserver2018] info: VMX file processed and updated
[Fileserver2018] info: Updating CID at [192.168.88.55:22:/vmfs/volumes/datastore1/Fileserver2018/VM1.TEST.local.vmdk]
[Fileserver2018] info: finished OneDiff backup, CID updated
[Fileserver2018] info: backup complete
[Fileserver2018] info: finished doing a first copy in a diff scope, subsequent backups will be differential
[Fileserver2018] info: should you need to use the mirror VM, register it manually at the backup ESXi host
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------
|              Backup of ESXi configuration is not available in XSIBACKUP-FREE             |
|                          Get XSIBACKUP-PRO at http://33hops.com                          |
--------------------------------------------------------------------------------------------

Errors detected in backup, check logs
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Some warnings were raised

Offline

#2 2021-05-31 14:19:55

admin
Administrator
Registered: 2017-04-21
Posts: 1,658

Re: Unable to backup VM seems permission error and locked

We don't know what we can add to the error message:

The file "/vmfs/volumes/datastore1/VM1.TEST.local/VM1.TEST.local-flat.vmdk" is locked. Independent disks cannot be hot backed up, issue a cold backup for or exclude the disk from the backup. Make sure that the VM state (on/off) was not manually changed during the backup

Is that disk independent?, is it engaged in some scheme so that another process is holding it open?
Make sure that you don't have any previous (c)XSIBackup process running

ps -c | grep xsi

Offline

#3 2021-05-31 14:43:40

samad5589
Member
Registered: 2021-05-31
Posts: 2

Re: Unable to backup VM seems permission error and locked

Thanks for your reply, It is running VPSHERE ESXI Server and its independent.

[root@localhost:/vmfs/volumes/5b97034d-d0fdbcd5-e679-842b2b4df21f/xsi-dir1] ps -c | grep xsi
2564014  2564014  grep                            grep xsi

That what im surprise, why its not allowing.

Is there any other troubleshooting tips.

Offline

#4 2021-05-31 16:48:39

admin
Administrator
Registered: 2017-04-21
Posts: 1,658

Re: Unable to backup VM seems permission error and locked

We aren't getting you. We asume that you are indeed running (c)vSphere (c)ESXi in your host. What would be the reason to post here if you weren't running this system?

On addition to that. Please take the time to learn what an independent disk is and how it differentiates from other types of storage in (c)ESXi: post on (c)ESXi disk modes

Please be aware that independent disks cannot be hot backed up, use --backup-how=cold instead.

The message is already stating that point, thus: we don't understand where your doubt exactly is or what do your expect from us.

Offline

Board footer