LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 01-03-2008, 07:34 PM   #1
Martin01234
LQ Newbie
 
Registered: Jan 2008
Posts: 4

Rep: Reputation: 0
Creating RAID-1 on Fedora


Hello,

can I install RAID-1 (mirror) on Fedora without affecting the system and all other files? If yes, how? There are 2 IDE hard drives both connected through Primary port (DEV0 and DEV1). I guess it would be more clever to have the drives on separate ports (primary and secondary), but I got this pc configured like this already.

Thanks!
 
Old 01-04-2008, 03:29 PM   #2
ramram29
Member
 
Registered: Jul 2003
Location: Miami, Florida, USA
Distribution: Debian
Posts: 848
Blog Entries: 1

Rep: Reputation: 47
No, it will wipe out the files and create an underlying system. Backup your data first then install from scratch, then restore the data. It's better if you setup the disks on different channels, they'll operate faster.
 
Old 01-09-2008, 08:14 PM   #3
Spudgy
LQ Newbie
 
Registered: Jan 2008
Location: /home/Spudgy
Posts: 3

Rep: Reputation: 0
That's not correct. It's very easy to create raid 1 with an existing partition without having to build it from scratch.

http://kbase.redhat.com/faq/FAQ_43_2812.shtm

If you are doing a system partition, boot from a live cd and do it there because I don't think you can have the partition mounted.
 
Old 01-10-2008, 02:51 AM   #4
Martin01234
LQ Newbie
 
Registered: Jan 2008
Posts: 4

Original Poster
Rep: Reputation: 0
Spudgy, the link is not working for some reason. Are you sure if I do RAID-1 the data on source disk remains unaffected?

Another solution would be to use a utility such as ghost for linux to clone the entire disk to a second disk.
 
Old 01-10-2008, 11:22 PM   #5
Spudgy
LQ Newbie
 
Registered: Jan 2008
Location: /home/Spudgy
Posts: 3

Rep: Reputation: 0
Yes. Here's the meat of the article:

Converting an existing 'live' filesytem on a single disk to a software RAID 1 mirror is not recommended and could potentially cause you to lose all your data. The best time to set up software RAID is either at installation time or before you intend using the filesystem.

However, if you have an existing filesystem and only now you realize that you want to convert it to RAID 1 (mirroring) then this document can help guide you in the right direction. It is extremely important that you backup all you critical data before trying any of this and if at all possible try this on a test machine before implementing in a live environment.

Essentially the command is straight forward to convert to RAID 1. Use a command similar to the one below. This assumes you have an identical second hard drive, /dev/hdc, that has been partitioned and formatted the same as the original drive, /dev/hda.

Code:
mdadm --create /dev/md0 --level=1 --raid-devices=2 /dev/hda3 /dev/hdc3
This command will mirror all the data on the partition/dev/hda3 to the partition/dev/hdc3 and create the RAID device /dev/md0. You can follow the progress of the RAID creation by looking at the file /proc/mdstat. To dynamically watch your RAID device being created use the following command:

Code:
watch cat /proc/mdstat
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
creating RAID 10 via kickstart deesto Linux - Hardware 0 06-20-2007 01:01 PM
Creating Raid 1 on OS disk sbabcock23 Linux - Software 1 05-17-2007 08:19 PM
Creating a RAID jdozarchuk SUSE / openSUSE 1 02-10-2005 12:13 PM
Creating RAID (software) dominant Linux - Software 2 01-23-2005 01:22 PM

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

All times are GMT -5. The time now is 12:18 PM.

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