How can I rebuild my RAID 1 array ?

    • OMV 1.0
    • Resolved

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • How can I rebuild my RAID 1 array ?

      Hi,

      I added today two drives as a RAID 1 array in my OMV server. Unfortunately, when I moved my computer, one of those drives was unplugged, so the array was degraded when I booted again. I saw the missing drive, plugged it in again and booted again. The missing drive is seen in physical drives (/dev/sdc, where the other disk is /dev/sdd), but when I open the RAID management page, the drives column only lists /dev/sdd, while the state column switches between "active, degraded" and "clean, degraded".
      There isn't any drive to be selected when I want to use the recover option (and neither in the create option btw). Rebooting doesn't change anything

      A cat /proc/mdstat shows this :

      Source Code

      1. Personalities : [raid1]
      2. md0 : active raid1 sdd[0]
      3. 2930135360 blocks super 1.2 [2/1] [U_]
      4. unused devices: <none>


      Should I wipe the sdc disk and re-add it ? It's the first time I use an mdadm array. I used a Nvidia fakeraid array before and removing a disk to add it again was the way to go.

      Thx

      The post was edited 1 time, last by Ashygan ().

    • Nevermind, I figured it out. You have to wipe the disk (sdc in my case) in the physical disks page, and then you can recover your array in the raid management page.

      Unfortunately, I think I found a bug : the state is "clean, degraded, recovering (unknown)", but I suppose there should be a progress indicated in the unknown part. A "cat /proc/mdstat" shows the progress :
      Personalities : [raid1]
      md0 : active raid1 sdc[2] sdd[0]
      2930135360 blocks super 1.2 [2/1] [U_]
      [>....................] recovery = 1.1% (33131904/2930135360) finish=266.5min speed=181134K/sec

      unused devices: <none>
    • Filed bug report:

      bugtracker.openmediavault.org/view.php?id=1129

      Greetings
      David
      "Well... lately this forum has become support for everything except omv" [...] "And is like someone is banning Google from their browsers"

      Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.


      Upload Logfile via WebGUI/CLI
      #openmediavault on freenode IRC | German & English | GMT+1
      Absolutely no Support via PM!

      I host parts of the omv-extras.org Repository, the OpenMediaVault Live Demo and the pre-built PXE Images. If you want you can take part and help covering the costs by having a look at my profile page.
    • Fixed in openmediavault 1.0.24, see sourceforge.net/p/openmediavault/code/1479.

      Greetings
      David
      "Well... lately this forum has become support for everything except omv" [...] "And is like someone is banning Google from their browsers"

      Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.


      Upload Logfile via WebGUI/CLI
      #openmediavault on freenode IRC | German & English | GMT+1
      Absolutely no Support via PM!

      I host parts of the omv-extras.org Repository, the OpenMediaVault Live Demo and the pre-built PXE Images. If you want you can take part and help covering the costs by having a look at my profile page.