LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-26-2012, 02:05 PM   #1
leandrofviana
LQ Newbie
 
Registered: Apr 2012
Posts: 1

Rep: Reputation: Disabled
Problems with mdadm - Ubuntu 10.04


Dear,

I'm having an annoying problem with mdadm in ubuntu. Currently I have two
disks on a machine and do a raid in two, with two partitions. I have
md0 and md1.

See:

md1 : active raid1 sda2[0] sdb2[1]
930613248 blocks [2/2] [UU]

md0 : active raid1 sda1[0] sdb1[1]
4200896 blocks [2/2] [UU]

The problem is that the disk sda malfunctioned and stopped working.
Another disc was put in its place, partitioned and re-added in
raid using the following commands:

mdadm /dev/md0 --add /dev/sda2
mdadm /dev/md1 --add /dev/sda1


Thus, they were synchronized and to my surprise the partition
sda2 was as "spare". See:

MD0
Number Major Minor RaidDevice State
0 8 1 0 active sync /dev/sda1
1 8 17 1 active sync /dev/sdb1

MD1
Number Major Minor RaidDevice State
0 8 18 0 active sync /dev/sdb2
1 0 0 1 removed

2 8 2 - spare /dev/sda2

I tried to remove this partition (spare) and re-add it to the raid but
The same thing happens. Below is the mdadm.conf is configured as
(no disks spares).

DEVICE partitions
CREATE owner=root group=disk mode=0660 auto=yes
HOMEHOST <system>
MAILADDR root
ARRAY /dev/md0 level=raid1 num-devices=2 UUID=ID...
ARRAY /dev/md1 level=raid1 num-devices=2 UUID=ID...

Has anyone experienced this problem or have any idea how to solve?

Ubuntu 10.04
mdadm 2.6.7.1-1ubuntu15

Leandro Ferreira
 
Old 04-26-2012, 04:38 PM   #2
whizje
Member
 
Registered: Sep 2008
Location: The Netherlands
Distribution: Slackware64 current
Posts: 594

Rep: Reputation: 141Reputation: 141
When you add a drive it is always added as a spare. Eventually mdraid sees that it is missing a drive and that a spare is available and add it to the raid.
 
  


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
[SOLVED] Attempts to work around a mdadm bug/ mdadm cannot get exclusive access to /dev/md127 Sereph Linux - Newbie 1 08-16-2011 03:21 AM
ubuntu 9.04 & mdadm Gortex Linux - Software 1 05-07-2009 10:24 AM
MDADM screws up the LVM partitions? Can't mount the LVMs after mdadm stopped alirezan1 Linux - Newbie 3 11-18-2008 04:42 PM
Problems with Grub and Mdadm katvis Linux - Newbie 1 11-02-2007 01:07 AM
mdadm.conf and RAID 1 on Ubuntu jcorrea920 Linux - Software 11 07-06-2006 03:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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