RAID5 missing after adding disk

  • Hello everyone,


    my Raid5 went missing after adding a new disk to it.


    Before growing: 3x disk 10TB
    After growing: 4x disk 10TB


    I added the new disk with
    mdadm --add /dev/md0 /dev/sda


    --> somehow the new disk showed up as sda !?



    and grew the Raid with
    mdadm --grow --raid-devices=4


    Everything went fine. My Raid grew and the new storage space showed up in the WebGUI.


    I copied some files to it an shut it down.


    After rebooting my Raid went missing. I have no idea what went wrong.


    I hope you can help me. Thank you very much!


    Release: 4.1.19-1
    Codename: Arrakis




    Output results:



    1. cat /proc/mdstat

    Code
    Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
    md0 : inactive sdb[0](S) sdd[2](S) sdc[1](S)
          29298921984 blocks super 1.2
    
    
    unused devices: <none>



    2. blkid

    Code
    /dev/sdb: UUID="430dadae-5f1c-40c9-c3a5-a8d515749f6c" UUID_SUB="945f5477-7c7f-97b5-cf6d-60701af938fb" LABEL="openmediavault:SimonsNAS" TYPE="linux_raid_member"
    /dev/sdd: UUID="430dadae-5f1c-40c9-c3a5-a8d515749f6c" UUID_SUB="177204c9-dfb9-f78c-725b-b9861fe857b6" LABEL="openmediavault:SimonsNAS" TYPE="linux_raid_member"
    /dev/sdc: UUID="430dadae-5f1c-40c9-c3a5-a8d515749f6c" UUID_SUB="921d4d34-4ee0-dc0a-1ef0-6c014035953c" LABEL="openmediavault:SimonsNAS" TYPE="linux_raid_member"
    /dev/sde1: UUID="4bc0abc4-ac0f-4814-a4f4-e51213828b15" TYPE="ext4" PARTUUID="0286303e-01"
    /dev/sde5: UUID="02284066-1848-411d-9a57-7d952e67d8a7" TYPE="swap" PARTUUID="0286303e-05"
    /dev/sda1: PARTUUID="69221752-7171-483e-a28f-ae7d83f81caf"


    3. fdisk -l | grep "Disk "

    Code
    Disk /dev/sdb: 9,1 TiB, 10000831348736 bytes, 19532873728 sectors
    Disk /dev/sdd: 9,1 TiB, 10000831348736 bytes, 19532873728 sectors
    Disk /dev/sda: 9,1 TiB, 10000831348736 bytes, 19532873728 sectors
    Disk identifier: 460B81D3-EA0D-4E21-ABD4-92B84661D883
    Disk /dev/sdc: 9,1 TiB, 10000831348736 bytes, 19532873728 sectors
    Disk /dev/sde: 59,6 GiB, 64023257088 bytes, 125045424 sectors
    Disk identifier: 0x0286303e


    4. cat /etc/mdadm/mdadm.conf


    5. mdadm --detail --scan --verbose


    Code
    INACTIVE-ARRAY /dev/md0 num-devices=3 metadata=1.2 name=openmediavault:SimonsNAS UUID=430dadae:5f1c40c9:c3a5a8d5:15749f6c
       devices=/dev/sdb,/dev/sdc,/dev/sdd
    • Offizieller Beitrag

    md0 : inactive sdb[0](S) sdd[2](S) sdc[1](S)

    The Raid is inactive, it also shows only 3 drives associated, so dev/sda is not part of the array as noted by the output of blkid try the following from the cli mdadm --assemble --verbose --force /dev/md0 /dev/sd[bcd] if you get a busy error stop the array mdadm --stop /dev/md0 then run again.


    This should bring the array back up, then feed back.

  • It worked, ist back up with 3 drives...

    • Offizieller Beitrag

    :thumbup:


    In the GUI Storage -> Disks select your new drive then wipe from the menu bar.


    Raid Management, select the Raid array then grow from the menu bar, select the new drive from the popup box -> Ok the drive should then add itself and grow the array. That's the theory :)

  • I can't remember if i have wiped the new drive. :D



    1. cat /proc/mdstat

    Code
    Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
    md127 : active raid5 sdd[2] sdc[1] sdb[0]
          29298917376 blocks super 1.2 level 5, 512k chunk, algorithm 2 [4/3] [UUU_]
          bitmap: 5/73 pages [20KB], 65536KB chunk

    2. blkid


    Code
    /dev/sdb: UUID="430dadae-5f1c-40c9-c3a5-a8d515749f6c" UUID_SUB="945f5477-7c7f-97b5-cf6d-60701af938fb" LABEL="openmediavault:SimonsNAS" TYPE="linux_raid_member"
    /dev/sdd: UUID="430dadae-5f1c-40c9-c3a5-a8d515749f6c" UUID_SUB="177204c9-dfb9-f78c-725b-b9861fe857b6" LABEL="openmediavault:SimonsNAS" TYPE="linux_raid_member"
    /dev/sdc: UUID="430dadae-5f1c-40c9-c3a5-a8d515749f6c" UUID_SUB="921d4d34-4ee0-dc0a-1ef0-6c014035953c" LABEL="openmediavault:SimonsNAS" TYPE="linux_raid_member"
    /dev/sde1: UUID="4bc0abc4-ac0f-4814-a4f4-e51213828b15" TYPE="ext4" PARTUUID="0286303e-01"
    /dev/sde5: UUID="02284066-1848-411d-9a57-7d952e67d8a7" TYPE="swap" PARTUUID="0286303e-05"
    /dev/md127: LABEL="Raid5" UUID="4ba52b0b-c03f-4854-964f-a18ca8bcebe4" TYPE="ext4"
    /dev/sda1: PARTUUID="69221752-7171-483e-a28f-ae7d83f81caf"
  • :D


  • Yes, should be sda.


    But why removed ? I have just shut down my system and then restarted it.


    mdadm --zero-superblock /dev/sda

    Code
    root@openmediavault:~# mdadm --zero-superblock /dev/sda
    mdadm: Unknown keyword INACTIVE-ARRAY
    mdadm: Unrecognised md component device - /dev/sda

Jetzt mitmachen!

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