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
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.