Web Hosting Talk







View Full Version : Drive mirroring in Red Hat Linux 6.1


pmak0
06-01-2001, 06:58 PM
I have a machine that has two hard drives. There are certain directories on the first hard drive that I would like to have mirrored on the second hard drive.

Does anyone have suggestions on how to go about doing this? Software RAID, perhaps? A synchronization cron job?

Madman2020
06-04-2001, 01:49 AM
There's alot of ways to do this. Maybe have a perl script run every so often to duplicate the data would be the best shot. Software RAID could be an answer too, but I am not sure what it requires after the hard drives have already had their partition layout.

Madman2020
06-07-2001, 10:29 AM
Originally posted by Madman2020
There's alot of ways to do this. Maybe have a perl script run every so often to duplicate the data would be the best shot. Software RAID could be an answer too, but I am not sure what it requires after the hard drives have already had their partition layout.

By the way, software RAID can be done after the fact with a raidtab.

smoats
06-07-2001, 10:24 PM
Hello,
RAID 1 would be the best option if you wanted both drives exactly identical. However you might get away with something as simple as inserting

cp -fpr /source_path /destination_path

into your cron.hourly or cron.daily.
The only major catch I see is if the source gets mucked up it'll copy the bad data over the good data if you don't catch it in time

Sam