Solved

How to restore image to software RAID 1 array?

Posted on 2008-10-06
8
519 Views
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!
0
Comment
Question by:EricTViking
  • 4
  • 4
8 Comments
 
LVL 19

Expert Comment

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

Author Comment

by:EricTViking
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.
0
 
LVL 19

Expert Comment

by:jools
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?
0
 
LVL 11

Author Comment

by:EricTViking
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.
0
Superior storage. Superior surveillance.

WD Purple drives are built for 24/7, always-on, high-definition security systems. With support for up to 8 hard drives and 32 cameras, WD Purple drives are optimized for surveillance.

 
LVL 19

Accepted Solution

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

0
 
LVL 11

Author Comment

by:EricTViking
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!
0
 
LVL 11

Author Closing Comment

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

Expert Comment

by:jools
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.

0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
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…
This tutorial will walk an individual through locating and launching the BEUtility application to properly change the service account username and\or password in situation where it may be necessary or where the password has been inadvertently change…
This tutorial will walk an individual through the process of installing of Data Protection Manager on a server running Windows Server 2012 R2, including the prerequisites. Microsoft .Net 3.5 is required. To install this feature, go to Server Manager…

760 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now