I configured Medusa to backup the Cassandra Cluster by following the steps in the url;
https://docs.dataminer.services/user-guide/Advanced_Functionality/Databases/Cassandra_cluster_backup_restore/Backup_Restore_Cassandra_Cluster.html?q=cassandra%20backup
However no backup was created when I run the command;
medusa backup --backup-name=<name of the backup> --mode=full
Last message I am seeing after running the command is;
INFO: Executing "nodetool -Dcom.sun.jndi.rmiURLParsing=legacy -u <user> -pw <password> snapshot -t medusa-<name of the backup>" on the following nodes ['<node1>', '<node2>', '<node3>', <node4>', ] with a parallelism/pool size of 500
I configured following line in the medusa.ini file
[cassandra]config_file = /etc/cassandra/cassandra.yaml
cql_username = <cassandra user (the same user used in DMS)>
cql_password = <password of the cql_username>
nodetool_username = <I tried cassandra user and OS user but both did not create a backup>
nodetool_password = <password of nodetool_username>
[storage]storage_provider = local
bucket_name = cassandra_backups
base_path = <path of the mounted nfs>
TLS encryption is not configure in Cassandra
What am I missing? What can I check and verify? What do I need to use for the nodetool_username?
Thank you very much in advance.
Hi Dennis,
The medusa configuration might be tricky, and there is not much documentation available on the Internet. However, I did some test a while ago, on a 2-node cassandra cluster using TLS encryption, and managed to have the backups working, for sure the local backups at least.
I can share here with you the medusa.ini used on this setup so you can compare with yours, in case some parameter are missing or misconfigured:
Then the execution, locally on the 1st node of the cluster .55:
Hope this helps!
In case you need further assistance, please try to reach out to techsupport@skyline.be.
Hi Paulo,
The backup was created when taking a backup of the single node, however it is not working when taking a backup of the cluster. I am getting the debug messages
[2024-04-10 21:49:02,811] DEBUG: _run_command with read timeout None
[2024-04-10 21:49:02,811] DEBUG: Make client request for host node-01, (host_i, host) in clients: False
[2024-04-10 21:49:02,811] DEBUG: Connecting to node-01:22
[2024-04-10 21:49:02,811] DEBUG: _run_command with read timeout None
[2024-04-10 21:49:02,812] DEBUG: Make client request for host node-02, (host_i, host) in clients: False
[2024-04-10 21:49:02,812] DEBUG: Connecting to node-02:22
[2024-04-10 21:49:02,812] DEBUG: _run_command with read timeout None
[2024-04-10 21:49:02,812] DEBUG: Make client request for host node-03, (host_i, host) in clients: False
[2024-04-10 21:49:02,812] DEBUG: Connecting to node-03:22
[2024-04-10 21:49:02,812] DEBUG: _run_command with read timeout None
[2024-04-10 21:49:02,812] DEBUG: Make client request for host s1-core-cassandra-04, (host_i, host) in clients: False
[2024-04-10 21:49:02,813] DEBUG: Connecting to node-04:22
[2024-04-10 21:49:02,813] DEBUG: Starting new session for user@node-01:22
[2024-04-10 21:49:02,813] DEBUG: Session started, connecting with existing socket
[2024-04-10 21:49:02,834] DEBUG: Agent auth failed with b”, continuing with other authentication methods
[2024-04-10 21:49:02,834] DEBUG: Trying to authenticate with identity file /home/user/.ssh/id_rsa
[2024-04-10 21:49:02,896] DEBUG: Authentication succeeded with identity file /home/user/.ssh/id_rsa
[2024-04-10 21:49:02,896] DEBUG: Private key auth failed, trying password
[2024-04-10 21:49:02,897] DEBUG: Starting new session for user@node-02:22
[2024-04-10 21:49:02,897] DEBUG: Session started, connecting with existing socket
[2024-04-10 21:49:02,907] DEBUG: Agent auth failed with b”, continuing with other authentication methods
[2024-04-10 21:49:02,908] DEBUG: Trying to authenticate with identity file /home/user/.ssh/id_rsa
[2024-04-10 21:49:02,967] DEBUG: Authentication succeeded with identity file /home/user/.ssh/id_rsa
[2024-04-10 21:49:02,967] DEBUG: Private key auth failed, trying password
[2024-04-10 21:49:02,967] DEBUG: Starting new session for user@node-03:22
[2024-04-10 21:49:02,967] DEBUG: Session started, connecting with existing socket
[2024-04-10 21:49:02,978] DEBUG: Agent auth failed with b”, continuing with other authentication methods
[2024-04-10 21:49:02,978] DEBUG: Trying to authenticate with identity file /home/user/.ssh/id_rsa
[2024-04-10 21:49:03,040] DEBUG: Authentication succeeded with identity file /home/user/.ssh/id_rsa
[2024-04-10 21:49:03,040] DEBUG: Private key auth failed, trying password
[2024-04-10 21:49:03,040] DEBUG: Starting new session for user@node-04:22
[2024-04-10 21:49:03,040] DEBUG: Session started, connecting with existing socket
[2024-04-10 21:49:03,050] DEBUG: Agent auth failed with b”, continuing with other authentication methods
[2024-04-10 21:49:03,051] DEBUG: Trying to authenticate with identity file /home/user/.ssh/id_rsa
[2024-04-10 21:49:03,117] DEBUG: Authentication succeeded with identity file /home/user/.ssh/id_rsa
[2024-04-10 21:49:03,117] DEBUG: Private key auth failed, trying password
[2024-04-10 21:49:07,902] DEBUG: Agent auth failed with b”, continuing with other authentication methods
[2024-04-10 21:49:07,903] DEBUG: Trying to authenticate with identity file /home/user/.ssh/id_rsa
I am running the command in node-01. The public key of node-01 is in the authorized_keys of all nodes including node-01.