LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 03-20-2004, 08:08 AM   #1
DeathsFriend
LQ Newbie
 
Registered: Aug 2003
Distribution: Mandrake
Posts: 10

Rep: Reputation: 0
Hard Disks & RAID-1


This is kinda two questions in one!

I have a server that is currently using 2x 120Gb hard disks running an MSI-6501 motherboard. It all works fine; however I would like to add software RAID-1 to the setup.

Currently one of the hard disks correctly contains the actual distro (Fedora Core 1, with updates as when they are available), and the other contains data (home directories, large postgresql database, apache www directories, all mounted in the relevant places). I only want raid on the data; not the software.

It was suggested somewhere that I use a 40gb hard disk; install Fedora onto that, and then use the two 120gb hard disks in RAID-1 to protect the data. So my question is;

1. How do I copy my currently operational system onto a new (and blank) 40Gb hard disk without losing my configuration or updates ? And then make that 40gb bootable ?

2. How do I then clone the data from one of the 120gb's onto the other and setup RAID-1 between ?

I've looked around (searched the forum, checked out the software raid how-to), but they don't seem to answer my questions.

Any advice or comments ?

Thanks Muchly
Deathsfriend
 
Old 03-24-2004, 02:53 PM   #2
pilot1
Member
 
Registered: Jun 2002
Location: USA
Distribution: Gentoo, Fedora Core
Posts: 408

Rep: Reputation: 30
I'd like to know as well.
Is this even possible without some type of RAID controllers card?
And also, is there any slowdown?
 
Old 03-25-2004, 07:26 AM   #3
FragInHell
Member
 
Registered: Sep 2003
Location: Sydney Australia
Distribution: Redhat, Centos, Solaris, Ubuntu, SUSE
Posts: 282

Rep: Reputation: 45
1 - In order to copy the disk from one to anther you could try booting from CD in rescue mode, fdisk and create the new file system on the new disk, then mount them. Then simply copy the data from old to the new.
To make it bootable I beleive you have to re-install Grub or Lilo (never done it so can't help here), finally point your bios to boot the new disk, or simply change the around etc.

2 - I've built 2 systems now using RAID-1.

The first one uses hardware raid, I simply built the system as normal and the hardware mirrored the disk, my only problem was I have to use a kernel parameter to stop the kernel seeing the mirror disk.
The second one, uses Software RAID-1. To be honest there seams little performance differences between the two. but setup is alot different. Here you have to create a RAID device on both disks and then you create the file system into the RAID device, to make it easy I used the GUI during the original build.
I looked into adding an additional 2 disks and creating an additional RAID-1 setup but decided it was too much effort. For new disks Its not too much work, as you just fdisk the partitions (can't remember the partition type), edit the RAID configuration file, and create the file system (thats the basics anyway). Then plop your data into the file system. I don't think it was possible to create a RAID file system from an existing normal filesystem , (although I'm not too sure), seeing as you have to change the partition type and link the two sub disks together, I really dont know if it preserves the data.

As an after thought, you might want to consider mirroring the whole lot, since if your data's protected and you loose the root disk, you've still got a dead system.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
God says THOU shalt MAKE SATAUX --- Linux dedicated to sata hard drives & Raid etc . studpenguin Linux - General 13 05-18-2007 07:21 PM
Raid Problem Fedora Core 3, RAID LOST DISKS ALWAYS icatalan Linux - Hardware 1 09-17-2005 03:14 AM
Mounting hard disks & partitions dbong Linux - Hardware 3 01-16-2004 12:16 PM
Expert opinion partioning hard drive & making raid 1 coskun Linux - General 0 07-07-2003 08:40 PM
Big Hard disks & P2B motherboard? luigi Linux - Hardware 7 05-08-2003 04:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 12:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration