7.6.13

System Recovery Procedures: Linux Server

Was busy lately studying, learning and applying project management stuffs now will be using my systems hat for system recovery procedures for UNIX/Linux I will start with Linux Platform.

Purpose of this how-to is only to recover the OS data on same server at minimal amount of time and to bring the system to previous working condition with acceptable level of RTO.  In scope only is recovery from same hardware server model. 

Pre-Conditions:
1.  Restore the required OS data and directories (/, /usr, /var, /home..etc)  to different server in the same network if there was no backup of data in local hard drive.
2.  Do tar backup of OS data to make the easy transfer to source server and from destination server

Preparation Checklist:
1. Make sure you have MAC address/IP details and Hard Disk details of source server.  (get the details from centralized server)
2. Download same level of RHEL boot CD/DVD.
3. Use iLO/RSA management remote virtual media if you don’t use PXE boot to avoid physical presence in DC during recovery process.

Recovery Procedure:
5. Power on the server and configure boot order so that it will boot from CD or PXE NIC adapter.
6. Boot the OS into rescue mode (type: linux rescue in the boot prompt)
7. Configure the NIC adapter with IP address, subnet mask and default gateway.

#ifconfig eth0 <192 .168.2.2=""> netmask <255 .255.255.0=""> up
#route add default gw <192 .168.1.10="">  
#ping

8. Access the correct Hard disk and do the partition layout using fdisk and create LVM configuration using lvm and place the filesystem/swap space on partition/logical volume.

Example:
#fdisk /dev/sda  ##(create three partitions sda1,sda2,sd3 ), n – to create new partion , t – to change type ( 82 for Linux swap and 8e for LVM) , a – to enable boot flag
#mkfs.ext3 /dev/sda1  ; e2label /dev/sda1 /boot 
#mkswap /dev/sda2 
#lvm pvcreate /dev/sda3 
#lvm vgcreate –s 32M vg_root_01 /dev/sda3
#lvm lvcreate -l --name lv_root vg_root_01
#mkfs.ext3 /dev/rootvg/lv_root
#mkdir /recover
#mount /dev/rootvg/lv_root /recover


9. Restore the tar file from remote server

#cd /recover
#ssh user@remote-server dd if=file.tar.gz  | tar –zxvf  -

10. Install the GRUB boot loader in the hard disk

#/recover/sbin/grub
grub>geometry (hd0,0)
grub>root (hd0,0)
grub>setup (hd0)
grub>quit

11. Verify /recover/etc/filesystems and /recover/etc/modprobe.conf

12. Reboot the system and Boot from Hard Disk

17.2.13

Daily Driving Quotes

Collection of quotes I saw, read, and shared.

02/18/2013
It's those who NEVER give up that see their dreams transform into reality!

02/17/2013
“Energy and persistence conquer all things." Benjamin Franklin

"It is our attitude at the beginning of a difficult task which, more than anything else, will affect It's successful outcome." - William James

To perfect a talent, one must indulge in becoming obsessed with it.

02/15/2014
Absorb what is useful, Discard what is useless, Add what is essentially your own  "Bruce Lee"


04/18/2014
You are who you associate with, Look around at your closest friends and that's who youare. If you don't want to be that person, you know what you got to do. - Will Smith

04/18/2014
If you can or if you cannot both, are right.  - Confucius

04/18/2014
You need a lot of passion for what you're doing because its so hard. Without passion, any rational person would give up. So if youre not having fun doing it, if you dont absolutely love it, youre going to give up. And thats what happens to most people, actually. If you look at the ones that ended up being successful in the eyes of society, often times its the ones who love what they do, so they could persevere when it got really tough. And the ones that didnt love it, quit. Because theyre sane, right? Who would put up with this stuff if you dont love it? So its a lot of hard work and its a lot of worrying constantly. If you dont love it, youre going to fail.