Koozali.org: home of the SME Server

A DegradedArray event had been detected on md device/dev/md2

Offline KaiNeR

  • ****
  • 122
  • +0/-0
    • http://www.fire-blade.co.uk
A DegradedArray event had been detected on md device/dev/md2
« on: April 29, 2007, 01:20:20 AM »
Hi,
    I got an email from the server with
A DegradedArray event has been detected on md device /dev/md1.
A DegradedArray event has been detected on md device /dev/md2.

I only have a single IDE drive in the server, i recently installed dar2 and plugged a usb disk for backup storage, this is when i first recieved the error in the mail.

any ideas how to fix it

cheers

i'm running version SME 7.1.3


cat /proc/mdstat
Personalities : [raid1]
md1 : active raid1 hda1[0]
      104320 blocks [2/1] [U_]
     
md2 : active raid1 hda2[0]
      117113728 blocks [2/1] [U_]


# mdadm --detail /dev/md1
/dev/md1:
        Version : 00.90.01
  Creation Time : Fri Apr 27 14:00:15 2007
     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 : Sat Apr 28 23:58:54 2007
          State : clean, degraded
 Active Devices : 1
Working Devices : 1
 Failed Devices : 0
  Spare Devices : 0


    Number   Major   Minor   RaidDevice State
       0       3        1        0      active sync   /dev/hda1
       1       0        0       -1      removed
           UUID : d60d70a4:06676456:db701186:ef4204de
         Events : 0.4555

---

mdadm --detail /dev/md2
/dev/md2:
        Version : 00.90.01
  Creation Time : Fri Apr 27 14:00:15 2007
     Raid Level : raid1
     Array Size : 117113728 (111.69 GiB 119.92 GB)
    Device Size : 117113728 (111.69 GiB 119.92 GB)
   Raid Devices : 2
  Total Devices : 1
Preferred Minor : 2
    Persistence : Superblock is persistent

    Update Time : Sun Apr 29 00:10:01 2007
          State : clean, degraded
 Active Devices : 1
Working Devices : 1
 Failed Devices : 0
  Spare Devices : 0


    Number   Major   Minor   RaidDevice State
       0       3        2        0      active sync   /dev/hda2
       1       0        0       -1      removed
           UUID : 7887af4a:5f575980:0692ac21:ea337491
         Events : 0.2174133
KaiNeR  :pint: ......

Offline KaiNeR

  • ****
  • 122
  • +0/-0
    • http://www.fire-blade.co.uk
A DegradedArray event had been detected on md device/dev/md2
« Reply #1 on: May 02, 2007, 06:37:38 AM »
does anyone know what the problem is ?  from the logs i posted above

The machine only has a single drive in it so its only using the default raid configuration. I have not touched any of the raid config in the console so i dont understand why this is happening

is the a way to auto rebuild the problem area (if the is one) or can this error be safely ignored

thanks
KaiNeR  :pint: ......

Offline idp_qbn

  • *****
  • 347
  • +0/-0
A DegradedArray event had been detected on md device/dev/md2
« Reply #2 on: May 02, 2007, 02:28:30 PM »
SME expects 2 drives - this is the default. 2 drives allows RAID 1.

A single drive is 'considered' by SME to be a degraded RAID array.
I think you have nothing to worry about, really.

You single drive is labelled as md1 [boot partition?] and md2 [root partition, I think] with md1 being quite small and md2 being the rest of the disk. (I couldbe wrong on this).

Connect to your SME box using PuTTy or some such, and logon as root.
At the shell prompt, enter 'console' <return>
Choose 'Manage disk redundancy' <return>.
If all is well, you should see something that finishes with the line
'All RAID devices are in a clean state.'
If not - you have a problem.....
Good luck...
Ian
___________________
Sydney, NSW, Australia

Offline KaiNeR

  • ****
  • 122
  • +0/-0
    • http://www.fire-blade.co.uk
A DegradedArray event had been detected on md device/dev/md2
« Reply #3 on: May 02, 2007, 08:56:03 PM »
thanks for the reply
KaiNeR  :pint: ......

Offline idp_qbn

  • *****
  • 347
  • +0/-0
A DegradedArray event had been detected on md device/dev/md2
« Reply #4 on: May 02, 2007, 09:48:11 PM »
Actually, with a single drive, the result of loging on and using 'console' to 'Manage disk redundancy' is not quite the same.

The output should be something like:
==============================
Current RAID status:

Personalities : [raid1]
md1 : active raid1 hda1[0]
      104320 blocks [2/1] [U_]
md2 : active raid1 hda2[0]
      19446592 blocks [2/1] [U_]
unused devices: <none>

Your system only has a single disk drive installed or is using hardware  │
mirroring. If you would like to enable software mirroring, please shut   │
down, install a second disk drive (of the same capacity) and then return │
to this screen.                                                          │

==============================
I am assuming you are NOT getting the warning email every day - if you are, there is something else wrong (which may just be a setting somewhere). It is always helpful to look at the messages log - it shows up all problems - especially problems with the RAID array.

Hope this is some help.
Cheers
Ian
___________________
Sydney, NSW, Australia

Offline mheymann

  • **
  • 24
  • +0/-0
Re: A DegradedArray event had been detected on md device/dev/md2
« Reply #5 on: August 21, 2007, 11:01:48 PM »
Thanks for your post

This actually answers 2 questions for me
I just upgraded to SME 7.2 on new hardware over the weekend (8/17 - 8/20) and am still in the process
of learning some of the differences and making the configuration changes and the help this provides is
1.  I was getting the same messages in my E-Mail and now I know why
2.  I was looking for a way to perform the backup to USB function remotely and
     I now know that I can access the console from an SSH connection

Thank you