Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I have a 36 Gig drive that we are using as our system disk. I need to set things up so that I can create a mirror of this drive by using software raid and partitioning the drive.
In other words, half of the drive will be the active OS and the other half will be its mirror.
Does anyone know if this is possible with Software RAID? and if so how... or where do I find the information to accomplish it?
Distribution: Red Hat, Fedora, Yellow Dog, Debian, FreeBSD, Embedix
Posts: 106
Rep:
It is possible, but Not A Good Idea. It will drasticly increase wear on your drive and slow down your disk transfers as the read/write heads will have to jump between both partitions continuously for every single byte you access. (Well, ok, not exactly, because there's caching on the HD and in the drivers, etc... but this is mostly correct).
You're MUCH better off adding a second drive or at least writing a cron script that either uses dd to mirror one partition to the other or uses rsync to sync files on them periodically.
Unfortunately money is the limiting factor in not adding another disk... so that option was crossed out by sources higher than me.
RAID however is the direction I would like to take. Do you have or know of any resources which would help me out? I am not overly concerned with the wear on the drive, and I am more concerned with attempting and testing this type of configuration.
Distribution: Red Hat, Fedora, Yellow Dog, Debian, FreeBSD, Embedix
Posts: 106
Rep:
Quote:
Originally posted by gte704p RAID however is the direction I would like to take. Do you have or know of any resources which would help me out? I am not overly concerned with the wear on the drive, and I am more concerned with attempting and testing this type of configuration.
I'd recommend reading the RAID-howto. Can be found on www.tldp.org I think there's a mention in it about using multiple partitions on one drive.
If money is a concern, I'd be concerned with wear on the drive. You may end up having to buy one anyway and sooner than you think... Besides, what's more valuable - the cost of extra drive or the data that's stored on it? Just a few thoughts to consider or use as arguments with the decision makers...
Don't use software RAID on a single drive. It's pointless, risky, and gives you no redundancy. If the drive fails it doesn't really matter if you have data on two partitions and, as Atrur already pointed out, all that extra thrashing is sure to increase the failure rate.
Hardware and software RAID1 is a solution meant to reduce data loss due to hardware failure, and won't do much for you when someone does a 'rm -rf /' or other ghastly mistakes. RAIDx is not a backup medium and shouldn't be treated as such.
While we're on the topic - don't use master/slave drive setups in a software RAID array.
If you need some assurance of availability you should invest in another drive.
If you need some redundancy for accidental data loss there are backup tools ranging from the simple (faubackup) to more complex tools like amanda. If you're really paranoid you can set it up so that it unmounts the backup device to reduce exposure to user error.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.