©XSIBackup-Free: Free Backup Software for ©VMWare ©ESXi

Forum ©XSIBackup: ©VMWare ©ESXi Backup Software


You are not logged in.

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

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

Unable to backup VM seems permission error and locked (solved)

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 https://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: 2,055

Re: Unable to backup VM seems permission error and locked (solved)

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: 5

Re: Unable to backup VM seems permission error and locked (solved)

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: 2,055

Re: Unable to backup VM seems permission error and locked (solved)

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

#5 2021-07-14 14:07:53

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

Re: Unable to backup VM seems permission error and locked (solved)

Yes Noted.

Whenever im running to backup /vmfs/volumes/datastore1/xsi-dir1/xsibackup --backup-point=/192.168.88.55:22:/vmfs/volumes/datastore1/Backup/ --backu
p-how=cold --backup-type=custom --backup-vms="Fileserver2018" --date-dir=yes

this gives me error.
NOTICE: (c) XSIBackup kills any user launched jobs, make sure you don't overlap manual jobs
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
XSIBackup PID:          2443867                                           localhost.localdomain
Fri, 09 Jul 2021 16:42:42 +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:              unknown                 Intel(R) Xeon(R) CPU           E5649  @ 2.53GHz
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Alert: crontab is not installed for user root
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
ADVICE: no SSD disks, please consider adding an SSD cache disk to improve performance
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
sh: rsync: unknown operand
Backup user is: root
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--backup-point found at /192.168.88.55:22:/vmfs/volumes/datastore1/Backup (filesystem: VMFS-6)
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
E-mail Warnings
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
The e-mail report will not be sent because of the followig reasons:
The --mail-from string has not been set
The --smtp-srv string has not been set
The --smtp-port string has not been set
The --smtp-usr string has not been set, you need --smtp-usr if --smtp-auth is other than -none-
The --smtp-pwd string has not been set, you need --smtp-pwd if --smtp-auth is other than -none-
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Skipping invalid VM '26'
Getting list of all VMs...
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
3      Fileserver2018   [datastore1] taskntsrv22.Task.local/taskntsrv22.Task.local.vmx   windows7Server64Guest   vmx-10
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
VMs to backup:
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
3      Fileserver2018   [datastore1] taskntsrv22.Task.local/taskntsrv22.Task.local.vmx   windows7Server64Guest   vmx-10
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Could not get available backup room in backup datastore
Needed room: 8763 Gb.
Sparse size: 8797 Gb.
Available room: 0 Gb.
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Not enough room to make the backup, some older folders will be deleted
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
[Fileserver2018] Starting backup (size is 8973338M on 9008657M 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
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Stopping VM [Fileserver2018]
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Sleeping :-o 30 s, waiting for VM to be off
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
SLEEPING 10 s, waiting for VM to be off
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
SLEEPING 10 s, waiting for VM to be off
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
SLEEPING 10 s, waiting for VM to be off
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Powering off VM:
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
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
[Fileserver2018] Info: attempting to free 8985626 mb at [  ]
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Removing snapshots, please wait...
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Syncronizing config files
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Skipping invalid VM '26'
Skipping invalid VM '26'
Backing up virtual disks...
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
scsi0:0.fileName = "taskntsrv22.Task.local-000001.vmdk"
scsi0:1.fileName = "taskntsrv22.Task.local_1-000001.vmdk"
scsi0:2.fileName = "taskntsrv22.Task.local_2-000001.vmdk"
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Destination disk format: VMFS thin-provisioned
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
[Fileserver2018] CLVMKFS1 error: Failed to clone object parameters
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Destination disk format: VMFS thin-provisioned
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
[Fileserver2018] CLVMKFS1 error: Failed to clone object parameters
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Destination disk format: VMFS thin-provisioned
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
[Fileserver2018] CLVMKFS1 error: Failed to clone object parameters
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
[Fileserver2018] info: bringing VM up again
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Offline

#6 2021-07-18 09:39:38

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

Re: Unable to backup VM seems permission error and locked (solved)

May I know how can i resolve and start making backups.
I tried to delete snapshots and conslidate disk, thats normal practice.
Still Im getting errors, i tried my best.


sh: rsync: unknown operand
Backup user is: root
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--backup-point created at /192.168.3.201:22:/vmfs/volumes/datastore1/Backup (filesystem: VMFS-6)

Could not get available backup room in backup datastore
Needed room: 8777 Gb.
Sparse size: 8812 Gb.
Available room: 0 Gb.
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Not enough room to make the backup, some older folders will be deleted
----------------------------------------------------------------------------

[Fileserver2018] info: Win64 OS (windows7Server64) detected on MBR, applying Windows algorithm
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
[Fileserver2018] Info: attempting to free 9000764 mb at [  ]
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
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: VMWare Tools detected, taking snapshot QUIESCED(false)...
[Fileserver2018] info: set argument --snapshot=doquiesce to quiesce your VMs
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
[Fileserver2018] error CLCRESN1: cannot create snapshot, details: Create Snapshot:
Create snapshot failed

Offline

#7 2021-07-19 09:40:06

admin
Administrator
Registered: 2017-04-21
Posts: 2,055

Re: Unable to backup VM seems permission error and locked (solved)

Your output is plagued with an error message stating that some VM registered to your host is simply not there.

Skipping invalid VM '26'

We can't help you to detect your issue when you haven't even paid attention to that "little detail". For a host to be backed up, first of all it must be in a good working condition and under the control of the Sysadmin.

(c)XSIBackup relies on the output from part of the shell to detect errors and act accordingly, it can't just work with a recurring error message constantly bubbling up the shell.

Offline

#8 2021-07-19 09:57:34

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

Re: Unable to backup VM seems permission error and locked (solved)

Yes correct, but we can ignore that Skipping, we never had due to that skipping.

Please look at the actual error, we are getting when running first time
My Email Server Vpshere Exsi 6.5 192.168.3.211
My Backup VSphere Esxi 6.5         192.168.3.201

Moreover, the issue is even after i made the link from 192.168.3.211      to run     ./xsibackup --Link-srv=192.168.3.201:22

When i tried to backup Backup
/vmfs/volumes/datastore1/xsi-dir/xsibackup --backup-point=/192.168.3.201:22:/vmfs/volumes/datastore1/Backup/MailServer/ --backup-how=Hot --backup-type=custom --backup-prog=onediff --backup-vms="mailsrv12" --date-dir=yes

I get error ***************Could not get available backup room in backup datastore**********************************



program is: onediff
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--backup-point created at /192.168.3.201:22:/vmfs/volumes/datastore1/Backup/MailServer (filesystem: VMFS-6)
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
VMs to backup:
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
8      mailsrv12   [DATA] mailsrv12/mailsrv12.vmx   debian8_64Guest   vmx-14
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
***************Could not get available backup room in backup datastore**********************************
Needed room: 3008 Gb.
Sparse size: 3020 Gb.
Available room: 0 Gb.
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Not enough room to make the backup, some older folders will be deleted
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
[mailsrv12] Starting backup (size is 3080423M on 3092543M file)

[mailsrv12] notice DIFRMMIS: no [mailsrv12-flat.vmdk] in remote OneDiff mirror, first run?.
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
[mailsrv12] (c) OneDiff algorithm
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
[mailsrv12] info: OneDiff backup first run, removing snapshots
[mailsrv12] info: all snapshots removed
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Snapshot & Quiescing
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
[mailsrv12] info: the VM will not be quiesced, no tools detected
[mailsrv12] info: round 1
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
[mailsrv12] info: snapshot taken, quiescing status: NO (no tools detected)
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Skipping invalid VM '4'
Removing snapshots, please wait...
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Error CLDELSN1: cannot delete snapshot VM Id: 8, details: Skipping invalid VM '4'
Skipping invalid VM '4'
Syncronizing config files
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Skipping invalid VM '4'
Skipping invalid VM '4'
Backing up virtual disks...
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
scsi0:0.fileName = "mailsrv12.vmdk"
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Destination disk format: VMFS thin-provisioned
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
[mailsrv12] CLVMKFS1 error: Failed to clone object parameters
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
[mailsrv12] info: Updating CID at [/192.168.3.201:22:/vmfs/volumes/datastore1/Backup/MailServer/mailsrv12/mailsrv12.vmdk]
[mailsrv12] info: finished OneDiff backup, CID updated
[mailsrv12] info: backup complete
[mailsrv12] info: finished doing a first copy in a diff scope, subsequent backups will be differential
[mailsrv12] info: should you need to use the mirror VM, register it manually at the backup ESXi host



Then i treid without oneDiff

/vmfs/volumes/datastore1/xsi-dir/xsibackup --backup-point=/192.168.3.201:22:/vmfs/volumes/datastore1/Backup/MailServer/ --backup-how=Hot --backup-type=custom --backup-vms="mailsrv12" --date-dir=yes


Backup user is: root
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--backup-point found at /192.168.3.201:22:/vmfs/volumes/datastore1/Backup/MailServer (filesystem: VMFS-6)

Getting list of all VMs...
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
8      mailsrv12   [DATA] mailsrv12/mailsrv12.vmx   debian8_64Guest   vmx-14
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
VMs to backup:
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
8      mailsrv12   [DATA] mailsrv12/mailsrv12.vmx   debian8_64Guest   vmx-14
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Could not get available backup room in backup datastore
Needed room: 3009 Gb.
Sparse size: 3021 Gb.
Available room: 0 Gb.
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Not enough room to make the backup, some older folders will be deleted
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
[mailsrv12] Starting backup (size is 3082010M on 3094067M 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: [mailsrv12], will not be switched off
-------------------------------------------------------------------------------------------
[mailsrv12] Info: attempting to free 3094298 mb at [  ]
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Removing snapshots, please wait...
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Error CLDELSN1: cannot delete snapshot VM Id: 8, details: Skipping invalid VM '4'
Skipping invalid VM '4'
Syncronizing config files
---------------------------------------------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
scsi0:0.fileName = "mailsrv12-000001.vmdk"
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Destination disk format: VMFS thin-provisioned
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
[mailsrv12] CLVMKFS1 error: Failed to clone object parameters
------------------------------------------------------------------------------------------------------------

Offline

#9 2021-07-22 10:25:27

itservice614
Member
Registered: 2018-10-01
Posts: 37

Re: Unable to backup VM seems permission error and locked (solved)

Kindly reply for the above error, how can i resolve to make the backup run from two(2) VSPhere Exsi 6.5 Servers.

I wanted to backup FileServer-VM (192.168.3.208) and MailServer-VM (192.168.3.205) running on Each HOST ESXI 6.5 to Backup Server ESXI 6.5. (192.168.3.201)
I tried all possible ways.

Even tried to run by cold backup, still unable.


I tried this Jobs
# This is a backup job file example. It starts with the path to your
# xsibackup file and ends with the redirection to the log file. Please
# do make sure that you keep first and last lines, changing paths to
# match your working environment.
#--remote-xsipath=/vmfs/volumes/datastore1/xsi-dir \
#--on-success="backupId->002" \
#--on-error="backupId->002" \
"/vmfs/volumes/datastore1/xsi-dir/xsibackup" \
--backup-point="192.168.3.201:22:/vmfs/volumes/datastore1/Backup:D" \
--backup-type=Custom \
--backup-vms="mailsrv12" \
--backup-prog=oneDiff \
--backup-how=hot \
--backup-room=8000 \
--use-smtp=1 \
--mail-to=samad5589@gmail.com \
--backup-id=002 \
--description="MAILSERVER" \
--exec=yes >> "/vmfs/volumes/datastore1/xsi-dir/var/logs/xsibackup.log" > /dev/null 2>&1


************************************************************************************************************
When i ran

./xsibackup --run-backup=002

************************************************************************************************************
I get following error


[root@MAILSRV1:/vmfs/volumes/5b9e2fff-07031929-e40f-5820b10bcf4e/xsi-dir] ./xsibackup --run-backup=002
###############################################################################
#
#  (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:          2346666                                             MAILSRV1.TASK.LOCAL
Thu, 22 Jul 2021 13:13:13 +0000                               IPv4: 192.168.3.205/255.255.255.0
VMware ESXi 6.7.0 build-8169922                              (c) Rsync 3.1.0 as opt. dependency
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Backup Id:                  002                       Intel(R) Xeon(R) CPU E5-2609 v3 @ 1.90GHz
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Backup description: mailserver
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Message: crontab is 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.3.201: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.3.201 port 22
Checking Rsync exists on the other side...
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
xsibackup-rsync needs to be copied/updated in the remote server
xsibackup-rsync                                                                                                                                                    100% 1168KB  30.5MB/s   00:00
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
(c)XSIDiff needs to be copied/updated in the remote server
xsidiff                                                                                                                                                            100% 1676KB  91.0MB/s   00:00
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
The backup room has been limited to 8000 gb.
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Getting list of all VMs...
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
8      mailsrv12          [DATA] mailsrv12/mailsrv12.vmx                               debian8_64Guest   vmx-14
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
VMs to backup:
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
8      mailsrv12          [DATA] mailsrv12/mailsrv12.vmx                               debian8_64Guest   vmx-14
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
[mailsrv12] Starting backup (size is 3084077M on 3096134M 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: [mailsrv12], will not be switched off
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
[mailsrv12] info: boot partition is EFI
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
ALERT: you are backing up a VM with hardware version 14 to ESXi 6.5.0
This is not going to work, please read about HW versions and ESXi
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FIPS mode initialized
[mailsrv12] notice DIFRMMIS: no [mailsrv12-flat.vmdk] in remote OneDiff mirror, first run?.
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FIPS mode initialized
[mailsrv12] info: remote VMX file size 2832
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FIPS mode initialized
System disk CIDs bb6048cd|1addacff
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
The system disk CID has changed, OneDiff backup will be initialized and a full backup made...
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
[mailsrv12] (c) OneDiff algorithm
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
[mailsrv12] info: OneDiff backup first run, removing snapshots
[mailsrv12] info: all snapshots removed
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Snapshot & Quiescing
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
[mailsrv12] info: the VM will not be quiesced, no tools detected
[mailsrv12] info: round 1
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
[mailsrv12] info: snapshot taken, quiescing status: NO (no tools detected)
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FIPS mode initialized
Skipping invalid VM '16'
Removing snapshots, please wait...
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Syncronizing config files
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
ALERT: you are backing up a VM with hardware version 14 to ESXi 6.5.0
This is not going to work, please read about HW versions and ESXi
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
[mailsrv12] info: VMX file succesfully queued
[mailsrv12] info: VMSD file succesfully queued
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Backing up virtual disks...
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
DISK=/vmfs/volumes/DATA/mailsrv12/mailsrv12-000001-sesparse.vmdk
DISK=/vmfs/volumes/DATA/mailsrv12/mailsrv12-000001.vmdk
DISK=/vmfs/volumes/DATA/mailsrv12/mailsrv12-Snapshot632.vmsn
DISK=/vmfs/volumes/DATA/mailsrv12/mailsrv12.vmdk
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Disk [/vmfs/volumes/DATA/mailsrv12/mailsrv12-000001-sesparse.vmdk] excluded
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Disk [/vmfs/volumes/DATA/mailsrv12/mailsrv12-000001.vmdk] excluded
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Rsync: transfering file | /vmfs/volumes/DATA/mailsrv12/mailsrv12-Snapshot632.vmsn
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
[mailsrv12] 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]
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Rsync: transfering file | /vmfs/volumes/DATA/mailsrv12/mailsrv12.vmdk
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
[mailsrv12] error: 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]
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Info: transfering file | /vmfs/volumes/DATA/mailsrv12/mailsrv12-flat.vmdk
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Info: activate your (c)XSIDiff license to boost transfer speed
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
[mailsrv12] CLXSIDF1 error: file transfer error: 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]
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Excluded disks removed from backup .vmx file
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FIPS mode initialized
[mailsrv12] info: VMX file processed and updated
[mailsrv12] info: Updating CID at [192.168.3.201:22:/vmfs/volumes/datastore1/Backup/mailsrv12/mailsrv12.vmdk]
[mailsrv12] info: finished OneDiff backup, CID updated
[mailsrv12] info: backup complete
[mailsrv12] info: finished doing a first copy in a diff scope, subsequent backups will be differential
[mailsrv12] info: should you need to use the mirror VM, register it manually at the backup ESXi host



I even tried to update the cron-tab to run from Root, but i dont get a results.

Offline

Board footer