Lost folder and files

  • Hi,


    I am struggling to connect to some files and folders on my OMV NAS build on a Pi3



    root@raspberrypi:~# cat /proc/mdstat
    Personalities : [raid1]
    md0 : active raid1 sdb[0]
    976631488 blocks super 1.2 [2/1] [U_]
    bitmap: 4/8 pages [16KB], 65536KB chunk


    unused devices: <none>



    root@raspberrypi:~# blkid
    /dev/mmcblk0p1: SEC_TYPE="msdos" LABEL="boot" UUID="7D5C-A285" TYPE="vfat" PARTUUID="000b5098-01"
    /dev/mmcblk0p2: LABEL="omv" UUID="5d18be51-3217-4679-9c72-a54e0fc53d6b" TYPE="ext4" PARTUUID="000b5098-02"
    /dev/mmcblk0p3: UUID="fa36508a-b3c4-4499-b30a-711dd5994225" TYPE="ext4" PARTUUID="000b5098-03"
    /dev/sda: UUID="c291ee84-e025-76a2-2e58-f8283dae819b" UUID_SUB="3392a0f3-71cc-a715-6caf-2f20feb57cae" LABEL="raspberrypi:Mirror" TYPE="linux_raid_member"
    /dev/sdc: UUID="c291ee84-e025-76a2-2e58-f8283dae819b" UUID_SUB="42b828c7-f2ed-9b30-8799-262364fcd8f4" LABEL="raspberrypi:Mirror" TYPE="linux_raid_member"
    /dev/mmcblk0: PTUUID="000b5098" PTTYPE="dos"


    root@raspberrypi:~# fdisk -l | grep "Disk "
    Disk /dev/ram0: 4 MiB, 4194304 bytes, 8192 sectors
    Disk /dev/ram1: 4 MiB, 4194304 bytes, 8192 sectors
    Disk /dev/ram2: 4 MiB, 4194304 bytes, 8192 sectors
    Disk /dev/ram3: 4 MiB, 4194304 bytes, 8192 sectors
    Disk /dev/ram4: 4 MiB, 4194304 bytes, 8192 sectors
    Disk /dev/ram5: 4 MiB, 4194304 bytes, 8192 sectors
    Disk /dev/ram6: 4 MiB, 4194304 bytes, 8192 sectors
    Disk /dev/ram7: 4 MiB, 4194304 bytes, 8192 sectors
    Disk /dev/ram8: 4 MiB, 4194304 bytes, 8192 sectors
    Disk /dev/ram9: 4 MiB, 4194304 bytes, 8192 sectors
    Disk /dev/ram10: 4 MiB, 4194304 bytes, 8192 sectors
    Disk /dev/ram11: 4 MiB, 4194304 bytes, 8192 sectors
    Disk /dev/ram12: 4 MiB, 4194304 bytes, 8192 sectors
    Disk /dev/ram13: 4 MiB, 4194304 bytes, 8192 sectors
    Disk /dev/ram14: 4 MiB, 4194304 bytes, 8192 sectors
    Disk /dev/ram15: 4 MiB, 4194304 bytes, 8192 sectors
    Disk /dev/mmcblk0: 15.1 GiB, 16172187648 bytes, 31586304 sectors
    Disk identifier: 0x000b5098
    Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
    Disk /dev/sdc: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors


    root@raspberrypi:~# cat /etc/mdadm/mdadm.conf
    # mdadm.conf
    #
    # Please refer to mdadm.conf(5) for information about this file.
    #


    # by default, scan all partitions (/proc/partitions) for MD superblocks.
    # alternatively, specify devices to scan, using wildcards if desired.
    # Note, if no DEVICE line is present, then "DEVICE partitions" is assumed.
    # To avoid the auto-assembly of RAID devices a pattern that CAN'T match is
    # used if no RAID devices are configured.
    DEVICE partitions


    # auto-create devices with Debian standard permissions
    CREATE owner=root group=disk mode=0660 auto=yes


    # automatically tag new arrays as belonging to the local system
    HOMEHOST <system>


    # definitions of existing MD arrays
    ARRAY /dev/md0 metadata=1.2 name=raspberrypi:Mirror UUID=c291ee84:e02576a2:2e58f 828:3dae819b


    # instruct the monitoring daemon where to send mail alerts
    MAILADDR carsten.ackermann@gmail.com
    MAILFROM rootroot@raspberrypi:~#


    root@raspberrypi:~# mdadm --detail --scan --verbose
    ARRAY /dev/md0 level=raid1 num-devices=2 metadata=1.2



    I got 2 Trancend 1TB hard drives in there


    I got a powered USB hub to power the 2 hard drives, and I think the faliure happened when when this hub died


    when this happened I could no longer see the share in the web portal but after some googeling I ran a command that i cant remember or find (please let me know if its important) now I can see the share, but as i said im missing some files and folders.


    there is some important info on there, so any help would be great

  • hmm not much feedback.


    well let me add a bit more info that might be usefull.


    i have tried mounting both disks in ext2 volume manager with no luck both drives listed as raw, and neither ubunto and mint will not mount the disks.


    can I "rebuild" the array/raid1 in ovm without loosing data?
    i really hope for some feedback here, there is alot of pictures on there that...

    • Offizieller Beitrag

    You should be able to mount a degraded array if it is raid 1 but try this:


    mdadm --stop /dev/md0
    mdadm --assemble --verbose --force /dev/md0 /dev/sd[ac]


    Post the output of cat /proc/mdstat after that.


    I got a powered USB hub to power the 2 hard drives, and I think the faliure happened when when this hub died

    Just a note, I would never run a raid array over usb and definitely wouldn't use raid on an RPi.


    i really hope for some feedback here, there is alot of pictures on there that...

    Raid isn't backup...

    omv 7.1.0-2 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.2 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.5 | scripts 7.0.7


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

Jetzt mitmachen!

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