Please, noob needs help for raid 5 problem

  • Hello out there,


    Running OMV 2.1.6. My Raid5 is gone. First i had a raid clean/degraded message by e-mail. that was about /dev/sdg that was faulty.
    So i wanted to replace this disk with a new one. I had at first the next devices /dev/sda, /dev/sdc, /dev/sdd, /dev/sde, /dev/sdf and /dev/sdg together forming md127


    Now devicenames are mixed up /dev/sda is ok but then /dev/sdc is now /dev/sdb! and so on for the next devices?!
    I didn't replace a disk jet!


    Via cat /proc/mdstat i see i have 2 personalities?


    "root@OMV:~# cat /proc/mdstat
    Personalities : [raid6] [raid5] [raid4]
    md126 : inactive sda[3](S)
    1953383512 blocks super 1.2


    md127 : inactive sdb[0] sdd[2] sdc[1]
    2929894536 blocks super 1.2


    unused devices: <none>"
    So i want to get them all in md127 and names as /dev/sda, /dev/sdc, /dev/sdd, /dev/sde, /dev/sdf to rebuild my raid.
    Can i somehow rename /dev/sdc to /dev/sdd and so on in reverse order to get my devicenames the same as it was?


    In GUI i cab see in storage my dics but in raid management there's nothing.
    I hope i can somehow rebuild or rescue my raid with your help?


    Thanx in advance.


    John

    • Offizieller Beitrag

    No, you really can't rename them and it wouldn't really fix anything.
    mdadm --stop /dev/md126
    mdadm --stop /dev/md127


    According to your letters:
    mdadm --assemble /dev/md127 /dev/sd[acdef] --verbose --force


    According to the mdstat output, abcd are the drives in raid arrays. What is the output of fdisk -l?

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    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!

  • root@OMV:~# fdisk -l


    Disk /dev/sda: 2000.4 GB, 2000398934016 bytes
    255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 4096 bytes
    I/O size (minimum/optimal): 4096 bytes / 4096 bytes
    Disk identifier: 0x00000000


    Disk /dev/sda doesn't contain a valid partition table


    Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
    255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 4096 bytes
    I/O size (minimum/optimal): 4096 bytes / 4096 bytes
    Disk identifier: 0x00000000


    Disk /dev/sdb doesn't contain a valid partition table


    Disk /dev/sdd: 1000.2 GB, 1000204886016 bytes
    255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 4096 bytes
    I/O size (minimum/optimal): 4096 bytes / 4096 bytes
    Disk identifier: 0x00000000


    Disk /dev/sdd doesn't contain a valid partition table


    Disk /dev/sde: 160.0 GB, 160041885696 bytes
    255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x000d4e88


    Device Boot Start End Blocks Id System
    /dev/sde1 * 2048 299839487 149918720 83 Linux
    /dev/sde2 299841534 312580095 6369281 5 Extended
    /dev/sde5 299841536 312580095 6369280 82 Linux swap / Solaris


    Disk /dev/sdc: 1000.2 GB, 1000204886016 bytes
    255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x00000000




    Disk /dev/sdc doesn't contain a valid partition table


    Disk /dev/sdf: 2000.4 GB, 2000398934016 bytes
    255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 4096 bytes
    I/O size (minimum/optimal): 4096 bytes / 4096 bytes
    Disk identifier: 0x00000000


    Disk /dev/sdf doesn't contain a valid partition table

  • mdadm --assemble /dev/md127 /dev/sd[acdef] --verbose --force


    Gave me this output:

    Code
    mdadm: looking for devices for /dev/md127
    mdadm: no RAID superblock on /dev/sde
    mdadm: /dev/sde has no superblock - assembly aborted


    Thanx in advance Ryecoaaron

  • Great!! Thanks to ryecoaaron and br41n. You did it! E was the system drive!
    The RAID 5 is working again and as it seems right now, i lost no data!


    I thank you both very much! :thumbup::thumbup::thumbup::thumbup::thumbup:


    greets John

Jetzt mitmachen!

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