Can't Rebuild RAID 5

  • Good day all. After an update the made my RAID disappear, I figured the easiest way to get it back would be to rebuild the server (I was having some update problems anyway). I installed the latest OMV, 5.6.13. The drives appear in the Disks section, but when I try to build my RAID, they do not appear in the Drives section of Create RAID device. Not sure what is wrong or I am missing. I haven't had this problem in the past with rebuilding my server. Thank you for any help.


    Six Western Digital 2TB (1.82) drives

    Model: WDC WD20EARX-00PASB0


    - - cat /proc/mdstat


    Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]

    md127 : inactive sdc[2](S) sdd[0](S) sdf[5](S) sdb[3](S) sde[1](S)

    9767567800 blocks super 1.2


    unused devices: <none>



    - - blkid


    /dev/sdb: UUID="6a03dd97-31af-c47d-ad14-82171112c62c" UUID_SUB="3dcd8478-55e5-a0 ec-25dd-b1bf2e9cd9bb" LABEL="openmediavault:Joker" TYPE="linux_raid_member"

    /dev/sda1: UUID="b2618dfd-5ea1-470e-8b76-af5ad06da536" TYPE="ext4" PARTUUID="961 b8048-01"

    /dev/sda5: UUID="188cc048-c9dc-4aab-8a5d-d377d9a18316" TYPE="swap" PARTUUID="961 b8048-05"

    /dev/sdf: UUID="6a03dd97-31af-c47d-ad14-82171112c62c" UUID_SUB="6c0e5404-5076-41 09-e8db-8ff21a0ce67e" LABEL="openmediavault:Joker" TYPE="linux_raid_member"

    /dev/sdc: UUID="6a03dd97-31af-c47d-ad14-82171112c62c" UUID_SUB="5cf4c53c-55de-94 c9-6bc8-a2486f8e8a27" LABEL="openmediavault:Joker" TYPE="linux_raid_member"

    /dev/sde: UUID="6a03dd97-31af-c47d-ad14-82171112c62c" UUID_SUB="cded0826-c562-27 48-1f1d-465eacacc51f" LABEL="openmediavault:Joker" TYPE="linux_raid_member"

    /dev/sdd: UUID="6a03dd97-31af-c47d-ad14-82171112c62c" UUID_SUB="3750d335-192b-46 63-2dbf-9786bfdc94dd" LABEL="openmediavault:Joker" TYPE="linux_raid_member"



    - - fdisk -l | grep "Disk "


    Disk /dev/sdb: 1.8 TiB, 2000398934016 bytes, 3907029168 sectors

    Disk model: WDC WD20EARX-00P

    Disk /dev/sda: 29.8 GiB, 32017047552 bytes, 62533296 sectors

    Disk model: ACJC2M032mSH

    Disk identifier: 0x961b8048

    Disk /dev/sdf: 1.8 TiB, 2000398934016 bytes, 3907029168 sectors

    Disk model: WDC WD20EARX-00P

    Disk /dev/sdc: 1.8 TiB, 2000398934016 bytes, 3907029168 sectors

    Disk model: WDC WD20EARX-00P

    Disk /dev/sde: 1.8 TiB, 2000398934016 bytes, 3907029168 sectors

    Disk model: WDC WD20EARX-00P

    Disk /dev/sdd: 1.8 TiB, 2000398934016 bytes, 3907029168 sectors

    Disk model: WDC WD20EARX-00P



    - - cat /etc/mdadm/mdadm.conf


    # mdadm.conf

    #

    # !NB! Run update-initramfs -u after updating this file.

    # !NB! This will ensure that initramfs has an uptodate copy.

    #

    # Please refer to mdadm.conf(5) for information about this file.

    #


    # by default (built-in), scan all partitions (/proc/partitions) and all

    # containers for MD superblocks. alternatively, specify devices to scan, using

    # wildcards if desired.

    #DEVICE partitions containers


    # automatically tag new arrays as belonging to the local system

    HOMEHOST <system>


    # instruct the monitoring daemon where to send mail alerts

    MAILADDR root


    # definitions of existing MD arrays


    # This configuration was auto-generated on Wed, 25 Aug 2021 19:48:30 +0000 by mkconf



    - - mdadm --detail --scan –verbose


    INACTIVE-ARRAY /dev/md127 num-devices=5 metadata=1.2 name=openmediavault:Joker UUID=6a03dd97:31afc47d:ad148217:1112c62c

    devices=/dev/sdb,/dev/sdc,/dev/sdd,/dev/sde,/dev/sdf

    • Offizieller Beitrag

    This is not a raid issue, the output from the commands need to be resolved before the inactive array can be sorted.


    How are you running those commands, are you ssh into the server from another machine or are running them directly on the machine as the not found makes no sense.

    • Offizieller Beitrag

    You'll need to re assemble it -> mdadm --assemble --force /dev/md127 /dev/sd[bcdef] if you're not running as root then add sudo. You can check the output by running cat /proc/mdstat


    Once complete run omv-salt deploy run mdadm then update-initramfs -u


    BTW to copy and paste from the cli use </> on the menu the formatting makes it easier to read.

  • I just realized that I am missing a drive. There are 6 of the WD drives and this is only showing 5 of them. I am going to have to open the case and make sure everything is seated properly. Again, thank you for all of your help.

  • Well Geaves,

    Looks like the problem was the missing drive. I found a SATA connection that wasn't plugged in all the way. Once I plugged it in and powered it up, the RAID was showing up. Thank you for taking your time to help me out with this. I knew it had to be something I messed up.

  • macom

    Hat das Label OMV 5.x hinzugefügt.
  • macom

    Hat das Label gelöst hinzugefügt.

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!