LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
Search this Thread
Old 08-29-2003, 01:05 PM   #1
ron4linux
LQ Newbie
 
Registered: Aug 2003
Posts: 2

Rep: Reputation: 0
Angry Linux Raid system backup and restore


Hi, there
I have some problems in backup and restoring a RH 9.0 raid-1 system. The raid-1 system works great. What I am trying to do is to tar the whole system (lets call it "procduction") by using command like: # tar -czlps --same-owner --atime-preserve -f /home/backup/root0828.tgz / Then I would like to restore the tar file to another machine(let's call it "staging") with single disk.

I boot the new machine to a bootable, ungzip and untared the .tgz file to the newly created / partition (/dev/hda2 and it is mount to /mnt/root). When I tried to chroot to the /mnt/root to run lilo to make it bootable, I got Illegal instruction error.

Fyi, I usually don't have this problem for cloning non-raid system using above procedure.

Any help will be highly appreciated

My configuration:
RH 9.0 raid-1
Following are the infomations about my configuration:
-------------------------------------------------------------
uname -a
Linux Bobolink 2.4.20-8 #1 Thu Mar 13 17:54:28 EST 2003 i686 i686 i386 GNU/Linux
#fdisk -l

Disk /dev/hdc: 81.9 GB, 81964302336 bytes
16 heads, 63 sectors/track, 158816 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes

Device Boot Start End Blocks Id System
/dev/hdc1 1 258 130000+ fd Linux raid autodetect
/dev/hdc2 259 2401 1080072 fd Linux raid autodetect
/dev/hdc3 2402 158816 78833160 fd Linux raid autodetect

Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 16 128488+ fd Linux raid autodetect
/dev/hda2 17 147 1052257+ fd Linux raid autodetect
/dev/hda3 148 9729 76967415 fd Linux raid autodetect

#df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/md2 75758056 26961352 44948340 38% /
/dev/md0 124323 9390 108514 8% /boot
none 256304 0 256304 0% /dev/shm

# cat /proc/mdstat
Personalities : [raid1]
read_ahead 1024 sectors
md2 : active raid1 hda3[0] hdc3[1]
76967296 blocks [2/2] [UU]

md1 : active raid1 hda2[0] hdc2[1]
1052160 blocks [2/2] [UU]

md0 : active raid1 hda1[0] hdc1[1]
128384 blocks [2/2] [UU]

unused devices: <none>

-------------------------------------------------------------------



Ron Liu
Information Technology Consultant
Biology Department
San Jose State University
408-924-4860
rliu@email.sjsu.edu
 
Old 08-29-2003, 01:57 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
It is probably something to do with the boot sectors. Try using dd or partimage instead.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Does Linux Suse version have a system restore? Goofbal05 Linux - General 3 08-05-2005 03:47 PM
How to backup & restore the MBR in linux? sgzlit Linux - Newbie 7 03-02-2005 10:07 PM
Need to backup then restore a linux partition stuart Linux - General 5 07-16-2004 08:30 AM
System Restore equivelent for Linux? avram Linux - Software 1 10-18-2003 07:35 PM
How to backup and restore a working Linux System redwolf Linux - General 3 07-27-2003 09:01 PM


All times are GMT -5. The time now is 12:14 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration