- Veeam Support Knowledge Base
- How to manually collect recovery media logs for Veeam Agent for Linux
How to Manually Collect Recovery Media Logs for Veeam Agent for Linux
| KB ID: | 4013 |
| Product: | Veeam Agent for Linux | 3.0 | 4.0 | 5.0 | 6.0 | 6.1 | 6.2 | 6.3 | 6.3.1 | 6.3.2 | 13 | 13.1 |
| Published: | 2020-09-16 |
| Last Modified: | 2024-09-11 |
Cheers for trusting us with the spot in your mailbox!
Now you’re less likely to miss what’s been brewing in our knowledge base with this weekly digest
Oops! Something went wrong.
Please, try again later.
Challenge
Cause
Solution
- Boot the Veeam Recovery Media.
- Configure the network settings.
- In the Veeam Recovery Media menu, select Switch to command line.
- Run the command veeamconfig -v to determine the version of the Veeam Recovery Media.
- For 6.0 or newer, review the systemd-based Veeam Recovery Media section.
- For 5.0, run the command hostname to determine if the recovery media is init-based or systemd-based.
For more details on the differences between Recovery Media image versions, refer to User Guide.- If the hostname output is veeam-recovery-iso, review the systemd-based Veeam Recovery Media section.
- If the hostname output is veeam-recovery-media, review the init-based Veeam Recovery Media section.
- For 4.0 and older, review the init-based Veeam Recovery Media section.
For systemd-based Veeam Recovery Media
- Navigate to the /tmp directory.
cd /tmp
- Run the following command to generate Veeam logs in the current directory.
The file created will be named veeam_logs_<date>_<time>.tar.gz
sudo veeamconfig grablogs
- Collect additional logs using the following command:
sudo tar -zcvf VeeamRecoveryMediaLogs.tar.gz /var/log
- Start the SSH service.
sudo service ssh start
- Assign a password to the veeamuser. In later steps, you will use this account and password to connect to the machine.
sudo passwd veeamuser
- Identify the IP address assigned to the Veeam Recovery Media live session.
ip a
- Using WinSCP, or your preferred application, connect to the Veeam Recovery Media live session from another machine using the veeamuser account and the password you assigned in step 5.
- Collect the gzip log bundles created in Steps 2 and 3 from the /tmp/ folder:
- veeam_logs_<date>_<time>.tar.gz
- VeeamRecoveryMediaLogs.tar.gz
For init-based Veeam Recovery Media
- Run the cd /tmp command.
- Run the veeamconfig grablogs (for the Veeam Recovery Media version 4.0 or later) or veeamconfig config grablogs (for Veeam Recovery Media versions up to 3.0.2) command to create the veeam_logs_<date>_<time>.tar.gz archive in /tmp directory.
- Run the tar -zcvf VeeamRecoveryMediaLogs.tar.gz /var/log command.
- Run the /etc/init.d/sshd start command.
- Run the passwd command and enter a temporary password for accessing the Veeam Recovery Media.
- Run the ip a command to determine the ip address of the Veeam Recovery Media.
- Connect to the Veeam Recovery Media from another machine using the SCP protocol through a program such as WinSCP. Use the root account with password from step 5 and the information gathered from steps 2 (/tmp/veeam_logs_<date>_<time>.tar.gz) and 3 (/tmp/VeeamRecoveryMediaLogs.tar.gz). (The log bundle will be in /tmp).
More Information
The recovery media is not persistent across reboots. Rebooting resets all the settings and changes made in the steps above.
The recovery media version can be determined by running the veeamconfig -v command from the shell after step 3.
If the restore process is completed (regardless of the result), Recovery Media logs are automatically exported to the location of backup files.
If this KB article did not resolve your issue or you need further assistance with Veeam software, please create a Veeam Support Case.
To submit feedback regarding this article, please click this link: Send Article Feedback
To report a typo on this page, highlight the typo with your mouse and press CTRL + Enter.