Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Gentoo mdadm --detail vs. /proc/mdstat
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Vieri
l33t
l33t


Joined: 18 Dec 2005
Posts: 870

PostPosted: Mon Feb 17, 2014 5:50 pm    Post subject: [SOLVED] Gentoo mdadm --detail vs. /proc/mdstat Reply with quote

Hi,

I'm puzzled as to why my /proc/mdstat states that I have 3 RAID1 sets with 2 disks and 3 different partitions while mdadm --detail gives me a whole different result.

Code:

livecd ~ # cat /proc/mdstat
Personalities : [raid0] [raid1] [raid6] [raid5] [raid4] [raid10] [linear] [multipath]
md4 : active raid1 sdb4[1] sda4[0]
      38337408 blocks [2/2] [UU]

md2 : active raid1 sdb2[1] sda2[0]
      131008 blocks [2/2] [UU]

md1 : active raid1 sdb1[1] sda1[0]
      1984 blocks [2/2] [UU]

unused devices: <none>
livecd ~ # mdadm --detail /dev/md1
/dev/md1:
        Version : 0.90
  Creation Time : Mon Feb 17 17:58:10 2014
     Raid Level : raid1
     Array Size : 1984
  Used Dev Size : 1984
   Raid Devices : 2
  Total Devices : 2
Preferred Minor : 1
    Persistence : Superblock is persistent

    Update Time : Mon Feb 17 18:30:16 2014
          State : clean
 Active Devices : 2
Working Devices : 2
 Failed Devices : 0
  Spare Devices : 0

           UUID : 67beaa32:0d1d851a:cb201669:f728008a (local to host livecd)
         Events : 0.18

    Number   Major   Minor   RaidDevice State
       0       8        1        0      active sync   /dev/sda1
       1       8       17        1      active sync   /dev/sdb1
livecd ~ # mdadm --detail /dev/md2
/dev/md2:
        Version : 0.90
  Creation Time : Mon Feb 17 17:58:10 2014
     Raid Level : raid1
     Array Size : 1984
  Used Dev Size : 1984
   Raid Devices : 2
  Total Devices : 2
Preferred Minor : 1
    Persistence : Superblock is persistent

    Update Time : Mon Feb 17 18:31:44 2014
          State : clean
 Active Devices : 2
Working Devices : 2
 Failed Devices : 0
  Spare Devices : 0

           UUID : 67beaa32:0d1d851a:cb201669:f728008a (local to host livecd)
         Events : 0.18

    Number   Major   Minor   RaidDevice State
       0       8        1        0      active sync   /dev/sda1
       1       8       17        1      active sync   /dev/sdb1
livecd ~ # mdadm --detail /dev/md4
mdadm: md device /dev/md4 does not appear to be active.
livecd ~ # ls /dev/md*
/dev/md1  /dev/md2  /dev/md3  /dev/md4  /dev/mdev.seq

/dev/md:
125  126  127
livecd ~ # mdadm --detail /dev/md/127
mdadm: cannot open /dev/md/127: No such file or directory
livecd ~ # mdadm --detail /dev/md/126
mdadm: cannot open /dev/md/126: No such file or directory
livecd ~ # mdadm --detail /dev/md/125
mdadm: cannot open /dev/md/125: No such file or directory
livecd ~ # mdadm --detail /dev/md3
mdadm: md device /dev/md3 does not appear to be active.


What's wrong here or what can I try to debug this?

Thanks,

Vieri


Last edited by Vieri on Thu Feb 20, 2014 6:58 pm; edited 1 time in total
Back to top
View user's profile Send private message
spike88
n00b
n00b


Joined: 16 Oct 2012
Posts: 17

PostPosted: Mon Feb 17, 2014 10:47 pm    Post subject: Reply with quote

Did you assemble /dev/md4 like the others I do not mean to insult intelligence by asking this just needed to know
_________________
Gentoo Rocks thanks!
Back to top
View user's profile Send private message
Vieri
l33t
l33t


Joined: 18 Dec 2005
Posts: 870

PostPosted: Tue Feb 18, 2014 8:19 am    Post subject: Reply with quote

Yes, exactly the same way, ie. mdadm --create --verbose /dev/md4 --name=4 --level=mirror --raid-devices=2 --metadata=0.90 /dev/sda4 /dev/sdb4

Also notice the output of mdadm --detail /dev/md2 and mdadm --detail /dev/md1... same output?! That looks odd.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum