backup - vbr init throws error related to rsync
Hi Team,
I have 2 Vertica systems. source (x.x.x.x) and target (y.y.y.y)
rsync version on both source and target system: (rsync version 3.1.2 protocol version 31)
vertica version: Vertica Analytic Database v9.2.1-0
/opt/vertica/bin/rsync : version ( version 3.0.7 protocol version 30)
Issue:
I have been trying to run the vbr script . I am getting below error.
vbr -t init -c backup_restore.ini
Here is the error output:
Initializing backup locations.
Error: Error accessing remote storage: failed accessing remote storage on <y.y.y.y>: @ERROR: Unknown module 'vbr'
rsync error: error starting client-server protocol (code 5) at main.c(1506) [Receiver=3.0.7]
: returncode=5
The "backup_restore.ini" detail
[Mapping]
v_testdb_node0001 = y.y.y.y:/home/testuser/backups
[Misc]
snapshotName = appdefdb_backup_snapshot
[Database]
dbName = appdefenderdb
dbPromptForPassword = True
[Misc]
enableFreeSpaceCheck = True
[Transmission]
; Specifies the default port number for the rsync protocol.
port_rsync = 50000
[Database]
; dbUser = current_username
dbUser = testuser
The rsync daemon log in target machine:
2020/02/04 11:02:59 [500611] connect from src (x.x.x.x)
2020/02/04 11:02:59 [500612] connect from src (x.x.x.x)
2020/02/04 11:02:59 [500612] unknown module 'vbr' tried from src (x.x.x.x)
I am not getting any clue. Looks like some issue in rsync setup. However, I was trying to send file manually and it works , I am able to sync the file.
rsync -v -v -e 'ssh -p 22' myconfig.cfg testuser@testuser:/home/testuser/backups
Thanks in advance,
SM
Best Answer
-
LenoyJ - Select Field - Employee
It may be possible that there's another rsync process running on port 50000. and in the rsyncd.conf file of that process the [vbr] module is missing. Try closing all rsync processes and trying again. Also ensure that you have access to the /tmp dir.
1
Answers
Are you trying to perform back on one cluster and restore on another cluster? If so, are the node names same in both clusters? If not, could you please ensure that you include node name mapping section in the ini file. Please review the section "Map to an Alternate Database" in the below link
https://www.vertica.com/docs/9.2.x/HTML/Content/Authoring/AdministratorsGuide/BackupRestore/ConfigFileReference/[Mapping].htm
Thanks a lot!! It helped.