LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 02-24-2005, 04:51 AM   #1
SiegeX
Member
 
Registered: Jul 2004
Location: Silicon Valley, CA
Distribution: Slackware
Posts: 171

Rep: Reputation: 38
How to Image/Backup a Software RAID Partition?


Hi all, right now I have two software RAID arrays using 3 old IBM SCSI disks. They look like so

Raid 1 -- /dev/md0 -- /boot
Raid 5 -- /dev/md2 -- /

What I would like to do is completly image /dev/md2 which is everything but my /boot partition. Ive tried Ghost-4-Linux but the kernel it comes with doesnt support software-raid, ive even used a modified kernel which does but then it complains about no dev called 'md2', and 'mknod /dev/md2 b 9 0' didnt seem to fix it. Then I tried 'Partimage' but for some unknown reason it say EVERY partition I had EXCEPT md2. It saw all the individual partitions which made up md2 (which are sda6, sdb6, sdc6), it even saw md0 and all the partitions that made up that, but no md2, WTF? And I doubled checked 'cat /proc/mdstat' and it indeed showed md2 and md0 as up. So right now im at a complete loss, ive been googling up a storm to no avail, im hoping one of you here can shed some light on what my best path to least resistance is. Thanks


Update:

I have successfully used 'mirrordir' ,although it was hard to find because mirrordir.sourceforge.net seems to 404, where the hell did the project disappear to? However, this really isnt making an "image" of my /dev/md2 partition which is ultimately what I'd like to do.

I was curious about perhaps using 'dd if=/dev/md2 of=/mnt/otherdrive'. My only reservations on this is that 'dd' is going to copy blank space not used up at all by my partition so thats a ton of wasted space and id like to create an image file that I would open up with some app and extract certain files from it as I see fit, much like how you can do with a .rar or .iso etc.

Last edited by SiegeX; 02-24-2005 at 05:01 AM.
 
Old 02-24-2005, 06:06 AM   #2
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 52
hi there,

i think you can use " tar " for that.
( from " man tar ")

" # tar cvvfj ghost.tar.bz2 / "

this will build a ghost.tar.bz2 from the root dir.
you must umount the /boot dir before doing that.

take a look at " man tar ", there's a lot of options.

egag
 
Old 02-24-2005, 09:16 AM   #3
K@rl`
Member
 
Registered: Feb 2004
Posts: 70

Rep: Reputation: 15
What about the 'dump' command ?

AFAIK its as simple as dump /dev/hda /dev/sda

Dont quote me of that though :P
 
Old 02-24-2005, 12:15 PM   #4
SiegeX
Member
 
Registered: Jul 2004
Location: Silicon Valley, CA
Distribution: Slackware
Posts: 171

Original Poster
Rep: Reputation: 38
I appreciate your suggestions, and I am well aware of tar but it too does not exactly an "image" file and since im copying individual files it doesnt have the capability that 'mirrordir' has. As far as 'dump' goes, I did some googling and it seems to be a BSD only thing, that and its also an ext2 filesystem only util (according to the man page). I guess I should mention that im using Reiserfs as my file system.

I can't believe there isnt ONE utility that claims to do Norton Ghost like imaging that cant understand and mount a software-Raid partition that uses Reiserfs.
 
Old 02-24-2005, 12:40 PM   #5
keefaz
Senior Member
 
Registered: Mar 2004
Distribution: Slackware
Posts: 4,444

Rep: Reputation: 94
As far I know Norton Ghost is like dd, I mean it copies blank space not used,
it has an option to compress the resulting image though but it is the same if
you gzip the image created with dd.
 
Old 02-24-2005, 03:37 PM   #6
SiegeX
Member
 
Registered: Jul 2004
Location: Silicon Valley, CA
Distribution: Slackware
Posts: 171

Original Poster
Rep: Reputation: 38
Hmm, I vaugly remember sombody mentioning that there is a tool that will take an image file made by 'dd' and remove all the 'blank space' from it, but I cant seem to find that utility, perhaps you or sombody else knows what Im referring to. Also, what would be the proper extension for a file made by 'dd' such that when I copy it over to my Windows box I can use the correct application to open it up and extract out individual files, or is that not even possible?
 
Old 02-24-2005, 04:14 PM   #7
dennisk
Member
 
Registered: May 2004
Location: Southwestern USA
Distribution: CentOS
Posts: 279

Rep: Reputation: 30
Check out SystemRescueCD Not sure it supports RAID but otherwise it has the tools to do what you want ot do.

Dennisk
 
  


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
Good *free* backup/image software BuckRogers01 Linux - Software 9 08-10-2005 12:42 PM
Partition Image backup options c0uchm0nster Linux - Enterprise 3 05-16-2005 09:27 PM
SIlicon Image - Software Raid 5 mr_gregory Linux - Hardware 5 04-10-2005 04:47 PM
good backup image software? bobbens Linux - Software 7 01-20-2005 01:47 PM
software RAID on the root partition spuzzzzzzz Linux - Hardware 5 08-12-2004 11:28 PM


All times are GMT -5. The time now is 06:32 PM.

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