RAID gone from Webinterface after Updates/Adding new drive

  • Hi all,


    today I wanted to put in a drive caddie and a new HDD in my OMV server. Before I did that I installed all the pending updates through the webinterface. Unfortunately after booting the server again, the RAID 5 was gone, hard drives are correctly recognized in the "physical drives" though.


    I have one SSD where OMV is installed.
    My raid was built with 2 WD Red and 1 WD Green, 3 TB all of them. The new HDD is a 3TB WD Red


    Here is the information that I gathered:


    Code
    root@openmediavault:/dev# cat /proc/mdstat
    Personalities : [raid6] [raid5] [raid4]
    unused devices: <none>
    Code
    root@openmediavault:/dev# blkid
    /dev/sdb: UUID="ae425e46-0637-9bf6-2b61-e46547f1d65e" UUID_SUB="3d20bb2d-d43d-87a6-fab5-a87adb6eebce" LABEL="openmediavault:StorageRAID5" TYPE="linux_raid_member"
    /dev/sdc: UUID="ae425e46-0637-9bf6-2b61-e46547f1d65e" UUID_SUB="95471e2b-c84e-0e81-88b5-b28a0d38cc73" LABEL="openmediavault:StorageRAID5" TYPE="linux_raid_member"
    /dev/sdd: UUID="ae425e46-0637-9bf6-2b61-e46547f1d65e" UUID_SUB="35756774-f77e-e7a3-6f40-6d9de926ca9a" LABEL="openmediavault:StorageRAID5" TYPE="linux_raid_member"
    /dev/sda1: UUID="c59536d0-c7f0-4b5a-9874-701f2ac544b4" TYPE="ext4" PARTUUID="000921da-01"
    /dev/sda5: UUID="2ad89433-176e-46b4-a1bd-644c2218ccf3" TYPE="swap" PARTUUID="000921da-05"


    Code
    root@openmediavault:/dev# fdisk -l | grep "Disk"
    Disk /dev/sdb: 2.7 TiB, 3000592982016 bytes, 5860533168 sectors
    Disk /dev/sdc: 2.7 TiB, 3000592982016 bytes, 5860533168 sectors
    Disk /dev/sdd: 2.7 TiB, 3000592982016 bytes, 5860533168 sectors
    Disk /dev/sde: 2.7 TiB, 3000592982016 bytes, 5860533168 sectors
    Disk /dev/sda: 111.8 GiB, 120034123776 bytes, 234441648 sectors
    Disklabel type: dos
    Disk identifier: 0x000921da



    Code
    root@openmediavault:/dev# mdadm --detail --scan --verbose
    root@openmediavault:/dev#


    Any help is greatly appreceated!


    Thanks!

  • Done that, here is the output


    Code
    root@openmediavault:/dev# mdadm --assemble --verbose --force /dev/md0 /dev/sd[bdc]
    mdadm: looking for devices for /dev/md0
    mdadm: /dev/sdb is identified as a member of /dev/md0, slot 1.
    mdadm: /dev/sdc is identified as a member of /dev/md0, slot 0.
    mdadm: /dev/sdd is identified as a member of /dev/md0, slot 2.
    mdadm: Marking array /dev/md0 as 'clean'
    mdadm: added /dev/sdb to /dev/md0 as 1 (possibly out of date)
    mdadm: added /dev/sdd to /dev/md0 as 2
    mdadm: added /dev/sdc to /dev/md0 as 0
    mdadm: /dev/md0 has been started with 2 drives (out of 3).


    I can see the RAID again the the OMV web interface which is good but I think the message on sdb being out of date isn't perfect right? Is the RAID currently being handled as if the sdb drive has failed?



    • Offizieller Beitrag

    So you have two out of three, at least the data is still there, backup? If you haven't I suggest you do before executing the following;


    mdadm --zero-superblock /dev/sdb


    mdadm --add /dev/md0 /dev/sdb


    BTW you don't have to be in /dev folder to any of the above, just do cd and go back to root.

  • Will the superblock automatically be recovered after adding the disk back to the array?


    What's the risk with running those commands? This is only affecting the disk sdb which is not in the array at the moment anyways right?

    • Offizieller Beitrag

    Will the superblock automatically be recovered after adding the disk back to the array?

    Yes.


    What's the risk with running those commands?

    Technically none (but a backup covers my arse :) ) as it should restore the array back to 3 drives.


    This is only affecting the disk sdb which is not in the array at the moment anyways right?

    Yes, because of (possibly out of date) error when you did assemble.


    I take it from your questions you don't have a backup :rolleyes:

  • You're right, I don't have a backup of this machine. I'm using OMV to backup my main machine and for Plex so my movies are technically not backed up anywhere but loosing them wouldn't be the end of the world.


    I was also asking out of interest. I think I'm going to run the commands now and see what will happen. Thanks a lot for you help so far :)



    EDIT:


    RAID is now rebuilding. I hope everything will be good when I grow it tomorrow with the new disk


  • Thanks a lot for your help :)


    Just one more question: What would have happened if we would have just added the device back into the RAID without removing the superblock first?

Jetzt mitmachen!

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