Trying to restore vmware to another location. Passing corresponding python plugin parameters:
python3:folder=/Linux/Prinum_Cluster/Prod:vmname=TEST_VM:restore_powerstate=off
Plugin parameters that were during the backup:
Plugin="python3:module_path=/usr/lib64/bareos/plugins:module_name=bareos-fd-vmware:dc=Datacenter:folder=/Linux:vmname=vl-nfcdb01-test:vcserver=vcenter.mydomain.com:vcuser=Admini...@mydomain.local:vcpass=Password"
messages:
10-мар 14:26 bareos-dir JobId 11: Start Restore Job RestoreFiles.2023-03-10_14.26.46_24
10-мар 14:26 bareos-dir JobId 11: Connected Storage daemon at 10.64.116.170:9103, encryption: TLS_CHACHA20_POLY1305_SHA256 TLSv1.3
10-мар 14:26 bareos-dir JobId 11: Encryption: TLS_CHACHA20_POLY1305_SHA256 TLSv1.3
10-мар 14:26 bareos-dir JobId 11: Using Device "vl-nfcdb01-test_storage" to read.
10-мар 14:26 bareos-dir JobId 11: Connected Client: bareos-fd at localhost:9102, encryption: None
10-мар 14:26 bareos-dir JobId 11: Handshake: Cleartext
10-мар 14:26 bareos-dir JobId 11: Encryption: None
10-мар 14:26 ct-bareos01-fd JobId 11: Encryption: None
10-мар 14:26 bareos-sd JobId 11: Ready to read from volume "vl-nfcdb01-test-Full" on device "vl-nfcdb01-test_storage" (/backup_shares/hq/bareos/vmware/vl-nfcdb01-test/).
10-мар 14:26 bareos-sd JobId 11: Forward spacing Volume "vl-nfcdb01-test-Full" to file:block 0:237.
10-мар 14:26 ct-bareos01-fd JobId 11: Connected Storage daemon at 10.64.116.170:9103, encryption: None
10-мар 14:26 ct-bareos01-fd JobId 11: Warning: python3-fd-mod: MAC address 00:50:56:b6:ca:64 already exists in VM(s): ['/Linux/Prinum_Cluster/Test/vl-nfcdb01-test'], restored VM will get generated MAC address
10-мар 14:26 ct-bareos01-fd JobId 11: Warning: python3-fd-mod: UUID 42368404-f326-e236-9d01-d8c9155d0509 already exists in VM: /Linux/Prinum_Cluster/Test/vl-nfcdb01-test, restored VM will get new generated UUID
10-мар 14:26 ct-bareos01-fd JobId 11: python3-fd-mod: Creating VM TEST_VM in folder /Linux/Prinum_Cluster/Prod (Prod)
10-мар 14:26 ct-bareos01-fd JobId 11: Fatal error: python3-fd-mod: Error creating VM, name TEST_VM, exception (vim.fault.InvalidDeviceSpec) {
dynamicType = <unset>,
dynamicProperty = (vmodl.DynamicProperty) [],
msg = "Invalid configuration for device '3'.",
faultCause = <unset>,
faultMessage = (vmodl.LocalizableMessage) [],
property = 'VirtualDisk.capacityInKB',
deviceIndex = 3
}
10-мар 14:26 bareos-sd JobId 11: Error: lib/bsock_tcp.cc:407 Write error sending 15010 bytes to client:10.64.116.173:9103: ERR=Connection reset by peer
10-мар 14:26 bareos-sd JobId 11: Fatal error: stored/read.cc:145 Error sending to File daemon. ERR=Connection reset by peer
10-мар 14:26 bareos-sd JobId 11: Error: lib/bsock_tcp.cc:453 Socket has errors=1 on call to client:10.64.116.173:9103
10-мар 14:26 bareos-sd JobId 11: Releasing device "vl-nfcdb01-test_storage" (/backup_shares/hq/bareos/vmware/vl-nfcdb01-test/).
10-мар 14:26 bareos-dir JobId 11: Warning: File count mismatch: expected=1 , restored=0
10-мар 14:26 bareos-dir JobId 11: Error: Bareos bareos-dir 22.0.3~pre37.3c0624880 (07Mar23):
Build OS: SUSE Linux Enterprise Server 15 SP4
JobId: 11
Job: RestoreFiles.2023-03-10_14.26.46_24
Restore Client: bareos-fd
Start time: 10-мар-2023 14:26:48
End time: 10-мар-2023 14:26:53
Elapsed time: 5 secs
Files Expected: 1
Files Restored: 0
Bytes Restored: 0
Rate: 0.0 KB/s
FD Errors: 1
FD termination status: Error
SD termination status: Fatal Error
Bareos binary info: Bareos community build (UNSUPPORTED): Get professional support from https://www.bareos.com
Job triggered by: User
Termination: * Restore Error *
When I try to restore a vm to the same location but with a different name:
Passing corresponding python plugin parameters:
python3:vmname=bareos_vm_test:restore_powerstate=off
10-мар 14:42 bareos-dir JobId 14: Start Restore Job RestoreFiles.2023-03-10_14.42.17_16
10-мар 14:42 bareos-dir JobId 14: Connected Storage daemon at 10.64.116.170:9103, encryption: TLS_CHACHA20_POLY1305_SHA256 TLSv1.3
10-мар 14:42 bareos-dir JobId 14: Encryption: TLS_CHACHA20_POLY1305_SHA256 TLSv1.3
10-мар 14:42 bareos-dir JobId 14: Using Device "vl-nfcdb01-test_storage" to read.
10-мар 14:42 bareos-dir JobId 14: Connected Client: bareos-fd at localhost:9102, encryption: None
10-мар 14:42 bareos-dir JobId 14: Handshake: Cleartext
10-мар 14:42 bareos-dir JobId 14: Encryption: None
10-мар 14:42 ct-bareos01-fd JobId 14: Encryption: None
10-мар 14:42 bareos-sd JobId 14: Ready to read from volume "vl-nfcdb01-test-Full" on device "vl-nfcdb01-test_storage" (/backup_shares/hq/bareos/vmware/vl-nfcdb01-test/).
10-мар 14:42 bareos-sd JobId 14: Forward spacing Volume "vl-nfcdb01-test-Full" to file:block 0:237.
10-мар 14:42 ct-bareos01-fd JobId 14: Connected Storage daemon at 10.64.116.170:9103, encryption: None
10-мар 14:42 ct-bareos01-fd JobId 14: Warning: python3-fd-mod: MAC address 00:50:56:b6:ca:64 already exists in VM(s): ['/Linux/Prinum_Cluster/Test/vl-nfcdb01-test'], restored VM will get generated MAC address
10-мар 14:42 ct-bareos01-fd JobId 14: Warning: python3-fd-mod: UUID 42368404-f326-e236-9d01-d8c9155d0509 already exists in VM: /Linux/Prinum_Cluster/Test/vl-nfcdb01-test, restored VM will get new generated UUID
10-мар 14:42 ct-bareos01-fd JobId 14: python3-fd-mod: Creating VM bareos_vm_test in folder /Linux/Prinum_Cluster/Test (Test)
10-мар 14:42 ct-bareos01-fd JobId 14: Warning: python3-fd-mod: Error creating VM, name bareos_vm_test already exists in VMFS, retrying so VM path in VMFS will have _n suffix
10-мар 14:42 ct-bareos01-fd JobId 14: Fatal error: python3-fd-mod: Error creating VM, duplicate name: bareos_vm_test
10-мар 14:42 bareos-sd JobId 14: Error: lib/bsock_tcp.cc:407 Write error sending 15010 bytes to client:10.64.116.173:9103: ERR=Connection reset by peer
10-мар 14:42 bareos-sd JobId 14: Fatal error: stored/read.cc:145 Error sending to File daemon. ERR=Connection reset by peer
10-мар 14:42 bareos-sd JobId 14: Error: lib/bsock_tcp.cc:453 Socket has errors=1 on call to client:10.64.116.173:9103
10-мар 14:42 bareos-sd JobId 14: Releasing device "vl-nfcdb01-test_storage" (/backup_shares/hq/bareos/vmware/vl-nfcdb01-test/).
10-мар 14:42 bareos-dir JobId 14: Warning: File count mismatch: expected=1 , restored=0
10-мар 14:42 bareos-dir JobId 14: Error: Bareos bareos-dir 22.0.3~pre37.3c0624880 (07Mar23):
Build OS: SUSE Linux Enterprise Server 15 SP4
JobId: 14
Job: RestoreFiles.2023-03-10_14.42.17_16
Restore Client: bareos-fd
Start time: 10-мар-2023 14:42:19
End time: 10-мар-2023 14:42:23
Elapsed time: 4 secs
Files Expected: 1
Files Restored: 0
Bytes Restored: 0
Rate: 0.0 KB/s
FD Errors: 1
FD termination status: Error
SD termination status: Fatal Error
Bareos binary info: Bareos community build (UNSUPPORTED): Get professional support from https://www.bareos.com
Job triggered by: User
Termination: * Restore Error *
What could be the problem?
Best regards
Ram