LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 05-29-2008, 09:51 AM   #1
bonds.rc
LQ Newbie
 
Registered: Mar 2008
Posts: 9

Rep: Reputation: 0
Raid 1 setup


Hello,

I am trying to setup a RAID 1 configuration on my system and am running into a few problems.


I ran fdisk on the 2 disk that will be in the raid array and set the Hex Code to "fd" which from my understanding is "Raid Auto Detect" (and is needed/desired for RAID config) then I wrote the file.

When i ran the mdadm command it said that both disk are ext2fs. How is this possible when i set the file system to "fd" during partitioning?

Then I ran the command mdadm --create /dev/md0 --level=1 --raid-devices=2 /dev/sdb1 /dev/sdc1 and now it is stating that the file system is Linux AutoRaid.

Which one is correct? If the first one is correct how do i change this to ext3 but still allow the 2 disk to be in a RAID configuration?

Last edited by bonds.rc; 05-29-2008 at 09:54 AM. Reason: Forgot information
 
Old 05-29-2008, 10:25 AM   #2
WhatsHisName
Senior Member
 
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHEL, AltimaLinux, Rocky
Posts: 1,151

Rep: Reputation: 46
Both are correct.

If an ext2/ext3 formatted filesystem already exists in the partition you used as a raid member, then you will get the "ext3/exists" warning. Ignore it and proceed.

The fdisk partition-type is nothing more than a code and may or may not have anything to do with how the partition is actually formatted.

What you want to do is to make the raid device and then format it as ext3.

Code:
# mkfs.ext3 /dev/md0
 
Old 05-29-2008, 10:35 AM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
A good equivalent is probably "Linux" partitions, which are code 0x83 in the partition table, but the filesystem in that partition could be ext2, ext3, reiserfs, afs, xfs etc...
 
  


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
Raid 5 setup pnotequalsnp Linux - Newbie 6 11-16-2007 02:02 AM
RAID setup nic55 Linux - Newbie 0 02-07-2005 06:28 AM
need help with a RAID setup Ekj530 Linux - Newbie 1 08-13-2003 02:15 PM
RAID-1 Setup ? Breezwell Linux - Software 4 11-06-2001 09:03 AM
RAID setup syxxpac023 Linux - Software 3 10-03-2001 11:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

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