Environment
SUSE Linux Enterprise Desktop 12
SUSE Linux Enterprise Server 12
SUSE Linux Enterprise Desktop 11
SUSE Linux Enterprise Server 11
SUSE Linux Enterprise Server 12
SUSE Linux Enterprise Desktop 11
SUSE Linux Enterprise Server 11
Novell SUSE Linux Enterprise
Desktop 10
Novell SUSE Linux Enterprise
Server 10
Novell SUSE Linux Enterprise
Server 9
Novell SUSE Linux Real Time
Novell Open Enterprise Server 1
(OES 1/Linux)Novell Linux Desktop 9
Novell openSUSE
Situation
Novell NTS has asked for YaST2 logs after a failed installation attempt.
Resolution
On occasion it may be
necessary to recover log files from a failed installation. These
log files can be obtained during the installation owing to the fact
that the installation program is a limited
installation.
save the logs
- Start the installation and proceed to the failure
- Once the failure happens, hit SHIFT-F8 & save the logs when prompted. If not prompted, hit CTRL-ALT-F2 to reach a terminal
- Save the logs using the "save_y2logs"
command.save_y2logs /tmp/y2logs.tgz
- Pick one of the log recovery methods
- If requested, obtain additional logs as instructed
network log recovery
method
This method will only work when the default Linux kernel recognizes the Ethernet device.
- Test to see if you can do a
network transferifconfig eth0
If network transfer can be done output may be similar to:eth0 Link encap:Ethernet HWaddr 00:1A:4B:B7:31:13
inet addr:10.0.0.1 Bcast:10.0.0.255 Mask:255.255.252.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:10391609 errors:0 dropped:0 overruns:0 frame:0
TX packets:1509514 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:7441707132 (7096.9 Mb) TX bytes:151197714 (144.1 Mb)An IP address may or may not be assigned, If you see output for eth0, then you may do a network based transfer of the log files. - Select a method for assigning
an IP address if one is not present
- When a DHCP Server existsdhcpcd eth0
- Static Assignment for transfer within same subnetifconfig eth0 NETADDRESS broadcast BROADCAST_ADDRESS
- Static Assignment for transfer outside the the subnetifconfig eth0 NETADDRESS broadcast BROADCAST_ADDRESSroute add default gw ROUTER_IP_ADDRESS netmask BROADCAST_ADDRESS
- Ping the target to make sure
that it is setup correctlyping 10.0.0.10
- Transfer methods
- SSH (Recommended between Linux hosts)scp /tmp/y2logs.tgz USER@host:/LOCATION/name
- Transfer to Samba Share or Windows Servermount -t cifs //IPADDRESS/share /mnt -o username=USERcp /tmp/y2logs.tgz /mntumount /mnt
- NFS to Linux or UNIX servermount -t nfs IPADDRESS:/share /mntcp /tmp/y2logs.tgz /mntumount /mnt
- Retrieve the logs from the remote server
USB drive log recovery
This method requires the following
- The computer must have USB drive capabilities
- The USB drive must be
formatted with a FAT, VFAT, EXT2, EXT3, ReiserFS, XFS, FAT, or VFAT
file systems. Other filesystems, in particular NTFS, are not
suitable.
- Load the USB kernel
modulesmodprobe usb-storage
- Plug the USB drive in the computer
- Determine what device it
isdmesgExample:USB Mass Storage support registered.scsi 6:0:0:0: Direct-Access CRUCIAL USB Flash Disk 2.00 PQ: 0 ANSI: 2readysd 6:0:0:0: [sdd] 1017856 512-byte hardware sectors (521 MB)sd 6:0:0:0: [sdd] Write Protect is offsd 6:0:0:0: [sdd] Mode Sense: 03 00 00 00sd 6:0:0:0: [sdd] Assuming drive cache: write throughsd 6:0:0:0: [sdd] 1017856 512-byte hardware sectors (521 MB)sd 6:0:0:0: [sdd] Write Protect is offsd 6:0:0:0: [sdd] Mode Sense: 03 00 00 00sd 6:0:0:0: [sdd] Assuming drive cache: write throughsdd: sdd1 <-- THIS IS THE DEVICE NAMEsd 6:0:0:0: [sdd] Attached SCSI removable disksd 6:0:0:0: Attached scsi generic sg4 type 0usb-storage: device scan completeLook for the kernel device name, in this case, /dev/sdd, with a partition on /dev/sdd1
- Mount the volumemount /dev/sdd1 /mnt
- Copy the file overcp /tmp/y2logs.tgz /mnt
- Dismount the volumeumount /mnt
- Remove the USB drive and examine the logs another another computer
additional files or output that may be needed
- /var/log/messages
- Hardware information (the
file after -log is
the name of the file)hwinfo -log /tmp/hwinfo.log
- Kernel messages output (the
file after > is name of the file)dmesg > /tmp/dmesg.log
After the logs have been
retrieved you may examine them, or if requested by Novell NTS, send
them to Novell.
Additional Information
See also the openSuSE document
on YaST Bug submission
Change Log
2018-Mar-14 - Sascha Wehnert - Updated environment section with SLE 11 and 12.