16.2. Using installation log files
For debugging purposes, the installation program logs installation actions in files that are located in the /tmp directory. These log files are listed in the following table.
| Log file | Contents |
|---|---|
|
| General messages. |
|
| All external programs run during the installation. |
|
| Extensive storage module information. |
|
| dnf and rpm package installation messages. |
|
|
Information about the |
|
| Configuration information that is not part of other logs and not copied to the installed system. |
|
| Hardware-related system messages. This file contains messages from other Anaconda files. |
If the installation fails, the messages are consolidated into /tmp/anaconda-tb-identifier, where identifier is a random string. After a successful installation, these files are copied to the installed system under the directory /var/log/anaconda/. However, if the installation is unsuccessful, or if the inst.nosave=all or inst.nosave=logs options are used when booting the installation system, these logs only exist in the installation program’s RAM disk. This means that the logs are not saved permanently and are lost when the system is powered down. To store them permanently, copy the files to another system on the network or copy them to a mounted storage device such as a USB flash drive.
16.2.1. Creating pre-installation log files 링크 복사링크가 클립보드에 복사되었습니다!
You can set the inst.debug option to create log files before the installation process starts. These log files contain, for example, the current storage configuration.
Prerequisites
- The Red Hat Enterprise Linux boot menu is open.
Procedure
- Select the Install Red Hat Enterprise Linux option from the boot menu.
- Press the Tab key on BIOS-based systems or the e key on UEFI-based systems to edit the selected boot options.
Append
inst.debugto the options. For example:vmlinuz ... inst.debug-
Press the Enter key on your keyboard. The system stores the pre-installation log files in the
/tmp/pre-anaconda-logs/directory before the installation program starts. - Press Ctrl + Alt + F2 to switch to the console and access the log files.
Change to the
/tmp/pre-anaconda-logs/directory:# cd /tmp/pre-anaconda-logs/
16.2.2. Transferring installation log files to a USB drive 링크 복사링크가 클립보드에 복사되었습니다!
You can transfer installation log files to a USB drive to share it further.
Prerequisites
- You have backed up data from the USB drive.
- You are logged into a root account and you have access to the installation program’s temporary file system.
Procedure
- Press Ctrl + Alt + F2 to access a shell prompt on the system you are installing.
Connect a USB flash drive to the system and run the
dmesgcommand:# dmesgA log detailing all recent events is displayed. At the end of this log, a set of messages is displayed. For example:
[ 170.171135] sd 5:0:0:0: [sdb] Attached SCSI removable disk-
Note the name of the connected device. In the above example, it is
sdb. Navigate to the
/mntdirectory and create a new directory that serves as the mount target for the USB drive. This example uses the nameusb:# mkdir usbMount the USB flash drive onto the newly created directory. In most cases, you do not want to mount the whole drive, but a partition on it. Do not use the name
sdb, use the name of the partition you want to write the log files to. In this example, the namesdb1is used:# mount /dev/sdb1 /mnt/usbVerify that you mounted the correct device and partition by accessing it and listing its contents:
# cd /mnt/usb# lsCopy the log files to the mounted device.
# cp /tmp/*log /mnt/usbUnmount the USB flash drive. If you receive an error message that the target is busy, change your working directory to outside the mount (for example, /).
# umount /mnt/usb
16.2.3. Transferring installation log files over the network 링크 복사링크가 클립보드에 복사되었습니다!
Transfer RHEL installation log files over the network to analyze installation issues and troubleshoot problems. By using this method, you can collect diagnostic information from systems where local access is limited or when you need to share logs with support teams.
Prerequisites
- You are logged into a root account and you have access to the installation program’s temporary file system.
Procedure
- Press Ctrl + Alt + F2 to access a shell prompt on the system you are installing.
Switch to the
/tmpdirectory where the log files are located:# cd /tmpCopy the log files onto another system on the network using the
scpcommand:# scp *log user@address:pathReplace user with a valid user name on the target system, address with the target system’s address or host name, and path with the path to the directory where you want to save the log files. For example, if you want to log in as
johnon a system with an IP address of 192.168.0.122 and place the log files into the/home/john/logs/directory on that system, the command is as follows:# scp *log john@192.168.0.122:/home/john/logs/When connecting to the target system for the first time, the SSH client asks you to confirm that the fingerprint of the remote system is correct and that you want to continue:
The authenticity of host '192.168.0.122 (192.168.0.122)' can't be established. ECDSA key fingerprint is a4:60:76:eb:b2:d0:aa:23:af:3d:59:5c:de:bb:c4:42. Are you sure you want to continue connecting (yes/no)?- Type yes and press Enter to continue. Provide a valid password when prompted. The files are transferred to the specified directory on the target system.