broken disk - missin array

  • i have a raid which is inactive and i cant start it.

    The Story: i noticed that some files were missing from my OMV NAS then i noticed a strange noice ( the HDD loop noise) in a disk.

    We had some power losses some days ago and propably the disk failed


    I bought a new 3TB WD disk to replace it but i cannot do it through UI. I cannot see the inactive raid






    Code
    root@omv:~# mdadm --detail --scan --verbose
    ARRAY /dev/md2 level=raid5 num-devices=4 metadata=1.2 name=omv:raid2 UUID=51ba1bbb:8efc31e5:ec43d7e9:41d7c49d
       devices=/dev/sdb,/dev/sdd,/dev/sde,/dev/sdh
    ARRAY /dev/md1 level=raid5 num-devices=4 metadata=1.2 name=omv:vault UUID=b2ccf659:68a2869a:5397135e:8bfa8312
       devices=/dev/sdc,/dev/sdg,/dev/sdj,/dev/sdl
    INACTIVE-ARRAY /dev/md0 num-devices=2 metadata=1.2 name=omv:box UUID=febf00b0:e4c9c38a:5ce780db:c8f992e6
       devices=/dev/sdf,/dev/sdk


    I bought a new 3TB to replace the broken one.

    I tried to add the new HDD from ssh but i couldnt

    The new disk is the sdi.

    i am 99% that the raid is raid5.


    is there any way to fix it ? ( i can buy more disks if need it.)


    Thanks

  • Did you follow this steps: https://www.dlford.io/linux-md…sk-replacement-procedure/

    Tbh how can you make a Raid 5 with only 2 disks and they are even different sizes? They have to be the same size and at least 3 for a Raid 5. I guess, you configured a linear aka JBOD and that "stripes" the data in series like LVM, but with less options. When this is the case, I fear the raid is partly dead and you have to remove the dead drive and lose all the data on it.


    Maybe post the Raid Details, here are mine and there you can see the raid level:


    Code
    # mdadm --detail /dev/md0 
    /dev/md0:
               Version : 1.2
         Creation Time : Tue Jan 31 18:30:53 2023
            Raid Level : raid5
            Array Size : 11720658432 (11177.69 GiB 12001.95 GB)
         Used Dev Size : 3906886144 (3725.90 GiB 4000.65 GB)
          Raid Devices : 4
         Total Devices : 4
  • It was raid5 with 4 disks ( 3tb-3tb-1tb-1tb) But it looks like 3 of those were broken.

    I did a raid recovery to a company and they repaired the disks and i was be able to get the data.


    thanks for your time.

    • Official Post

    It was raid5 with 4 disks ( 3tb-3tb-1tb-1tb)

    In the future I would analyze Raid configurations a little better. A Raid5 with 3TB+3TB+1TB+1TB provides a total storage capacity of 3TB. However, a Raid1 with 3TB+3TB gives you the same total storage capacity of 3TB, plus you are half as likely to lose a drive, 2 versus 4, and leaves the two 1TB drives free for other uses.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!