Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Hardware
User Name
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?


  Search this Thread
Old 10-07-2003, 10:42 AM   #1
Registered: Aug 2003
Distribution: RedHat 9, SuSE 9.2
Posts: 49

Rep: Reputation: 15
Question add software raid-1 to existing system

i have a basic samba server running under redhat 9. i have the operating system installed on an 8gb ide hard drive connected to the primary ide controller. this drive holds the o/s only.

i have a larger 120gb ide drive connected to the secondary ide controller. this drive holds our samba shares.

i perform tape backups as a safe guard, but to add an additional safety net, I'd like install a second 120gb ide drive as a raid-1 mirror for my samba shares.

the software raid documentation that i have read outlines how-to add raid-1 during the creation of partitions. these articles seem to assume you are setting up raid-1 during redhat installation.

since i'm trying to add raid after-the-fact, i don't want to delete my current samaba data. i simply want to add a second matching hard drive, and establish a mirror.

can i do this without having to destroy the exisiting partition and restore from tape?
Old 10-07-2003, 11:52 AM   #2
Registered: Mar 2003
Posts: 126

Rep: Reputation: 17
You sure can. I'll assume your raid drives are hdb and hdc, and that hdb is your current drive with content already on it.

1) partition hdc as one big partition as a raid parition
2) make a file system on this partition

(1 and 2 are idential to the steps for initial install)

3) mount hdc1, copy contents from hdb1 to hdc1
4) repeat 1 and 2 on hdb

5) write you /etc/raidtab file that describes your setup

6) umount hdc1

7) mount the raid array md0 (or what ever you call it in step 5)

now, your raid-checking procedure will kick in and build a mirror of hdc1 onto hdb1. This will take a while.

If you're nervous about trying this with production data, build hdc1 and hdc2, and mimic the above procedure on these dummy partitions before you start with the real deal...



Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Software RAID 1 from Existing Boot Drive johnwyles Linux - General 1 08-05-2005 12:42 PM
How to add a hard drive existing Linux system a1ntsk33r3d Linux - Hardware 5 06-28-2005 03:20 PM
How do I add a spare to existing software RAID 5 ? philforrest Linux - Software 1 12-28-2003 10:33 PM
New Software Raid - Want to use as existing /home/ ... Migration??? How??? trekk Linux - Software 5 11-03-2003 11:32 AM
Software RAID 1 setup w/ existing ext2fs partition system Linux - General 3 01-27-2002 12:07 AM > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 06:26 PM.

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