LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-11-2007, 04:35 AM   #1
marmen
LQ Newbie
 
Registered: Sep 2007
Posts: 6

Rep: Reputation: 0
Config a new software RAID 1 (Fedora 6)


Dear All:
I currently install fedora 6, that is working great. The problem is
I bought a new sata hardisk (same size same brand), and want to do a software RAID 1.

How can I do it??
I am stuck in there~~
This is my existing config

[root@testmail postfix]# df -m

Filesystem 1M-blocks Used Available Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
293613 3420 275038 2% /
/dev/sda1 99 11 83 12% /boot
tmpfs 502 0 502 0% /dev/shm


--------------------------------------------
[root@testmail postfix]# fdisk -l

Disk /dev/sda: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 38913 312464250 8e Linux LVM

Disk /dev/sdb: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 1 38914 312571223+ 8e Linux LVM

Disk /dev/sdc: 2048 MB, 2048728064 bytes
64 heads, 63 sectors/track, 992 cylinders
Units = cylinders of 4032 * 512 = 2064384 bytes

Device Boot Start End Blocks Id System
/dev/sdc1 1 992 1999749+ 6 FAT16


Thanks for your help~~~
 
Old 10-11-2007, 07:05 AM   #2
vedang
Member
 
Registered: May 2006
Posts: 89

Rep: Reputation: 15
Smile RAID1 morror in fedora

You are going to configure RAID1 morror volume based on software.
There are 2 utilities avalible to accompalish this.
1. mdadm which in inbuilt tool with redhat and fedora systems.
2. raidtools third party tool to configure software based raid.

I recommend you to use mdadm, beacuse it is easy to configure and stable.

I assume that you have two hdds like sda and sdb

create exactly same new partitions on both hdds. so it will come to dda3 and sdb3 .

next go to fdisk tool and change partition id of both new partitions to fd.
fd stands for raid autodetect.

Now make RAID1 (morrored ) array of thesetwo partitions.

use following command to do it.

#mdadm -v -C /dev/md0 -l1 -n2 /dev/sda3 /dev/sdb3

This command will create a RAID1 mirrored array called /dev/md0.
Then create filesystem on RAID array.

#mkfs /dev/md0

Now RAID1 array is created and is functioning properly. You can mount it now.

#mount /mnt/dir1 /dev/md0

Now whatever data you write in /mnt/dir1 directory will be written on RAID1 array.

To test RAID is created successfully, run following command.

#cat /proc/mdstat

Also

#mdadm -D /dev/md0

Now create a directory /data in which we will mount /dev/md0 RAID1 array.

Above command will create filesystem on it.

Then add this entry in the /etc/fstab file to start morror after rebooting.

#vi /etc/fstab

add line as following.

/dev/md0 /data ext3 defaults 1 1


Save and exit.
 
  


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
Software RAID 1 on Fedora 6? SlowCoder Linux - General 6 04-19-2007 10:12 AM
Fedora does not load up after software raid baddah Fedora - Installation 2 04-19-2007 06:53 AM
software RAID 1 Fedora 2 question jabaker707 Linux - Software 0 10-04-2004 10:06 AM
Fedora software raid 1 norbul Fedora - Installation 4 08-23-2004 03:49 PM
Fedora wont install due to sata/raid config Adam H Fedora - Installation 7 07-17-2004 03:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:13 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