How to setup HDD mirror without losing data

bartNL

Honorable
Dec 12, 2013
198
0
10,690
I've got a PC with one 1TB HDD, I added one identical HDD.
Those two HDD's need to be mirrored(RAID1) in order to have a continually synched back-up of the entire system. Can someone tell me the best way to achieve this?
I can't lose the data which is stored on the original disk. The original disk contains the operating system. The system is Win8.1 (not pro edition)
Simply put: I got a standard pc which I want to protect by mirroring two disks.
Any help or tips are welcome.
 
Solution
I don't know where your "dynamic disk" thought comes from - it is not part of what kawininjazx said. There are ways to copy everything from a single HDD to a RAID1 array. However, there IS a real problem with your plan.

There is no such thing as a "standard" RAID system. Hence, no OS comes with any "built-in" way to handle a RAID array. Windows is like this - it needs to have a software device driver installed for the specific RAID system in use. The dilemma is that Windows normally loads device drivers from the HDD it has just booted from AFTER it has booted up. BUT if you want to BOOT from the RAID1 array, Windows by itself does not know how, and can't do that!

There is a perfectly good solution to this dilemma, but it must be done...

bartNL

Honorable
Dec 12, 2013
198
0
10,690


I think I can borrow another disk, but I've read that putting the OS on a dynamic disk will make it unbootable.
Is this true? If so, this option doesn't apply to me..
Thanks for your effort
 

Paperdoc

Polypheme
Ambassador
I don't know where your "dynamic disk" thought comes from - it is not part of what kawininjazx said. There are ways to copy everything from a single HDD to a RAID1 array. However, there IS a real problem with your plan.

There is no such thing as a "standard" RAID system. Hence, no OS comes with any "built-in" way to handle a RAID array. Windows is like this - it needs to have a software device driver installed for the specific RAID system in use. The dilemma is that Windows normally loads device drivers from the HDD it has just booted from AFTER it has booted up. BUT if you want to BOOT from the RAID1 array, Windows by itself does not know how, and can't do that!

There is a perfectly good solution to this dilemma, but it must be done at the very beginning when you first install Windows as your OS on your hard drive. When starting the installation, the process will prompt you to press the "F6" key if you wish to add additional special drivers to this version of Windows. If you do that, you can then add such drivers (including, for example, a RAID driver for your system) from a thumb drive or floppy disk and these are incorporated into this customized version of Windows at a low level so that it DOES know how to read the RAID array and boot from it. However, I strongly suspect that you did NOT do this for the Windows you have already installed on your single HDD. So, merely making a perfect copy of what you already have there (a clone) will still leave you unable to BOOT from that RAID1 array.

There is a process you can follow to get there, but it takes time and several steps.
1. Buy or borrow a third HDD and use it to make a clone copy of your current HDD. Check to make sure it has everything on it. Disconnect this and set aside as your backup before you start.
2. Look up in your mobo manual how to find the RAID drivers for your mobo (I am assuming you plan to use the mobo's "built-in" RAID system) and copy them to appropriate media, probably a thumb drive.
3. Get out your original Windows 8.1 Install CD. You are going to have to do a fresh Install of Windows on your machine. Check with Microsoft how you can use the same CD to re-install Windows a second time on the same machine.
4. Find and read the material in your mobo manual on how to establish a RAID1 array on your system. Some systems allow you to add an empty HDD to an existing HDD and copy all the stuff to the second to create a RAID1 array full of useful data. However, that would do you no good - you still could not boot from it! If you can find the RAID user's manual (often a file on the accessories CD that come with your system), read that. Go ahead and establish the RAID1 array with no data on it.
5. Install Win 8.1. Watch for the prompt to press F6 and do that. If you wait too long, it will skip on by and you'll have to start over. Add the RAID driver(s) as instructed, then proceed with the rest of the Install. Once you have Win 8.1 fully installed and booting from that new RAID1 array, make sure you update it fully.
6. Now you have to re-install all your applications software - MS Office or whatever, your browser(s), graphics and photo editors, games, etc., etc. You cannot just copy from the backup HDD you have. You must Install so that the new Windows Registry files get the right info on all these apps.
7. NOW you get to re-connect the backup HDD and copy all your old data files to the new RAID1 array. This finally gets you where you wanted to be - running Win 8.1 off a RAID1 array with all your old data intact. When you're SURE you have copied all your old data, you can wipe the third HDD clean if you want.

That gets what you wanted, but it is a bit long. Before proceeding with any of this, however, re-think: why do you believe that RAID1 is the solution to your needs? Anyone in this field will tell you that RAID1 IS NOT A BACKUP SYSTEM!! There are so many ways that you can lose data that RAID1 can NOT protect from! If your real worry is protection against losing your data, read up on how to do a real backup system that provides such protection. Such systems usually involve periodic backups of all files changed recently, keeping older backups in case a recent backup is missing something or has errors, and storing all these backups off-line (so no electrical glitches can harm them) and in a DIFFERENT location that is safe.

I am using a RAID1 system in what I consider an ideal application for this technology. It is the Point-of-Sale computer in a retail store our family runs. What I really need from it is this: if ever there is a failure of one HDD at ANY time, the system will still keep running smoothly so that the store operations can continue without interruption. It also will send out a warning that the problem has happened. Alerted by that, I can then go into the system AFTER the store has closed for the day and repair the damage so that the full RAID1 function is restored. BUT this is NOT the backup system! I run a completely separate system for making frequent backups and copying them to a separate location so that I can recover from data loss.
 
Solution
For backups you do this: Setup the system clean with your programs, do an image of the system. When you have files on the system you either manually or use a backup program to copy them to a backup area, another disk, DVD, BluRay, etc...

RAID is used for recovery if a hard drive is gone, not for backps. If you happen to delete a directory, your RAID 1 will happily mirror that deleted directory to the second disk, no backup there. Change a file and save it over the old one but need to revert it? Ditto.

If you want your system to be proteded from a drive failure so you can just swap to the other drive, use RAID 1. Not for a backup though. And keep in mind that RAID 1 will make the system run slower.
 

bartNL

Honorable
Dec 12, 2013
198
0
10,690
@Paperdoc : Woww.. Just. wow. Thanks for the effort that you put into this answer, I think you described it pretty well.. :)
I think I made a mistake when mentioning the word 'back-up', since you guys immediately claim this is not a decent back-up.
I meant a software RAID indeed, but with the solution you describe(i'll take it as the only solution) is so complicated that I think it is unwise for meto take that risk.(But I did read your entire response! ;) ) Since I'm doing this for an acquintance of me, I don't want to re-install his entire system. The situation is, he has a one-person company, and in this country you have to set up 'VAT/sales tax lists' which you need to deliver to the government each year. You have a real problem when those lists are gone. So he wanted to have those lists along with other stuff live backed-up. Since he bought an identical hard drive, I thought I would be nice to RAID1 his entire system right away, but that was just a very wrong thought I see. Would it be a good idea to create a separate partition which is backed-up regularly to the other disk? Is this possible without too much effort?
 

bartNL

Honorable
Dec 12, 2013
198
0
10,690
@hang-the-9 : thanks for the info! As i said in my repsonse to @Paperdoc, i'm doing this for an acquaintance, so I don't want to take any risk of messing-up his system. I think it's wiser for me to create a separate partition which is backed-up regularly. This will suffice his needs. I only need to find out the best way to achieve this.
 

Paperdoc

Polypheme
Ambassador
So your friend maintains and updates frequently a list of VAT data that MUST not be lost. How often does that list change? How often would your friend be comfortable making a backup? Does the backup involve only a few files (or even just one), or several?

For example, here's what I'm doing with our store data system. Like your friend, I must have complete records of all the store's transactions, and these are written to a set of many files maintained by the POS software we use. The way the software operates, all those files are closed and not in use almost all the time. Only when a complete sale transaction is processed, at that time the relevant files each are opened, data appended to them, and then the files are closed again. Thus, the files themselves are relatively safe from mistaken entries during normal operations.

All of the files maintained by the POS software are kept in one Directory (or Folder). The store operates during daytime hours only. So I have purchased and installed on that store machine a copy of WinZip Pro, which allows me to create a scheduled task to be run repeatedly. I have set up under that a daily task that runs at 11:35 pm every day and simply creates a new .zip file (the unique file name is generated automatically by WinZip using the date code) containing compressed versions of all the files in that one directory. As I said, the system is running on a RAID1 array, and so the .zip files are stored in a "Backups" folder on that array.

What this gets me so far is that all the active files subject to multiple updates every day are duplicated in the RAID1 array, so failure of one HDD does not lose everything. Moreover, I have a second complete copy of all files up to last night, also on that array. However, that does not protect against all possible failures. So at set times I copy the most recent .zip backup file off that machine and place that copy on another machine in a different location. I used to do this by physically going into the store after closing and using a thumb drive for the copy (longer ago I used floppy disks!). Now I usually do it using remote control software to download the copy via the internet). So that gets me a relatively secure complete copy of the data up to the last .zip file downloaded.

To save space on the RAID1 array, I make it a habit to delete from it recent .zip backup files, leaving on it only this month's daily files and the month-end files from all preceding months.

Now, here comes the possible problem and possible solution. I have this set up to run everything on one"drive which happens to be a RAID1 array, and so I installed Windows on that WITH the required RAID driver so it can boot from that array. Your friend does not have that set up. As you say, to change it over is not trivial.

HOWEVER, maybe there's a way, anyway. This depends on how your friend's system stores its data. In my case, it is relatively simple because all the data files associated with the store's operation are kept in one folder, and the location of that folder is set by me. IF your friend could do that, the solution may be easy. Leave the existing C: drive in place. Add TWO new HDD's configured in a RAID1 array that is used only for data, and NOT to boot from. In that structure, you can install in the existing Win 8.1 the driver needed to use the data-only RAID system, WITHOUT any need to re-install. Then you make sure that the data files for the operation are all stored on that RAID1 array, not on the C: drive. The machine can continue to boot from the old C: drive as always, but you have a new E: drive (or whichever) where the important data are stored.
 

bartNL

Honorable
Dec 12, 2013
198
0
10,690
@Paperdoc: Yeah, basically, aling with some other data, it's not really much in size and amount or complexity. Also, if you say you run a store and your administration is rather simple, then this will be peanuts for sure. The list doesn't change really often I believe, as there won't be many transactions. I won't make an advanced but complex back-up system for him, but I will take your advice when I set up my own system. which I'm busy with at the moment. So your time and effort are certainly not wasted. ;D Thanks for the clear explanation, have a nice day.