RAID5 with no FS after power failure with one broken disk

  • Hello again!


    I had a power loss on my home server with 3 disks of 4TB. After power recovery RAID5 disappeared. I recovered with the mdadm --assemble with only 2 HDDs, one is totally broken.


    The present status of the array is:


    Code
      Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10] 
    md0 : active (auto-read-only) raid5 sdb[0] sda[2]
          7813772288 blocks super 1.2 level 5, 512k chunk, algorithm 2 [3/2] [U_U]
          bitmap: 0/30 pages [0KB], 65536KB chunk
    
    unused devices: <none>
    Code
    /dev/sda: UUID="390360b5-b502-0a56-e3e8-641fbd212762" UUID_SUB="47ac5710-1708-a44c-ecd0-16293f73df80" LABEL="office:0" TYPE="linux_raid_member"
    /dev/sdb: UUID="390360b5-b502-0a56-e3e8-641fbd212762" UUID_SUB="10b392a1-081e-9b1a-72a1-e3284ebf65e7" LABEL="office:0" TYPE="linux_raid_member"
    /dev/sdc1: UUID="48A1-D254" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="98694c66-687c-49bc-a84b-0ce8a2eb92e3"
    /dev/sdc2: UUID="e2b32790-418b-49fe-9390-5605d4e500ff" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="c4dd0e36-f04b-4f1c-b22f-42f8df374740"
    /dev/sdc3: UUID="8ca71cea-29d5-4eb6-8096-529f0ab79cb8" TYPE="swap" PARTUUID="0adc3fe6-d000-489c-b507-66f2abd93d42"
    /dev/sdc4: UUID="32eec2b5-bbdc-4498-aec4-0a965e6b6eec" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="fc0744ce-3d82-4f0e-93a4-acffe350770b"
    /dev/md0: UUID="4affbced-623b-4e78-9899-4eca2eb400a6" BLOCK_SIZE="4096" TYPE="ext4"
    Code
    DEVICE partitions
    CREATE owner=root group=disk mode=0660 auto=yes
    HOMEHOST <system>
    MAILADDR xxxxxx
    MAILFROM root
    
    # definitions of existing MD arrays
    ARRAY /dev/md0 metadata=1.2 name=office:0 UUID=390360b5:b5020a56:e3e8641f:bd212762
    Code
    ARRAY /dev/md0 level=raid5 num-devices=3 metadata=1.2 name=office:0 UUID=390360b5:b5020a56:e3e8641f:bd212762
       devices=/dev/sda,/dev/sdb

    fstab:

    Code
    /dev/disk/by-uuid/4affbced-623b-4e78-9899-4eca2eb400a6        /srv/dev-disk-by-uuid-4affbced-623b-4e78-9899-4eca2eb400a6    ext4    defaults,nofail,user_xattr,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,acl    0 2

    So, the raid looks like rrunning on 2 HDDs, clean and degraded but the filesystem can't be mounted:


    Code
     Error
    fsname: The value "" does not match exactly one schema of [{"type":"string","format":"fsuuid"},{"type":"string","format":"devicefile"},{"type":"string","format":"dirpath"}]. 


    I know, RAID is not backup, I am not crying for the data on it but it would be nice to have it back :)


    Any help would be appreciate it. Thank you in advance.

    • Neu
    • Offizieller Beitrag

    Can't remember if this works with mdadm running -> mdadm --readwrite /dev/md0 if there is an error or some other failed output run mdadm --stop /dev/md0 then the --readwrite command

  • output of cat /proc/mdstat

    Code
    Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10] 
    md0 : active raid5 sdb[0] sda[2]
          7813772288 blocks super 1.2 level 5, 512k chunk, algorithm 2 [3/2] [U_U]
          bitmap: 0/30 pages [0KB], 65536KB chunk
    
    unused devices: <none>
  • Diomet

    Hat das Label gelöst hinzugefügt.

Jetzt mitmachen!

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