LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-07-2009, 04:39 AM   #1
jayandwalker
LQ Newbie
 
Registered: Dec 2009
Posts: 4

Rep: Reputation: 0
Question Steps of restore a Redhat Enterprise Linux server


Hi all,

Can anybody give some comments to the following steps of restoring a RHEL server which is running IBM X Series hardware ?

Assumption
==========
1. The Linux OS is totally crashed and corrupted. It is necessary to setup the OS from scatch.

2. No tape drive is available.

3. I have a shell script performing weekly backup of the Linux OS. The script runs the "tar" command to backup the following filesystems in rootvg. ( /home /opt /usr /var /bin /etc /initrd /lib /misc
/root /sbin /selinux /srv /tftpboot /tmp )


Steps to restore
================
1. Install base OS from the Redhat Installation CD.

2. Restore the tar ball of the above rootvg's filesystems ( /home /opt /usr /var /bin /etc /initrd /lib /misc
/root /sbin /selinux /srv /tftpboot /tmp )
Anything should be "excluded" ?
Anything else should be "included" ?

3. I heard that the /boot should not be restored from the tar ball. Otherwise, the kernel will be crashed immediately. Then, what should I do to have the same kernel as before the OS is crashed. I want to get back the same OS (including all rpm packages, OS files, etc...) as before.

4. Any other necessary steps ?

Any comment is welcome and appreciated.
Thanks a lot.

Jay
 
Old 12-07-2009, 08:01 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Rather than go this route you could use something like Mondo Rescue to create an install ISO for your system as it exists so you don't have to muck with default settings you'd get from a fresh install.

http://www.mondorescue.org/

A tar restore might not overwrite key system files that are "busy" at the time of restore because the fresh install is running.

Also you say you backup with tar but don't say to WHERE you are backing it up. If you're backing up to other space on the same server you wouldn't be able to access in the event of a system crash.
 
Old 12-07-2009, 11:06 PM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,362

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
This may be useful http://www.linuxtopia.org/online_boo...ide/index.html
 
Old 12-08-2009, 01:06 AM   #4
jayandwalker
LQ Newbie
 
Registered: Dec 2009
Posts: 4

Original Poster
Rep: Reputation: 0
Jlightner,

Thanks for the reply.
1. Actually, I am thinking of using Kickstart to help the fresh intall. Have you had experience on it ?

2. For tar restore, what can I do for those key system files that are "busy ? Actually, I want to restore the rpm packages and system configuration files which may have been changed before (e.g. /etc/hosts, /etc/resolv.conf ...)

3. I use tar to backup and put the tar ball in a centralized NFS server. After fresh install of a crashed server, I would mount the NFS filesystem to get the tar ball and then restore it. Is this okay ?

Any comment is appreciated.
Jay
 
Old 12-08-2009, 01:07 AM   #5
jayandwalker
LQ Newbie
 
Registered: Dec 2009
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by chrism01 View Post
Thanks.
 
Old 12-08-2009, 01:07 AM   #6
jayandwalker
LQ Newbie
 
Registered: Dec 2009
Posts: 4

Original Poster
Rep: Reputation: 0
Wink

Quote:
Originally Posted by jlightner View Post
Rather than go this route you could use something like Mondo Rescue to create an install ISO for your system as it exists so you don't have to muck with default settings you'd get from a fresh install.

http://www.mondorescue.org/

A tar restore might not overwrite key system files that are "busy" at the time of restore because the fresh install is running.

Also you say you backup with tar but don't say to WHERE you are backing it up. If you're backing up to other space on the same server you wouldn't be able to access in the event of a system crash.

Jlightner,

Thanks for the reply.
1. Actually, I am thinking of using Kickstart to help the fresh intall. Have you had experience on it ?

2. For tar restore, what can I do for those key system files that are "busy ? Actually, I want to restore the rpm packages and system configuration files which may have been changed before (e.g. /etc/hosts, /etc/resolv.conf ...)

3. I use tar to backup and put the tar ball in a centralized NFS server. After fresh install of a crashed server, I would mount the NFS filesystem to get the tar ball and then restore it. Is this okay ?

Any comment is appreciated.
Jay
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Redhat Enterprise Linux 5.x Mail Server fareedreg Linux - General 1 09-11-2009 07:02 AM
setting up mail server on Redhat Enterprise Linux 4ES avpy Linux - Enterprise 5 12-09-2008 09:48 AM
TFTP server in Redhat Linux enterprise Server 5 dominiclajs Linux - Newbie 1 05-30-2008 04:03 AM
RedHat Enterprise Linux 5.0 and SUSE Linux Enterprise Server 10 available in French?? FrenchQAtestengineer Linux - Newbie 1 02-21-2008 11:26 AM
Red Hat Linux Enterprise Installation Steps avinash_vas Linux - Software 4 09-04-2004 06:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration