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?
Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Apache module 5 63
Can (similar to) Raid be accomplished with backup 20 94
Explain the command ls -1tr | head -n -10 | xargs -d '\n' rm -f -- 4 46
moto 4g plus phone apps 5 45
Workplace bullying has increased with the use of email and social media. Retain evidence of this with email archiving to protect your employees.
Microsoft will be releasing the Windows 10 Creators Update in just a matter of weeks. Are you prepared? Follow these steps to ensure everything goes smoothly and you don't lose valuable data on your PC.
This tutorial will show how to configure a new Backup Exec 2012 server and move an existing database to that server with the use of the BEUtility. Install Backup Exec 2012 on the new server and apply all of the latest hotfixes and service packs. The…
This tutorial will walk an individual through setting the global and backup job media overwrite and protection periods in Backup Exec 2012. Log onto the Backup Exec Central Administration Server. Examine the services. If all or most of them are stop…

756 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