LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 10-18-2011, 05:39 AM   #1
robocap
LQ Newbie
 
Registered: Jul 2007
Posts: 8

Rep: Reputation: 0
My big problem.with mdadm


Hello all,

i have two mdadm device on my server.

1 - /dev/md1
2 - /dev/md2

md1 is worked good.
but md2 don`t work.
on md2 4 partition /dev/sda2 /dev/sdb2 /dev/sdc2 /dev/sdd2 are added in old.about 1 years ago.

now md2 not start.
also don`t display in fdisk -l
i think /dev/sda2 failed.because say that don`t exist super block on this partition.


Code:
[root@ks312804 yum.repos.d]# cat /etc/mdadm.conf
ARRAY /dev/md1 level=raid1 num-devices=4 metadata=0.90 UUID=5804f8ec:7dd8a057:a4d2adc2:26fd5302
ARRAY /dev/md2 level=raid5 num-devices=4 UUID=ee4e44d1:959b5d64:a4d2adc2:26fd5302
ARRAY /dev/md2 level=raid5 num-devices=4 UUID=ee4e44d1:959b5d64:a4d2adc2:26fd5302
ARRAY /dev/md2 level=raid5 num-devices=4 UUID=ee4e44d1:959b5d64:a4d2adc2:26fd5302
Code:
[root@ks312804 yum.repos.d]# mdadm --manage /dev/md2 --remove /dev/sda2
mdadm: cannot get array info for /dev/md2
Code:
[root@ks312804 yum.repos.d]# cat /proc/mdstat
Personalities : [raid1] [raid0] [raid6] [raid5] [raid4] 
md2 : inactive sdc2[2](S) sdd2[3](S) sdb2[1](S)
      2898821952 blocks
       
md1 : active raid1 sdd1[3] sdc1[2] sdb1[1] sda1[0]
      5242816 blocks [4/4] [UUUU]
      
unused devices: <none>

Code:
[root@ks312804 yum.repos.d]# mdadm --examine /dev/sd[abcde...]2 | egrep 'dev|Update|Role|State|Chunk Size'
mdadm: No md superblock detected on /dev/sdb2.
/dev/sda2:
    Update Time : Tue Oct 18 12:34:53 2011
          State : clean
      Number   Major   Minor   RaidDevice State
this     4       8        2        4      spare   /dev/sda2
   0     0       8        1        0      active sync   /dev/sda1
   1     1       8       17        1      active sync   /dev/sdb1
   2     2       8       33        2      active sync   /dev/sdc1
   3     3       8       49        3      active sync   /dev/sdd1
   4     4       8        2        4      spare   /dev/sda2
/dev/sdc2:
    Update Time : Mon Oct 17 10:48:03 2011
          State : clean
     Chunk Size : 64K
      Number   Major   Minor   RaidDevice State
this     2       8       34        2      active sync   /dev/sdc2
   2     2       8       34        2      active sync   /dev/sdc2
   3     3       8       50        3      active sync   /dev/sdd2
/dev/sdd2:
    Update Time : Mon Oct 17 10:48:03 2011
          State : clean
     Chunk Size : 64K
      Number   Major   Minor   RaidDevice State
this     3       8       50        3      active sync   /dev/sdd2
   2     2       8       34        2      active sync   /dev/sdc2
   3     3       8       50        3      active sync   /dev/sdd2

how may i run /dev/md2 and solved it with all partition and not loss data?

thanks
 
Old 10-18-2011, 10:30 AM   #2
ccolumbu
Member
 
Registered: Oct 2009
Posts: 37

Rep: Reputation: 4
They are all showing as spares, I think you just have to re-add them.
Try this:
mdadm --manage /dev/md2 --add /dev/sda2
mdadm --manage /dev/md2 --re-add /dev/sdb2
mdadm --manage /dev/md2 --re-add /dev/sdc2
mdadm --manage /dev/md2 --re-add /dev/sdd2

I am not 100% sure of the syntax.
 
Old 10-18-2011, 11:03 AM   #3
robocap
LQ Newbie
 
Registered: Jul 2007
Posts: 8

Original Poster
Rep: Reputation: 0
thanks
Code:
[root@ks312804 ~]# mdadm --manage /dev/md2 --add /dev/sda2
mdadm: cannot get array info for /dev/md2
[root@ks312804 ~]# mdadm --manage /dev/md2 --re-add /dev/sdb2
mdadm: cannot get array info for /dev/md2
[root@ks312804 ~]# mdadm --manage /dev/md2 --re-add /dev/sdc2
mdadm: cannot get array info for /dev/md2
[root@ks312804 ~]# mdadm --manage /dev/md2 --re-add /dev/sdd2
mdadm: cannot get array info for /dev/md2
 
Old 10-18-2011, 12:52 PM   #4
robocap
LQ Newbie
 
Registered: Jul 2007
Posts: 8

Original Poster
Rep: Reputation: 0
how may i solved it?
 
Old 10-18-2011, 02:13 PM   #5
robocap
LQ Newbie
 
Registered: Jul 2007
Posts: 8

Original Poster
Rep: Reputation: 0
if remove partition from mdadm and re add it,this is ok?my data dont loss?
 
  


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
[acer Extensa 5620Z] I got a big big problem, please help ^^ VodkaRocks Linux - Wireless Networking 11 06-26-2009 07:08 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
BIG BIG PROBLEM with nvidia driver for linux x86 basshead62887 Linux - Hardware 5 09-12-2007 12:33 AM
Installing RH 9 with RAID 5 --Big, big Problem!!! rhonneil Linux - Software 2 09-25-2003 08:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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