LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 03-01-2010, 03:55 PM   #1
heals1ic
Member
 
Registered: Jul 2004
Location: Sydney, Australia
Distribution: WinXP, Fedora Core 3/4
Posts: 36

Rep: Reputation: 15
Add partition to software raid 1


I have just installed a new version of fedora 12 64bit and have setup the following drive configuration -

Code:
[root@fedora ~]# cat /proc/mdstat
Personalities : [raid1]
md2 : active raid1 sdc1[0] sdd1[1]
      312568576 blocks [2/2] [UU]

md1 : active raid1 dm-3[0]
      37644416 blocks [2/1] [U_]

md0 : active raid1 dm-1[0]
      409536 blocks [2/1] [U_]

unused devices: <none>

[root@fedora ~]# fdisk -l

Disk /dev/sda: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000c53b3

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1          51      409600   fd  Linux raid autodetect
Partition 1 does not end on cylinder boundary.
/dev/sda2              51         179     1024000   82  Linux swap / Solaris
Partition 2 does not end on cylinder boundary.
/dev/sda3             179        4865    37644481   fd  Linux raid autodetect

Disk /dev/sdb: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000c53b3

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1          51      409600   fd  Linux raid autodetect
Partition 1 does not end on cylinder boundary.
/dev/sdb2              51         179     1024000   82  Linux swap / Solaris
Partition 2 does not end on cylinder boundary.
/dev/sdb3             179        4865    37644481   fd  Linux raid autodetect

Disk /dev/sdc: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000b443f

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1               1       38913   312568641   fd  Linux raid autodetect

Disk /dev/sdd: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0005fa92

   Device Boot      Start         End      Blocks   Id  System
/dev/sdd1               1       38913   312568641   fd  Linux raid autodetect

Disk /dev/sde: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000babb4

   Device Boot      Start         End      Blocks   Id  System
/dev/sde1   *           1      121601   976760001   83  Linux

Disk /dev/dm-0: 40.0 GB, 40020663808 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000c53b3

     Device Boot      Start         End      Blocks   Id  System
/dev/dm-0p1               1          51      409600   fd  Linux raid autodetect
Partition 1 does not end on cylinder boundary.
/dev/dm-0p2              51         179     1024000   82  Linux swap / Solaris
Partition 2 does not end on cylinder boundary.
/dev/dm-0p3             179        4865    37644481   fd  Linux raid autodetect

Disk /dev/dm-1: 419 MB, 419430400 bytes
255 heads, 63 sectors/track, 50 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

     Device Boot      Start         End      Blocks   Id  System

Disk /dev/dm-2: 1048 MB, 1048576000 bytes
255 heads, 63 sectors/track, 127 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

Disk /dev/dm-2 doesn't contain a valid partition table

Disk /dev/dm-3: 38.5 GB, 38547948544 bytes
255 heads, 63 sectors/track, 4686 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

Disk /dev/dm-3 doesn't contain a valid partition table

Disk /dev/md0: 419 MB, 419364864 bytes
2 heads, 4 sectors/track, 102384 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Disk identifier: 0x00000000

    Device Boot      Start         End      Blocks   Id  System

Disk /dev/md1: 38.5 GB, 38547881984 bytes
2 heads, 4 sectors/track, 9411104 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Disk identifier: 0x00000000

Disk /dev/md1 doesn't contain a valid partition table

Disk /dev/md2: 320.1 GB, 320070221824 bytes
2 heads, 4 sectors/track, 78142144 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Disk identifier: 0x00000000

Disk /dev/md2 doesn't contain a valid partition table
md0 is my /boot partition
md1 is my / partition
md2 is mounted for data
swap is not on raid (/dev/sda2 and /dev/sdb2)

I want to fill the second parts of the arrays md0 and md1.

The arrays should contain -
md0 - /dev/sda1 and /dev/sdb1
md1 - /dev/sda3 and /dev/sdb3

but for some reason I am getting dm-1 and dm-3.

How can I change the array so it contains the normal /dev/sda and /dev/sdb disks and partitions?

Why is the system telling me my drives are dm devices? I have no bios raid features on the motherboard.

How do I use md-1 and md-3 partitions?

How do I go back to the traditional /dev/sda and /dev/sdb devices?

By the way the system tells me that /dev/sda1 and /dev/sdb1 do not exist.

Last edited by heals1ic; 03-01-2010 at 06:12 PM.
 
Old 03-01-2010, 06:59 PM   #2
Fred Caro
Member
 
Registered: May 2007
Posts: 677

Rep: Reputation: 60
cylinders

Firstly do not start and end on the same cylinder number eg end on 51 start on 52.

Fred.
 
Old 03-01-2010, 07:03 PM   #3
heals1ic
Member
 
Registered: Jul 2004
Location: Sydney, Australia
Distribution: WinXP, Fedora Core 3/4
Posts: 36

Original Poster
Rep: Reputation: 15
How do I change this? It was done by disk druid during installation.
 
Old 03-02-2010, 05:36 AM   #4
heals1ic
Member
 
Registered: Jul 2004
Location: Sydney, Australia
Distribution: WinXP, Fedora Core 3/4
Posts: 36

Original Poster
Rep: Reputation: 15
Solved it using dmraid -r -E

This removed the old dmraid data on the disks and reinstalled OS from scratch.

All fell into place as it should

Last edited by heals1ic; 03-02-2010 at 05:43 AM.
 
  


Reply

Tags
array, md0, mdadm, raid1, rebuild


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
how to add new drive to existing software RAID 0 without losing the data? superbo Linux - Hardware 2 06-12-2007 09:04 AM
How to add software RAID component DataSheet Linux - General 1 04-29-2006 03:04 AM
How do I add a spare to existing software RAID 5 ? philforrest Linux - Software 1 12-28-2003 09:33 PM
add software raid-1 to existing system hoover93 Linux - Hardware 1 10-07-2003 10:52 AM
software raid - add device wrongly marked faulty back into array? snoozy Linux - General 2 06-27-2003 02:11 PM


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