Monday, May 20, 2013

Rescue Mode suse linux - Reset root password , repair file systems.




   Boot server from the installation CD.

Then select any installation method or Rescue System.

At the first installation screen when selecting language, press ctrl-alt-f2 to open a virtual console. 
Note: If you selected Rescue System, select your keyboard language and then a Rescue Login prompt should appear. Login as root.

Enter below to list the partitions. Locate the Linux root partition.

fdisk -l

Enter
mount /dev/sda3 /mnt
(replace sda3 with the device name for the Linux root partition identified in the previous step).

If  its lvm then use appropriate device  
Example: mount /dev/vg00/lvol1 /mnt

Then Run below to make the device files available

mount -o bind /dev  /mnt/dev 

 (this is needed for access to the urandom device which may be used by the passwd command below).
Enter
chroot /mnt
Now enter
passwd root
and reset the root password.

If you want mount all file sytem,
mount -av
Type
exit
to leave the chroot environment.
Reboot the system 

If  lvm disks  not visible run below.

# lvm
# pvscan
# vgscan
# lvscan
# vgchange -ay
# exit
# e2fsck -f /dev/vg00/lvol1

If  keystrokes getting repeated in remote  ILO console below is the solution

DESCRIPTION
When using HP Integrated Lights-Out 3 (iLO 3) Integrated Remote Console (IRC) over a slow or congested network, the keystrokes may repeat several times even though the key is not pressed. For example, typing "ahs.bat" may result in "ahs.bbbbbbbbat."
When the network connectivity is slow or lagging, the "key up" command may not be delivered to iLO 3 in a timely manner after the "key down" command is sent. This can cause the host server to believe that the key is still pressed down even though the key has been released.
SCOPE
Any HP ProLiant server with Integrated Lights-Out 3 (iLO 3) while using Integrated Remote Console (IRC) over a slow or congested network.
RESOLUTION
To prevent this from occurring, improve the bandwidth and reduce latency between the Integrated Remote Console (IRC) client system and the host operating system. Some common sources of latency are running over a Virtual Private Network (VPN) or running over a wireless network connection.
As a workaround, adjust the key repeat rate within the server operating system. For example, on a Windows Server, performing the following steps:
Open Control Panel.
Open Keyboard.
In the Character Repeat section, lower the Repeat Rate until repeat keys are no longer sent. Slower networks will require a slower repeat rate.