Problem recovering data from array raid5

  • Hi,


    For some reason, my server was refusing to reboot, no UEFI showing.

    After a day shutdown, the BIOS accepted to start. I updated the BIOS by usb flash and I added a pciexpress RJ45 2,5gbit new card.

    I managed to shutdown the onboard lan and to configure the new lan card with omv-firstaid, unfortunately a new problem showed up.

    My raid 5 array was still existing but tha data almost disappeared.


    It doesn't seem that I have an hdd broken but I have no information on the quantity of data available on the omv gui.

    Is it possible to recover the data?

  • the result was this :


    Code
    root@omv41:/srv/dev-disk-by-uuid-3bdbaff2-6c47-4ff1-80b4-ffe3d4d2763d/OpenMediaVault/Joseph# cat /proc/mdstat
    Personalities : [raid6] [raid5] [raid4] [linear] [multipath] [raid0] [raid1] [raid10]
    md127 : active (auto-read-only) raid5 sda[3] sde[4] sdd[2] sdc[1]
          8790405120 blocks super 1.2 level 5, 512k chunk, algorithm 2 [4/4] [UUUU]
            resync=PENDING
    
    unused devices: <none>


    after reading some website, I managed to change the status like this :

    Code
    root@omv41:/srv/dev-disk-by-uuid-3bdbaff2-6c47-4ff1-80b4-ffe3d4d2763d/OpenMediaVault/Joseph# mdadm --readwrite /dev/md127
    root@omv41:/srv/dev-disk-by-uuid-3bdbaff2-6c47-4ff1-80b4-ffe3d4d2763d/OpenMediaVault/Joseph# cat /proc/mdstat
    Personalities : [raid6] [raid5] [raid4] [linear] [multipath] [raid0] [raid1] [raid10]
    md127 : active raid5 sda[3] sde[4] sdd[2] sdc[1]
          8790405120 blocks super 1.2 level 5, 512k chunk, algorithm 2 [4/4] [UUUU]
          [>....................]  resync =  0.1% (2960816/2930135040) finish=346.0min speed=140991K/sec
    
    unused devices: <none>

    Do you think I may recover my data after sync is completed?

  • Hi,

    after a few hours of resync, I finally got this :

    Code
    root@omv41:/srv/dev-disk-by-uuid-3bdbaff2-6c47-4ff1-80b4-ffe3d4d2763d/OpenMediaVault/Joseph# cat /proc/mdstat
    Personalities : [raid6] [raid5] [raid4] [linear] [multipath] [raid0] [raid1] [raid10]
    md127 : active raid5 sda[3] sde[4] sdd[2] sdc[1]
          8790405120 blocks super 1.2 level 5, 512k chunk, algorithm 2 [4/4] [UUUU]
    
    unused devices: <none>

    Unfortunatly, no data visible and the OMV gui the file system of the array was empty, no info about the use of the array

    I found this page :

    https://www.digitalocean.com/c…ith-mdadm-on-ubuntu-16-04.


    I tried this :

    Code
    root@omv41:/srv/dev-disk-by-uuid-3bdbaff2-6c47-4ff1-80b4-ffe3d4d2763d/# umount /dev/md127
    root@omv41:/srv/dev-disk-by-uuid-3bdbaff2-6c47-4ff1-80b4-ffe3d4d2763d/# mount /dev/md127 /srv/dev-disk-by-uuid-3bdbaff2-6c47-4ff1-80b4-ffe3d4d2763d

    And I eventually got back my data!

    hope it may help others.

Jetzt mitmachen!

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