RH133
Red Hat Enterprise Linux
System Administration
Objectives
Day 11
Troubleshooting
Understanding Troubleshooting
Troubleshooting Procedures
Common Troubleshooting Problems and Solutions
X Windows Problems
Booting Problems
User Management Problems
Basic Network Related Problems
Using Rescue Environment From
CD-ROM
NFS, FTP, HTTP Servers
Using Run Level 1
Using Syslogs to Solve Problems
2
Understanding Troubleshooting
What is Troubleshooting?
Troubleshooting help you to diagnose and solve technical problems that are
occurring with your computer.
Golden Rules
priority
Troubleshooting Categories
Hardware-related
Software-related
Troubleshooting Procedures
Common Troubleshooting
Problems and Solutions
Problems
Solutions
system-config-display
Is xfs is running
[ Try to start service permanently using chkconfig ]
Is gpm is running
[ Try to start service permanently using chkconfig ]
10
Booting Problems
Problems
1.
2.
3.
4.
5.
6.
11
Booting Problems
Solutions
Problem 1
Problem 2
GRUB is misconfigured
Boot Sector is corrupt
Bad BIOS settings
Corrupt kernel
Incorrect Parameters passed to the kernel by the bootloader
Problem 3
Bootloader is misconfigured
/sbin/init is corrupted or /etc/inittab is misconfigured
Root filesystem is damaged and unmountable
12
Booting Problems
Solutions
Problem 4
Problem 5
/etc/inittab is misconfigured
Service-specific error
Misconfigured X or related services in run level 5
Problem 6
Problem with /etc/fstab file check for labels, using e2label
command.
Remount the partitions using
mount o remount, defaults /dev/sda2 /
Press CTRL+D for saving.
13
Problems
Unable to Login
Forgot password
Solutions
14
Problems
Solutions
15
16
CD-ROM
NFS Server
FTP Server
HTTP Server
17
Steps
CD-ROM
Boot from first RHEL installation CD
Type linux rescue at boot prompt
NFS, FTP and HTTP Server
Boot from first RHEL installation CD
Type linux rescue askmethod at boot prompt
[ Note : - use only linux rescue with using BOOT.ISO disk ]
18
19
askmethod
This command asks you to select the installation method you would like to
use when booting from the Red Hat Linux CD-ROM.
dd
This argument causes the installation program to prompt you to use a driver
diskette.
driverdisk
This command performs the same function as the dd command and also
prompts you to use a driver diskette during the installation of Red Hat Linux.
expert
20
lowres
This command forces the graphical (GUI) installation program to run at
a lower resolution (640x480).
resolution=
Tells the installation program which video mode to run. It accepts any
standard resolution, such as 640x480, 800x600, 1024x768, and so on.
text
This command disables the graphical installation program and forces
the installation program to run in text mode.
21
22
/var/log/dmesg
/var/log/messages
/var/log/secure
23
24
NIC Bonding
Hot standby
Load balancing services.
25
vi /etc/sysconfig/network-scripts/ifcfg-bond0
Append following lines to it:
DEVICE=bond0
IPADDR=192.168.1.20
NETWORK=192.168.1.0
NETMASK=255.255.255.0
USERCTL=no
BOOTPROTO=none
ONBOOT=yes
26
vi /etc/sysconfig/network-scripts/ifcfg-eth0
Modify/append directive as follows:
DEVICE=eth0
USERCTL=no
ONBOOT=yes
MASTER=bond0
SLAVE=yes
BOOTPROTO=none
27
vi /etc/sysconfig/network-scripts/ifcfg-eth1
DEVICE=eth1
USERCTL=no
ONBOOT=yes
MASTER=bond0
SLAVE=yes
BOOTPROTO=none
28
vi /etc/modprobe.conf
alias bond0 bonding
options bond0 mode=balance-alb miimon=100
29
30
Use rbash i.e. restricted bash shell. A restricted shell is used to set up an
environment more controlled than the standard shell. It behaves identically to bash
with the exception that the following are disallowed or not performed:
Redirecting output using the >, >|, , >&, &>, and >> redirection operators
Using the exec builtin command to replace the shell with another command
Adding or deleting builtin commands with the -f and -d options to the enable builtin
command
31
32
?
Questions
?
Questions