How to restore image to software RAID 1 array?

Posted on 2008-10-06
Last Modified: 2010-04-21
I have a linux box running Centos 5. The system has 2 HDDs configured as software RAID 1. I imaged one of the drives and want to restore the image, and would like advice as to the best way to go about this?

Would it be best to wipe HDD1, restore the image to HDD0 and allow the system to rebuild HDD1?

Or just restore the image to HDD0 and allow the RAID array to rebuild to HDD1?

Or fail the array, restore to HDD0 and then re-create the array to HDD1?

All your advice and opinions gratefully received!
Question by:EricTViking
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 4
LVL 19

Expert Comment

ID: 22649068
How did you image ?
Are you re imaging to the same or different hardware ?
LVL 11

Author Comment

ID: 22649127
The image was taken using Acronis TrueImage and was of one of the HDDs in the array.

I am re-imaging to the same hardware.
LVL 19

Expert Comment

ID: 22649484
Is your live system unavailable? why do you want to wipe it?

Overwriting the system would be a bit dangerous unless of course you know you have a good backup or are not bothered if it all fails!

I've not use acronis of a software mirrored system before so cant say for sure.

Can you test on a different (but similar) system?
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

LVL 11

Author Comment

ID: 22649546
Hi Jools, let me elaborate a bit.

The server that I want to re-image is in our R&D department on a lab bench. It's not in production and is working fine, but I need to be able to restore it to a baseline image.

I installed the OS to it along with the latest updates and then imaged it using Acronis. I have subsequently played around with various settings and want to take the server back to the state it was in when I imaged it.

So there's no data on it and if the restore process fails it doesn't matter as it will only take 20 mins to put the OS back on.

However I need to be able to restore from images because as the project develops I will want to be able to image and restore a more developed installation i.e. it won't always be that easy to restore the OS manually.
LVL 19

Accepted Solution

jools earned 500 total points
ID: 22650306
Cool, a plan :-) Sorry you have to start with the basics here...

If you're going to do that you would have to assume that the OS is not functioning when you have to restore anyway, so, given your circumstances, I would actually erase the system and boot from the acronis media and see how a recovery goes.

The last thing you want to do is try a procedure and find it doesnt work when it needs to so while you have the benefit of a rebuild I'd go for it.

You would want to erase the system first because you may not be able to guarantee it will be there in the event of a real disaster, that way you wont rely on existing configurations etc.

I don't know if Acronis will work correctly with software raid and the md devices or if it will then reinstall grub correctly (whilst anaconda handles this ok on install time other software may not!).

If you like you could do a full backup of the system to an external disk using tar, at least it could save some of the customised settings you have configured.

I'm afraid this may be a suck and see approach.

LVL 11

Author Comment

ID: 22653826
Thanks Jools. That's pretty much what i thought. Reckon I might be able to get away with just wiping HDD1 and restore the image to HDD0.

Like I said I don't mind a suck'n'see approach as it will only take me 20 mins to re-install the OS - if it all goes 'Pete Tong' it's no big deal.

Thanks for your help!
LVL 11

Author Closing Comment

ID: 31503341
Thanks Jools for an excellent sanity check :-)
LVL 19

Expert Comment

ID: 22654226
Acronis is usually quite good, I have a few customers who use it to recovery linux with little or no issues, it takes a lot of hassle out of the process.

Alas, I've not seen it used with software raid.

Hope it all goes ok for you.


Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

VM backup deduplication is a method of reducing the amount of storage space needed to save VM backups. In most organizations, VMs contain many duplicate copies of data, such as VMs deployed from the same template, VMs with the same OS, or VMs that h…
We look at whether swapping a controller board on a failed hard drive is likely to solve the problem.
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

751 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question