LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 01-26-2002, 11:47 PM   #1
system
Member
 
Registered: Dec 2001
Distribution: LFS, RH, Slack
Posts: 104

Rep: Reputation: 15
Software RAID 1 setup w/ existing ext2fs partition


I have read in the RAID mailing list archives that it is possible to take an existing ext2 fs and an empty disk and make a RAID 1 array containing the data on the existing fs.

The way they advise doing this is in the 4th section of this howto:
http://www.linuxdoc.org/HOWTO/Boot+Root+Raid+LILO.html

They advise making a raidtab with the new empty disk as a disk on the array and the existing partition listed as a failed drive.
They then say to initialize the array as usual, start it up, copy all the files from the existing partition to it, then stop the raid. You then edit the raidtab and list the failed disk as a good disk and turn the array back on.

This seems to me like you are making a single drive raid partition, copying all the crap to it, then adding the original disk to the raid array and the old data gets overwritten with the copy from the new drive.

This is great except I am extremely anxious to perform a format with my existing partition listed at all!! Even as a failed drive!! Is that really necessary to list it as a failed drive? Couldn't I simply not list it at all, then add it after the file copy?
 
Old 01-26-2002, 11:55 PM   #2
system
Member
 
Registered: Dec 2001
Distribution: LFS, RH, Slack
Posts: 104

Original Poster
Rep: Reputation: 15
I have one other question... if a software RAID 1 array fails, or one disk fails, can I mount one of the RAID partitions as a standard ext2 fs? I am kind of anxious on the issue of what should happen if the machine crashes or one disk fails. It would be extremely reassuring if I could mount either mirror as a standard fs.

Also, is are all ext3 journalling options supported over software RAID 1?
 
Old 01-27-2002, 12:05 AM   #3
system
Member
 
Registered: Dec 2001
Distribution: LFS, RH, Slack
Posts: 104

Original Poster
Rep: Reputation: 15
I believe I may have found my own answer. The drive needs to be listed as a failed drive so that the superblock has that drive info when the new drive is initialized into the RAID array. This is actually hinted at in the man page for raidtab, so I'm more comfortable with the idea now. Am I correct?
 
Old 01-27-2002, 12:07 AM   #4
system
Member
 
Registered: Dec 2001
Distribution: LFS, RH, Slack
Posts: 104

Original Poster
Rep: Reputation: 15
chunk size would only be valid or important if you were doing RAID 0 or some other striping RAID.. It would not affect anything with a RAID 1 setup, correct?
 
  


Reply


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 On
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
RAID/LVM setup with existing drives juu801 Linux - General 3 07-06-2005 01:35 AM
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
add software raid-1 to existing system hoover93 Linux - Hardware 1 10-07-2003 11:52 AM


All times are GMT -5. The time now is 02:14 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration