My OMV crashed partly, one linear Raid Volume is present, the other Raid 1 Volume is missing

  • First I want to say hallo to you all and a happy new year.


    I have a problem with my OMV-Setup. After a outage of my power supply, I tried to bring up my fileserver again with a new power supply.
    I feel lost while I noticed one of the two raid arraies failed and I don't know how to fix it.


    The server is running the actual omv version and contains, as mentioned, two raid arraies. And one HDD for booting up


    sda as the booting device
    sdb, sdc and sdd as a linear raid array with combined as a logical volume md0
    sde and sdf as a raid1 array (mirrored) as logical volume md1.


    While fixing the power supply issue, I powerd up the system with only power for sda to sdd (not enough plugs for power). After getting addional plugs, I started the system again with all HDDs but noticed md1 is missing.


    Is there someone, who could share some of his time to help me fixing it, please? I hope there are "only" some parameters missing to bring the second array up again.


    I would love it, if we could comunicate in German language, it would make it easier to understand but if don't I would also love to get English support ;)


    Thanks in advance and lookin forward to here from you.


    BR, Dirk :thumbup:

  • Here my result:


    cat /proc/mdstat

    Code
    root@openmediavault:~# cat /proc/mdstat
    Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10] 
    md1 : inactive sde[1](S)
          488255512 blocks super 1.2
    md0 : active linear sda[0] sdb[1] sdc[2]
          1464764423 blocks super 1.2 0k rounding
    unused devices: <none>

    blkid

    Code
    root@openmediavault:~# blkid
    /dev/sda: UUID="27c79b7e-1606-ae02-fe74-c37fd0e5336d" UUID_SUB="9f12be0b-3f3e-969b-6412-c5ee8a3b85d2" LABEL="openmediavault:volume01" TYPE="linux_raid_member"
    /dev/sdc: UUID="27c79b7e-1606-ae02-fe74-c37fd0e5336d" UUID_SUB="de9b02ce-1223-3b0f-30a6-3a25a9ca3ef7" LABEL="openmediavault:volume01" TYPE="linux_raid_member"
    /dev/sdb: UUID="27c79b7e-1606-ae02-fe74-c37fd0e5336d" UUID_SUB="46fe095e-0eaf-a9d0-e52a-5e4a832c43b5" LABEL="openmediavault:volume01" TYPE="linux_raid_member"
    /dev/sdd: UUID="9a6f7b18-4df9-3a6d-27ab-907dc2a6f29e" UUID_SUB="8d955866-a370-a442-02b9-6e479f94bd90" LABEL="openmediavault:volume02" TYPE="linux_raid_member"
    /dev/sde: UUID="9a6f7b18-4df9-3a6d-27ab-907dc2a6f29e" UUID_SUB="2915ec18-157f-37df-dbb4-dea1dfb8205d" LABEL="openmediavault:volume02" TYPE="linux_raid_member"
    /dev/sdf1: UUID="9375e71c-2c7d-4215-a0e2-cee269cb9ebd" TYPE="ext4" PARTUUID="0eb1a6e7-01"
    /dev/sdf5: UUID="df981196-c2b3-400a-921b-f673c084ef3b" TYPE="swap" PARTUUID="0eb1a6e7-05"
    /dev/md0: LABEL="LW01" UUID="046f17e3-d7c3-4a3c-8383-ba5309355d2d" TYPE="ext4"


    fdisk -l | grep "Disk "

    Code
    root@openmediavault:~# fdisk -l | grep "Disk "
    Disk /dev/sda: 465,8 GiB, 500106780160 bytes, 976771055 sectors
    Disk /dev/sdc: 465,8 GiB, 500107862016 bytes, 976773168 sectors
    Disk /dev/sdb: 465,8 GiB, 500106780160 bytes, 976771055 sectors
    Disk /dev/sdd: 465,8 GiB, 500106780160 bytes, 976771055 sectors
    Disk /dev/sde: 465,8 GiB, 500107862016 bytes, 976773168 sectors
    Disk /dev/sdf: 149,1 GiB, 160041885696 bytes, 312581808 sectors
    Disk identifier: 0x0eb1a6e7
    Disk /dev/md0: 1,4 TiB, 1499918769152 bytes, 2929528846 sectors


    cat /etc/mdadm/mdadm.conf


    mdadm --detail --scan --verbose


    Code
    root@openmediavault:~# mdadm --detail --scan --verbose
    ARRAY /dev/md0 level=linear num-devices=3 metadata=1.2 name=openmediavault:volume01 UUID=27c79b7e:1606ae02:fe74c37f:d0e5336d
       devices=/dev/sda,/dev/sdb,/dev/sdc
    INACTIVE-ARRAY /dev/md1 num-devices=1 metadata=1.2 name=openmediavault:volume02 UUID=9a6f7b18:4df93a6d:27ab907d:c2a6f29e
       devices=/dev/sde

    What happend before?


    One day I came home and the server was off. The cause was a outage of the power supply. After I changed it, the system started fine and run well. After a few weeks the server has again an outage (same reason). I ordered a new power supply and installed it. But there were not enough power plugs on the supply, so I connected only the array md0 and stated the server. I found an adaptor and installed it, so all hdd were on power and started the server again with the result: I can reach the md0 volume but not md1.


    I hope it could be fixed. If don't any chance to reach the data? As I mentioned it is a mirrored raid, so all data should be available on each drive.



    BR, Dirk

    • Offizieller Beitrag

    Re-assemble it should bring it back


    mdadm --stop /dev/md1


    mdadm --assemble --force --verbose /dev/md1 /dev/sd[de] 

    Raid is not a backup! Would you go skydiving without a parachute?


    OMV 6x amd64 running on an HP N54L Microserver

  • Hi,


    I did it and finaly it works.
    But I guess I made an error while incidentily I assambled /dev/sde and /dev/sdf, where sdf is the drive OS & OMV is running on. ||


    Is it possible /dev/sdd is off and could not be assambled with the mirror drive?


    I guess I shall copy my files as while the server is running and don't power it off until copy is finished. :/


    Lessen learnd: Don't do this again while your not in right condition!


    So far, thank you for support!!!


    BR, Dirk

Jetzt mitmachen!

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