Koozali.org: home of the SME Server

Help with raid needed

addodge

Help with raid needed
« on: December 10, 2006, 09:45:50 PM »
Hi, I recently got a email about a raid that stated the following.

A DegradedArray event has been detected on md device /dev/md2.

fter doing a little looking around the forums I ran the following commands and this it what it comes up with
# cat /proc/mdstat
Personalities : [raid1]
md1 : active raid1 sda1[0]
      104320 blocks [2/1] [U_]

md2 : active raid1 sda2[0]
      156183808 blocks [2/1] [U_]

unused devices: <none>
[root@sme ~]# mdadm -D /dev/sda1
mdadm: /dev/sda1 does not appear to be an md device
[root@sme ~]# mdadm -D /dev/md1
/dev/md1:
        Version : 00.90.01
  Creation Time : Tue May 16 22:24:22 2006
     Raid Level : raid1
     Array Size : 104320 (101.88 MiB 106.82 MB)
    Device Size : 104320 (101.88 MiB 106.82 MB)
   Raid Devices : 2
  Total Devices : 1
Preferred Minor : 1
    Persistence : Superblock is persistent

    Update Time : Sun Dec 10 01:56:34 2006
          State : clean, degraded
 Active Devices : 1
Working Devices : 1
 Failed Devices : 0
  Spare Devices : 0


    Number   Major   Minor   RaidDevice State
       0       8        1        0      active sync   /dev/sda1
       1       0        0       -1      removed
           UUID : 5e9646de:77547fe8:b996052c:7387a463
         Events : 0.2107
[root@sme ~]# mdadm -D /dev/md2
/dev/md2:
        Version : 00.90.01
  Creation Time : Tue May 16 22:23:09 2006
     Raid Level : raid1
     Array Size : 156183808 (148.95 GiB 159.93 GB)
    Device Size : 156183808 (148.95 GiB 159.93 GB)
   Raid Devices : 2
  Total Devices : 1
Preferred Minor : 2
    Persistence : Superblock is persistent

    Update Time : Sun Dec 10 15:39:21 2006
          State : clean, degraded
 Active Devices : 1
Working Devices : 1
 Failed Devices : 0
  Spare Devices : 0


    Number   Major   Minor   RaidDevice State
       0       8        2        0      active sync   /dev/sda2
       1       0        0       -1      removed
           UUID : 316a67de:4b5a6d3a:89a90227:629c8f72
         Events : 0.4180734


Both Drives state that they are clean/degraded!
What can i do to check and make sure that the raid is working the way it supposed to and get things back up and running right?
Thanks
Andy

Offline psoren

  • *
  • 371
  • +0/-0
Re: Help with raid needed
« Reply #1 on: December 10, 2006, 11:29:04 PM »
Log in on the console admin page and go in to "Manage disk redundancy"

Per

Offline pfloor

  • *****
  • 889
  • +1/-0
Help with raid needed
« Reply #2 on: December 11, 2006, 12:59:42 AM »
Your results above indicate that you only have one physical drive connected (sda).  If there is only one drive then this is normal.

If you have 2 drives installed then something "might" be wrong depending on when the additional drive was installed.

Do you have one or 2 physical drives?

Quote
Both Drives state that they are clean/degraded!


You are confusing drives with raid devices.  The raid devices (md1 and md2) are clean/degraded.

sda is a physical drive
sda1 is the first partition on that drive
sda2 is the second partition on that drive

sdb would be a second physical drive
sdb1 is the first partition on that drive
sdb2 is the second partition on that drive

A standard SME raid1 setup with 2 drives would configure itself this way:

sda1 + sdb1 = md1
sda2 + sdb2 = md2

OR with an IDE setup it would something look like this:

hda1 + hdc1 = md1
hda2 + hdc2 = md2
In life, you must either "Push, Pull or Get out of the way!"

addodge

Help with raid needed
« Reply #3 on: December 11, 2006, 01:10:01 AM »
That seems to be where i needed to look!
Thanks for the heads up.  We get so lazy using the web interface and forget to even look at the console.  I'll keep my eyes out on the array from now on and see what comes of it.
Thanks again.
Andy