After hard update the Raid 1 hdd shown as empty

  • The you'll need to run omv-mkconf mdadm

    Done, without any issues.



    Going back to your post 7 running mdadm --readwrite /dev/md127 should have brought the array back up as active.

    Done after but the result is:



    root@openmediavault:~# mdadm --readwrite /dev/md127
    mdadm: failed to set writable for /dev/md127: Device or resource busy


    Now the second drive weren't recognized.


    I feel like a noob right now !

  • Nah, all been there, OK mdadm --stop /dev/md127 then run the command

    Done.


    root@openmediavault:~# mdadm --stop /dev/md127
    mdadm: stopped /dev/md127
    root@openmediavault:~# omv-mkconf mdadm
    update-initramfs: Generating /boot/initrd.img-4.19.0-0.bpo.4-amd64
    W: mdadm: /etc/mdadm/mdadm.conf defines no arrays.
    root@openmediavault:~#


    What the problem is, I don't know. No step forward, no solution. I'm getting desperate.

    • Offizieller Beitrag

    omv-mkconf mdadm should only be run after you have a working array. I would mdadm --assemble --force --verbose /dev/md127 /dev/sd[bc] (not sure about the drives). If it is fine, then run the omv-mkconf command. If it is auto read only, run the readwrite command.

    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!

  • Done


    root@openmediavault:~# mdadm --assemble --force --verbose /dev/md127 /dev/sdc
    mdadm: looking for devices for /dev/md127
    mdadm: /dev/sdc is identified as a member of /dev/md127, slot 0.
    mdadm: no uptodate device for slot 1 of /dev/md127
    mdadm: added /dev/sdc to /dev/md127 as 0
    mdadm: /dev/md127 has been started with 1 drive (out of 2).
    root@openmediavault:~#
    root@openmediavault:~#
    root@openmediavault:~# mdadm --assemble --force --verbose /dev/md127 /dev/sdb
    mdadm: looking for devices for /dev/md127
    mdadm: Found some drive for an array that is already active: /dev/md127
    mdadm: giving up.
    root@openmediavault:~# omv-mkconf mdadm
    update-initramfs: Generating /boot/initrd.img-4.19.0-0.bpo.4-amd64
    root@openmediavault:~#


    Now from the recognized drive almost 400 Gb is taken and this seems to be the amount of stored data when I start these unexpected odyssey. The second drive still unrecognized.

  • I'll check that both drives are connected.


    Update:


    Checked and now the second drive is now recognized.



    root@openmediavault:~# lsblk
    NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
    sda 8:0 0 119.2G 0 disk
    ├─sda1 8:1 0 113.8G 0 part /
    ├─sda2 8:2 0 1K 0 part
    └─sda5 8:5 0 5.5G 0 part [SWAP]
    sdb 8:16 0 1.8T 0 disk
    sdc 8:32 0 1.8T 0 disk
    └─md127 9:127 0 1.8T 0 raid1
    root@openmediavault:~#

  • cat /proc/mdstat

    root@openmediavault:~# cat /proc/mdstat
    Personalities : [raid1] [linear] [multipath] [raid0] [raid6] [raid5] [raid4] [raid10]
    md127 : active (auto-read-only) raid1 sdc[0]
    1953383360 blocks super 1.2 [2/1] [U_]


    unused devices: <none>
    root@openmediavault:~#



    cat /etc/mdadm/mdadm.conf

    root@openmediavault:~# 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/md127 metadata=1.2 name=openmediavault:Raid1 UUID=6f6bc262:bb6c50ca:ca2f7080:3ec12977
    root@openmediavault:~#


    mdadm --detail --scan --verbose

    root@openmediavault:~# 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/md127 metadata=1.2 name=openmediavault:Raid1 UUID=6f6bc262:bb6c50ca:ca2f7080:3ec12977
    root@openmediavault:~# ^C
    root@openmediavault:~# mdadm --detail --scan --verbose
    ARRAY /dev/md127 level=raid1 num-devices=2 metadata=1.2 name=openmediavault:Raid1 UUID=6f6bc262:bb6c50ca:ca2f7080:3ec12977
    devices=/dev/sdc
    root@openmediavault:~#

  • mdadm --stop /dev/md127

    root@openmediavault:~# mdadm --stop /dev/md127
    mdadm: stopped /dev/md127



    mdadm --assemble --force --verbose /dev/md127 /dev/sd[bc]

    root@openmediavault:~# mdadm --assemble --force --verbose /dev/md127 /dev/sd[bc]
    mdadm: looking for devices for /dev/md127
    mdadm: /dev/sdb is identified as a member of /dev/md127, slot 1.
    mdadm: /dev/sdc is identified as a member of /dev/md127, slot 0.
    mdadm: added /dev/sdb to /dev/md127 as 1 (possibly out of date)
    mdadm: added /dev/sdc to /dev/md127 as 0
    mdadm: /dev/md127 has been started with 1 drive (out of 2).
    root@openmediavault:~#

  • mdadm --stop /dev/md127
    mdadm --zero-superblock /dev/sdb
    mdadm --add /dev/md127 /dev/sdb

    root@openmediavault:~# mdadm --stop /dev/md127
    mdadm: stopped /dev/md127
    root@openmediavault:~# mdadm --zero-superblock /dev/sdb
    root@openmediavault:~# mdadm --add /dev/md127 /dev/sdb
    mdadm: Cannot get array info for /dev/md127
    root@openmediavault:~#



    By the way. Many thanks to everybody for helping me. I really appricate it.

    • Offizieller Beitrag

    mdadm: Cannot get array info for /dev/md127

    That I assume was after trying to add the drive, the output implies it's looking at/for mdadm.conf


    If the raid is till stopped, which it should be try this again mdadm --assemble --force --verbose /dev/md127 /dev/sd[bc]


    Need to get it back together before creating the config file.


    BTW, does it show as clean/degraded in the GUI

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

    root@openmediavault:~# mdadm --assemble --force --verbose /dev/md127 /dev/sd[bc]
    mdadm: looking for devices for /dev/md127
    mdadm: no recogniseable superblock on /dev/sdb
    mdadm: /dev/sdb has no superblock - assembly aborted
    root@openmediavault:~#


    The WebGUI shows 3 drives the system drive (sda), and the two raid drives (sdb + sdc).


    If I try to create a raid only sdb is shown. Don't know what went wrong.

Jetzt mitmachen!

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