RAID 5 with 4 HDD one Failed how to reassamble the RAID .. not possible unter the GUI

T3sticle
T3sticle Posts: 13  Freshman Member
edited January 2019 in Personal Cloud Storage

Raid was degraded

swapped Disk fataly it was nr 4 not one

so i got a raid system on 3 disk but it was only recognised as a HOT Spare

how to access the data ?


Best regards


Bernd

#NAS_Dec_2018

Accepted Solution

  • Mijzelf
    Mijzelf Posts: 2,598  Guru Member
    First Anniversary 10 Comments Friend Collector First Answer
    Answer ✓
    You can also spent that 50 hours to think about a backup strategy. This episode has shown that data is fragile.
«1

All Replies

  • Mijzelf
    Mijzelf Posts: 2,598  Guru Member
    First Anniversary 10 Comments Friend Collector First Answer
    Are you saying that you by accident replaced the wrong disk? Have you already tried to put back that disk?
  • T3sticle
    T3sticle Posts: 13  Freshman Member

    yes.. but my big fault was  i didnt switch off before swapping cause i was afraid if i shut down everything is gone.

    so i put it back just 5 seconds after pulling

    so  i know in fact all data is still avaiable on the 3 remanig disks but i have no clue how to tell that the Zyxel NAS

    i think i have to do this with command lines but no idea how to tell

    ok this is a raid 5  disk one  fault

    Disk 2 3 and 4  inserted try to find my data :)


  • Mijzelf
    Mijzelf Posts: 2,598  Guru Member
    First Anniversary 10 Comments Friend Collector First Answer
    edited December 2018
    Can you login over ssh, and post the results of
    <div>cat /proc/mdstat</div><div><br></div><div>su</div><div><br></div><div>mdadm --examine /dev/sd[abcd]3</div>

  • T3sticle
    T3sticle Posts: 13  Freshman Member
    BusyBox v1.19.4 (2017-05-26 16:43:23 CST) built-in shell (ash)
    Enter 'help' for a list of built-in commands.

    / $ cat /proc/mdstat
    Personalities : [linear] [raid0] [raid1] [raid10] [raid6] [raid5] [raid4]
    md3 : active raid1 sda3[0]
          1949383488 blocks super 1.2 [1/1] [U]

    md2 : inactive sdb3[1](S) sdd3[3](S) sdc3[2](S)
          5848151040 blocks super 1.2

    md1 : active raid1 sda2[5] sdd2[4] sdb2[1] sdc2[2]
          1998784 blocks super 1.2 [4/4] [UUUU]

    md0 : active raid1 sda1[5] sdd1[4] sdb1[1] sdc1[2]
          1997760 blocks super 1.2 [4/4] [UUUU]

    unused devices: <none>
    / $ su
    Password:


    BusyBox v1.19.4 (2017-05-26 16:43:23 CST) built-in shell (ash)
    Enter 'help' for a list of built-in commands.

    ~ # mdadm --examine /dev/sd[abcd]3
    /dev/sda3:
              Magic : a92b4efc
            Version : 1.2
        Feature Map : 0x0
         Array UUID : cf843cce:ce996d42:6be461f6:adf6d3bb
               Name : NAS540:3  (local to host NAS540)
      Creation Time : Fri Dec 28 00:24:12 2018
         Raid Level : raid1
       Raid Devices : 1

     Avail Dev Size : 3898767360 (1859.08 GiB 1996.17 GB)
         Array Size : 1949383488 (1859.08 GiB 1996.17 GB)
      Used Dev Size : 3898766976 (1859.08 GiB 1996.17 GB)
        Data Offset : 262144 sectors
       Super Offset : 8 sectors
              State : clean
        Device UUID : 1648013d:cb55855c:08ec1079:5531cc78

        Update Time : Sun Dec 30 10:38:10 2018
           Checksum : e8d25565 - correct
             Events : 2


       Device Role : Active device 0
       Array State : A ('A' == active, '.' == missing)
    /dev/sdb3:
              Magic : a92b4efc
            Version : 1.2
        Feature Map : 0x0
         Array UUID : 07888a97:8a8267a6:12f71d42:dc23a5fd
               Name : NAS540:2  (local to host NAS540)
      Creation Time : Sun Aug 30 17:00:06 2015
         Raid Level : raid5
       Raid Devices : 4

     Avail Dev Size : 3898767360 (1859.08 GiB 1996.17 GB)
         Array Size : 5848150464 (5577.23 GiB 5988.51 GB)
      Used Dev Size : 3898766976 (1859.08 GiB 1996.17 GB)
        Data Offset : 262144 sectors
       Super Offset : 8 sectors
              State : clean
        Device UUID : 9345f5fb:81ba7898:03dde380:08fbce0f

        Update Time : Thu Dec 27 22:09:46 2018
           Checksum : 36270b14 - correct
             Events : 905

             Layout : left-symmetric
         Chunk Size : 64K

       Device Role : Active device 1
       Array State : .AAA ('A' == active, '.' == missing)
    /dev/sdc3:
              Magic : a92b4efc
            Version : 1.2
        Feature Map : 0x0
         Array UUID : 07888a97:8a8267a6:12f71d42:dc23a5fd
               Name : NAS540:2  (local to host NAS540)
      Creation Time : Sun Aug 30 17:00:06 2015
         Raid Level : raid5
       Raid Devices : 4

     Avail Dev Size : 3898767360 (1859.08 GiB 1996.17 GB)
         Array Size : 5848150464 (5577.23 GiB 5988.51 GB)
      Used Dev Size : 3898766976 (1859.08 GiB 1996.17 GB)
        Data Offset : 262144 sectors
       Super Offset : 8 sectors
              State : clean
        Device UUID : 813341e2:bfc0a5ea:ef0c8ef4:c322dc04



  • Mijzelf
    Mijzelf Posts: 2,598  Guru Member
    First Anniversary 10 Comments Friend Collector First Answer
    A part is missing. The whole raid header of sdd, and a part of sdc.

    You have a single disk raid1 volume on sda, created at Fri Dec 28 00:24:12 2018, and a 4 disk raid5 array on sd[bcd], created on Sun Aug 30 17:00:06 2015. The array on sda is alive and kicking, the array on sd[bcd] is not assembled, because all members are marked 'spare'.
    So far it's not clear to me why (except for the root cause, pulling an active disk from an already degraded array) as the only visible array status from sdb is
    Array State : .AAA ('A' == active, '.' == missing)
    So according to this member the array should assemble from the 3 remaining disks. I think at least one of the other members will show another array state, as it's not assembled.

    According to /proc/mdstat the member 'roles' are neatly in order:
    md2 : inactive sdb3[1](S) sdd3[3](S) sdc3[2](S)
    role 1 for sdb, 2 for sdc and 3 for sdd. For sdb that fits with the output of mdadm:
       Device Role : Active device 1
    Alas I can't see that for sd[cd].

    Assuming that the roles in the headers concur with those in /proc/mdstat, you can re-create the array using the same settings as in 2015:
    su
    mdadm --stop /dev/md2
    mdadm --create --assume-clean --level=5  --raid-devices=4 --metadata=1.2 --chunk=64K --layout=left-symmetric /dev/md2 missing /dev/sdb3 /dev/sdc3 /dev/sdd3

    Some settings are the defaults, according to https://linux.die.net/man/8/mdadm, but I just add them for safety and completeness.
    Here --assume-clean tells mdadm the partitions contain a valid array, and the 'missing' keyword tells that the device with role '0' is missing. The roles 0 - 3 are assigned in the order in which you specify the partitions here.

    The sequence of the other arguments is important for mdadm, and I don't know if this is the right sequence. Fortunately it will tell you if it's wrong, and it will also tell what should be right.


  • T3sticle
    T3sticle Posts: 13  Freshman Member
    wow.. thx.. thats a lot of information...
    im german an my english is far from understanding everything..
    yes the disk one in raid1 as "only" member was inserted to reasamble the raid 5 of the 3 other disks.
    with the command line in yellow
    i should be able to recreate the raid 5 to access the data ?

  • T3sticle
    T3sticle Posts: 13  Freshman Member
    Thx for your help...
    but there seems some problems


    BusyBox v1.19.4 (2017-05-26 16:43:23 CST) built-in shell (ash)
    Enter 'help' for a list of built-in commands.

    ~ # mdadm --stop /dev/md2
    mdadm: stopped /dev/md2
    ~ # mdadm --create --assume-clean --level=5  --raid-devices=4 --metadata=1.2 --c
    hunk=64K  --layout=left-symmetric /dev/md2 missing /dev/sdb3 /dev/sdc3 /dev/sdd3
    cat /proc/mdstat
    mdadm: You have listed more devices (5) than are in the array(4)!
    ~ # mdadm --examine /dev/sd[abcd]3
    /dev/sda3:
              Magic : a92b4efc
            Version : 1.2
        Feature Map : 0x0
         Array UUID : cf843cce:ce996d42:6be461f6:adf6d3bb
               Name : NAS540:3  (local to host NAS540)
      Creation Time : Fri Dec 28 00:24:12 2018
         Raid Level : raid1
       Raid Devices : 1

     Avail Dev Size : 3898767360 (1859.08 GiB 1996.17 GB)
         Array Size : 1949383488 (1859.08 GiB 1996.17 GB)
      Used Dev Size : 3898766976 (1859.08 GiB 1996.17 GB)
        Data Offset : 262144 sectors
       Super Offset : 8 sectors
              State : clean
        Device UUID : 1648013d:cb55855c:08ec1079:5531cc78

        Update Time : Sun Dec 30 15:35:05 2018
           Checksum : e8d29afc - correct
             Events : 2


       Device Role : Active device 0
       Array State : A ('A' == active, '.' == missing)
    /dev/sdb3:
              Magic : a92b4efc
            Version : 1.2
        Feature Map : 0x0
         Array UUID : 07888a97:8a8267a6:12f71d42:dc23a5fd
               Name : NAS540:2  (local to host NAS540)
      Creation Time : Sun Aug 30 17:00:06 2015
         Raid Level : raid5
       Raid Devices : 4

     Avail Dev Size : 3898767360 (1859.08 GiB 1996.17 GB)
         Array Size : 5848150464 (5577.23 GiB 5988.51 GB)
      Used Dev Size : 3898766976 (1859.08 GiB 1996.17 GB)
        Data Offset : 262144 sectors
       Super Offset : 8 sectors
              State : clean
        Device UUID : 9345f5fb:81ba7898:03dde380:08fbce0f

        Update Time : Thu Dec 27 22:09:46 2018
           Checksum : 36270b14 - correct
             Events : 905

             Layout : left-symmetric
         Chunk Size : 64K

       Device Role : Active device 1
       Array State : .AAA ('A' == active, '.' == missing)
    /dev/sdc3:
              Magic : a92b4efc
            Version : 1.2
        Feature Map : 0x0
         Array UUID : 07888a97:8a8267a6:12f71d42:dc23a5fd
               Name : NAS540:2  (local to host NAS540)
      Creation Time : Sun Aug 30 17:00:06 2015
         Raid Level : raid5
       Raid Devices : 4

     Avail Dev Size : 3898767360 (1859.08 GiB 1996.17 GB)
         Array Size : 5848150464 (5577.23 GiB 5988.51 GB)
      Used Dev Size : 3898766976 (1859.08 GiB 1996.17 GB)
        Data Offset : 262144 sectors
       Super Offset : 8 sectors
              State : clean
        Device UUID : 813341e2:bfc0a5ea:ef0c8ef4:c322dc04

        Update Time : Thu Dec 27 22:09:46 2018
           Checksum : d7525769 - correct
             Events : 905

             Layout : left-symmetric
         Chunk Size : 64K

       Device Role : Active device 2
       Array State : .AA. ('A' == active, '.' == missing)
    /dev/sdd3:
              Magic : a92b4efc
            Version : 1.2
        Feature Map : 0x0
         Array UUID : 07888a97:8a8267a6:12f71d42:dc23a5fd
               Name : NAS540:2  (local to host NAS540)
      Creation Time : Sun Aug 30 17:00:06 2015
         Raid Level : raid5
       Raid Devices : 4

     Avail Dev Size : 3898767360 (1859.08 GiB 1996.17 GB)
         Array Size : 5848150464 (5577.23 GiB 5988.51 GB)
      Used Dev Size : 3898766976 (1859.08 GiB 1996.17 GB)
        Data Offset : 262144 sectors
       Super Offset : 8 sectors
              State : clean
        Device UUID : 8e466416:80304d4c:3834cf56:3ce879c1

        Update Time : Thu Dec 27 22:07:06 2018
           Checksum : 8c00c5d8 - correct
             Events : 905

             Layout : left-symmetric
         Chunk Size : 64K

       Device Role : Active device 3
       Array State : .AAA ('A' == active, '.' == missing)
    ~ # BusyBox v1.19.4 (2017-05-26 16:43:23 CST) built-in shell (ash)
    sh: syntax error: unexpected "("
    ~ # Enter 'help' for a list of built-in commands.
    sh: Enter: not found
    ~ #
    ~ # ~ # mdadm --stop /dev/md2
    sh: /root: Permission denied
    ~ # mdadm: stopped /dev/md2
    sh: mdadm:: not found
    ~ # ~ # mdadm --create --assume-clean --level=5  --raid-devices=4 --metadata=1.2
     --c
    sh: /root: Permission denied
    ~ # hunk=64K  --layout=left-symmetric /dev/md2 missing /dev/sdb3 /dev/sdc3 /dev/
    sdd3
    sh: --layout=left-symmetric: not found
    ~ # cat /proc/mdstat
    Personalities : [linear] [raid0] [raid1] [raid10] [raid6] [raid5] [raid4]
    md3 : active raid1 sda3[0]
          1949383488 blocks super 1.2 [1/1] [U]

    md1 : active raid1 sda2[5] sdd2[4] sdb2[1] sdc2[2]
          1998784 blocks super 1.2 [4/4] [UUUU]

    md0 : active raid1 sda1[5] sdd1[4] sdb1[1] sdc1[2]
          1997760 blocks super 1.2 [4/4] [UUUU]

    unused devices: <none>
    ~ # mdadm: You have listed more devices (5) than are in the array(4)!
    sh: syntax error: unexpected "("
    ~ # ~ # mdadm --examine /dev/sd[abcd]3
    sh: /root: Permission denied
    ~ # /dev/sda3:
    sh: /dev/sda3:: not found
    ~ #           Magic : a92b4efc
    sh: Magic: not found
    ~ #         Version : 1.2
    sh: Version: not found
    ~ #     Feature Map : 0x0
    sh: Feature: not found
    ~ #      Array UUID : cf843cce:ce996d42:6be461f6:adf6d3bb
    sh: Array: not found
    ~ #            Name : NAS540:3  (local to host NAS540)
    sh: syntax error: unexpected "("
    ~ #   Creation Time : Fri Dec 28 00:24:12 2018
    sh: Creation: not found
    ~ #      Raid Level : raid1
    sh: Raid: not found
    ~ #    Raid Devices : 1
    sh: Raid: not found
    ~ #
    ~ #  Avail Dev Size : 3898767360 (1859.08 GiB 1996.17 GB)
    sh: syntax error: unexpected "("
    ~ #      Array Size : 1949383488 (1859.08 GiB 1996.17 GB)
    sh: syntax error: unexpected "("
    ~ #   Used Dev Size : 3898766976 (1859.08 GiB 1996.17 GB)
    sh: syntax error: unexpected "("
    ~ #     Data Offset : 262144 sectors
    sh: Data: not found
    ~ #    Super Offset : 8 sectors
    sh: Super: not found
    ~ #           State : clean
    sh: State: not found
    ~ #     Device UUID : 1648013d:cb55855c:08ec1079:5531cc78
    sh: Device: not found
    ~ #
    ~ #     Update Time : Sun Dec 30 15:35:05 2018
    sh: Update: not found
    ~ #        Checksum : e8d29afc - correct
    sh: Checksum: not found
    ~ #          Events : 2
    sh: Events: not found
    ~ #
    ~ #
    ~ #    Device Role : Active device 0
    sh: Device: not found
    ~ #    Array State : A ('A' == active, '.' == missing)
    sh: syntax error: unexpected "("
    ~ # /dev/sdb3:
    sh: /dev/sdb3:: not found
    ~ #           Magic : a92b4efc
    sh: Magic: not found
    ~ #         Version : 1.2
    sh: Version: not found
    ~ #     Feature Map : 0x0
    sh: Feature: not found
    ~ #      Array UUID : 07888a97:8a8267a6:12f71d42:dc23a5fd
    sh: Array: not found
    ~ #            Name : NAS540:2  (local to host NAS540)
    sh: syntax error: unexpected "("
    ~ #   Creation Time : Sun Aug 30 17:00:06 2015
    sh: Creation: not found
    ~ #      Raid Level : raid5
    sh: Raid: not found
    ~ #    Raid Devices : 4
    sh: Raid: not found
    ~ #
    ~ #  Avail Dev Size : 3898767360 (1859.08 GiB 1996.17 GB)
    sh: syntax error: unexpected "("
    ~ #      Array Size : 5848150464 (5577.23 GiB 5988.51 GB)
    sh: syntax error: unexpected "("
    ~ #   Used Dev Size : 3898766976 (1859.08 GiB 1996.17 GB)
    sh: syntax error: unexpected "("
    ~ #     Data Offset : 262144 sectors
    sh: Data: not found
    ~ #    Super Offset : 8 sectors
    sh: Super: not found
    ~ #           State : clean
    sh: State: not found
    ~ #     Device UUID : 9345f5fb:81ba7898:03dde380:08fbce0f
    sh: Device: not found
    ~ #
    ~ #     Update Time : Thu Dec 27 22:09:46 2018
    sh: Update: not found
    ~ #        Checksum : 36270b14 - correct
    sh: Checksum: not found
    ~ #          Events : 905
    sh: Events: not found
    ~ #
    ~ #          Layout : left-symmetric
    sh: Layout: not found
    ~ #      Chunk Size : 64K
    sh: Chunk: not found
    ~ #
    ~ #    Device Role : Active device 1
    sh: Device: not found
    ~ #    Array State : .AAA ('A' == active, '.' == missing)
    sh: syntax error: unexpected "("
    ~ # /dev/sdc3:
    sh: /dev/sdc3:: not found
    ~ #           Magic : a92b4efc
    sh: Magic: not found
    ~ #         Version : 1.2
    sh: Version: not found
    ~ #     Feature Map : 0x0
    sh: Feature: not found
    ~ #      Array UUID : 07888a97:8a8267a6:12f71d42:dc23a5fd
    sh: Array: not found
    ~ #            Name : NAS540:2  (local to host NAS540)
    sh: syntax error: unexpected "("
    ~ #   Creation Time : Sun Aug 30 17:00:06 2015
    sh: Creation: not found
    ~ #      Raid Level : raid5
    sh: Raid: not found
    ~ #    Raid Devices : 4
    sh: Raid: not found
    ~ #
    ~ #  Avail Dev Size : 3898767360 (1859.08 GiB 1996.17 GB)
    sh: syntax error: unexpected "("
    ~ #      Array Size : 5848150464 (5577.23 GiB 5988.51 GB)
    sh: syntax error: unexpected "("
    ~ #   Used Dev Size : 3898766976 (1859.08 GiB 1996.17 GB)
    sh: syntax error: unexpected "("
    ~ #     Data Offset : 262144 sectors
    sh: Data: not found
    ~ #    Super Offset : 8 sectors
    sh: Super: not found
    ~ #           State : clean
    sh: State: not found
    ~ #     Device UUID : 813341e2:bfc0a5ea:ef0c8ef4:c322dc04
    sh: Device: not found
    ~ #
    ~ #     Update Time : Thu Dec 27 22:09:46 2018
    sh: Update: not found
    ~ #        Checksum : d7525769 - correct
    sh: Checksum: not found
    ~ #          Events : 905
    sh: Events: not found
    ~ #
    ~ #          Layout : left-symmetric
    sh: Layout: not found
    ~ #      Chunk Size : 64K
    sh: Chunk: not found
    ~ #
    ~ #    Device Role : Active device 2
    sh: Device: not found
    ~ #    Array State : .AA. ('A' == active, '.' == missing)
    sh: syntax error: unexpected "("
    ~ # /dev/sdd3:
    sh: /dev/sdd3:: not found
    ~ #           Magic : a92b4efc
    sh: Magic: not found
    ~ #         Version : 1.2
    sh: Version: not found
    ~ #     Feature Map : 0x0
    sh: Feature: not found
    ~ #      Array UUID : 07888a97:8a8267a6:12f71d42:dc23a5fd
    sh: Array: not found
    ~ #            Name : NAS540:2  (local to host NAS540)
    sh: syntax error: unexpected "("
    ~ #   Creation Time : Sun Aug 30 17:00:06 2015
    sh: Creation: not found
    ~ #      Raid Level : raid5
    sh: Raid: not found
    ~ #    Raid Devices : 4
    sh: Raid: not found
    ~ #
    ~ #  Avail Dev Size : 3898767360 (1859.08 GiB 1996.17 GB)
    sh: syntax error: unexpected "("
    ~ #      Array Size : 5848150464 (5577.23 GiB 5988.51 GB)
    sh: syntax error: unexpected "("
    ~ #   Used Dev Size : 3898766976 (1859.08 GiB 1996.17 GB)
    sh: syntax error: unexpected "("
    ~ #     Data Offset : 262144 sectors
    sh: Data: not found
    ~ #    Super Offset : 8 sectors
    sh: Super: not found
    ~ #           State : clean
    sh: State: not found
    ~ #     Device UUID : 8e466416:80304d4c:3834cf56:3ce879c1
    sh: Device: not found
    ~ #
    ~ #     Update Time : Thu Dec 27 22:07:06 2018
    sh: Update: not found
    ~ #        Checksum : 8c00c5d8 - correct
    sh: Checksum: not found
    ~ #          Events : 905
    sh: Events: not found
    ~ #
    ~ #          Layout : left-symmetric
    sh: Layout: not found
    ~ #      Chunk Size : 64K
    sh: Chunk: not found
    ~ #
    ~ #    Device Role : Active device 3
    sh: Device: not found
    ~ #    Array State : .AAA ('A' == active, '.' == missing)
    sh: syntax error: unexpected "("
    ~ # ~ #
    sh: /root: Permission denied
    ~ #    Device Role : Active device 3
    sh: Device: not found
    ~ #    Array State : .AAA ('A' == active, '.' == missing)
    sh: syntax error: unexpected "("
    ~ # ~ # BusyBox v1.19.4 (2017-05-26 16:43:23 CST) built-in shell (ash)

  • T3sticle
    T3sticle Posts: 13  Freshman Member

    sh: /root: Permission denied
    ~ # sh: syntax error: unexpected "("

    sh: sh:: not found
    ~ # ~ # Enter 'help' for a list of built-in commands.

    sh: /root: Permission denied
    ~ # sh: Enter: not found

    sh: sh:: not found
    ~ # ~ #

    sh: /root: Permission denied
    ~ # ~ # ~ # mdadm --stop /dev/md2

    sh: /root: Permission denied
    ~ # sh: /root: Permission denied

    sh: sh:: not found
    ~ # ~ # mdadm: stopped /dev/md2

    sh: /root: Permission denied
    ~ # sh: mdadm:: not found

    sh: sh:: not found
    ~ # ~ # ~ # mdadm --create --assume-clean --level=5  --raid-devices=4 --metadata
    =1.2

    sh: /root: Permission denied
    ~ #  --c

    sh: --c: not found
    ~ # sh: /root: Permission denied

    sh: sh:: not found
    ~ # ~ # hunk=64K  --layout=left-symmetric /dev/md2 missing /dev/sdb3 /dev/sdc3 /
    dev/

    sh: /root: Permission denied
    ~ # sdd3

    sh: sdd3: not found
    ~ # sh: --layout=left-symmetric: not found

    sh: sh:: not found
    ~ # ~ # cat /proc/mdstat

    sh: /root: Permission denied
    ~ # Personalities : [linear] [raid0] [raid1] [raid10] [raid6] [raid5] [raid4]

    sh: Personalities: not found
    ~ # md3 : active raid1 sda3[0]

    sh: md3: not found
    ~ #       1949383488 blocks super 1.2 [1/1] [U]

    sh: 1949383488: not found
    ~ #

    ~ # md1 : active raid1 sda2[5] sdd2[4] sdb2[1] sdc2[2]

    sh: md1: not found
    ~ #       1998784 blocks super 1.2 [4/4] [UUUU]

    sh: 1998784: not found
    ~ #

    ~ # md0 : active raid1 sda1[5] sdd1[4] sdb1[1] sdc1[2]

    sh: md0: not found
    ~ #       1997760 blocks super 1.2 [4/4] [UUUU]

    sh: 1997760: not found
    ~ #

    ~ # unused devices: <none>

    sh: syntax error: unexpected newline
    ~ # ~ # mdadm: You have listed more devices (5) than are in the array(4)!

    sh: /root: Permission denied
    ~ # sh: syntax error: unexpected "("

    sh: sh:: not found
    ~ # ~ # ~ # mdadm --examine /dev/sd[abcd]3

    sh: /root: Permission denied
    ~ # sh: /root: Permission denied

    sh: sh:: not found
    ~ # ~ # /dev/sda3:

    sh: /root: Permission denied
    ~ # sh: /dev/sda3:: not found

    sh: sh:: not found
    ~ # ~ #           Magic : a92b4efc

    sh: /root: Permission denied
    ~ # sh: Magic: not found

    sh: sh:: not found
    ~ # ~ #         Version : 1.2

    sh: /root: Permission denied
    ~ # sh: Version: not found

    sh: sh:: not found
    ~ # ~ #     Feature Map : 0x0

    sh: /root: Permission denied
    ~ # sh: Feature: not found

    sh: sh:: not found
    ~ # ~ #      Array UUID : cf843cce:ce996d42:6be461f6:adf6d3bb

    sh: /root: Permission denied
    ~ # sh: Array: not found

    sh: sh:: not found
    ~ # ~ #            Name : NAS540:3  (local to host NAS540)

    sh: /root: Permission denied
    ~ # sh: syntax error: unexpected "("

    sh: sh:: not found
    ~ # ~ #   Creation Time : Fri Dec 28 00:24:12 2018

    sh: /root: Permission denied
    ~ # sh: Creation: not found

    sh: sh:: not found
    ~ # ~ #      Raid Level : raid1

    sh: /root: Permission denied
    ~ # sh: Raid: not found

    sh: sh:: not found
    ~ # ~ #    Raid Devices : 1

    sh: /root: Permission denied
    ~ # sh: Raid: not found

    sh: sh:: not found
    ~ # ~ #

    sh: /root: Permission denied
    ~ # ~ #  Avail Dev Size : 3898767360 (1859.08 GiB 1996.17 GB)

    sh: /root: Permission denied
    ~ # sh: syntax error: unexpected "("

    sh: sh:: not found
    ~ # ~ #      Array Size : 1949383488 (1859.08 GiB 1996.17 GB)

    sh: /root: Permission denied
    ~ # sh: syntax error: unexpected "("
    sh: sh:: not found
    ~ # ~ #   Used Dev Size : 3898766976 (1859.08 GiB 1996.17 GB)
    sh: /root: Permission denied
    ~ # sh: syntax error: unexpected "("
    sh: sh:: not found
    ~ # ~ #     Data Offset : 262144 sectors
    sh: /root: Permission denied
    ~ # sh: Data: not found
    sh: sh:: not found
    ~ # ~ #    Super Offset : 8 sectors
    sh: /root: Permission denied
    ~ # sh: Super: not found
    sh: sh:: not found
    ~ # ~ #           State : clean
    sh: /root: Permission denied
    ~ # sh: State: not found
    sh: sh:: not found
    ~ # ~ #     Device UUID : 1648013d:cb55855c:08ec1079:5531cc78
    sh: /root: Permission denied
    ~ # sh: Device: not found
    sh: sh:: not found
    ~ # ~ #
    sh: /root: Permission denied
    ~ # ~ #     Update Time : Sun Dec 30 15:35:05 2018
    sh: /root: Permission denied
    ~ # sh: Update: not found
    sh: sh:: not found
    ~ # ~ #        Checksum : e8d29afc - correct
    sh: /root: Permission denied
    ~ # sh: Checksum: not found
    sh: sh:: not found
    ~ # ~ #          Events : 2
    sh: /root: Permission denied
    ~ # sh: Events: not found
    sh: sh:: not found
    ~ # ~ #
    sh: /root: Permission denied
    ~ # ~ #
    sh: /root: Permission denied
    ~ # ~ #    Device Role : Active device 0
    sh: /root: Permission denied
    ~ # sh: Device: not found
    sh: sh:: not found
    ~ # ~ #    Array State : A ('A' == active, '.' == missing)
    sh: /root: Permission denied
    ~ # sh: syntax error: unexpected "("
    sh: sh:: not found
    ~ # ~ # /dev/sdb3:
    sh: /root: Permission denied
    ~ # sh: /dev/sdb3:: not found
    sh: sh:: not found
    ~ # ~ #           Magic : a92b4efc
    sh: /root: Permission denied
    ~ # sh: Magic: not found
    sh: sh:: not found
    ~ # ~ #         Version : 1.2
    sh: /root: Permission denied
    ~ # sh: Version: not found
    sh: sh:: not found
    ~ # ~ #     Feature Map : 0x0
    sh: /root: Permission denied
    ~ # sh: Feature: not found
    sh: sh:: not found
    ~ # ~ #      Array UUID : 07888a97:8a8267a6:12f71d42:dc23a5fd
    sh: /root: Permission denied
    ~ # sh: Array: not found
    sh: sh:: not found
    ~ # ~ #            Name : NAS540:2  (local to host NAS540)
    sh: /root: Permission denied
    ~ # sh: syntax error: unexpected "("
    sh: sh:: not found
    ~ # ~ #   Creation Time : Sun Aug 30 17:00:06 2015
    sh: /root: Permission denied
    ~ # sh: Creation: not found
    sh: sh:: not found
    ~ # ~ #      Raid Level : raid5
    sh: /root: Permission denied
    ~ # sh: Raid: not found
    sh: sh:: not found
    ~ # ~ #    Raid Devices : 4
    sh: /root: Permission denied
    ~ # sh: Raid: not found
    sh: sh:: not found
    ~ # ~ #
    sh: /root: Permission denied
    ~ # ~ #  Avail Dev Size : 3898767360 (1859.08 GiB 1996.17 GB)
    sh: /root: Permission denied
    ~ # sh: syntax error: unexpected "("
    sh: sh:: not found
    ~ # ~ #      Array Size : 5848150464 (5577.23 GiB 5988.51 GB)
    sh: /root: Permission denied
    ~ # sh: syntax error: unexpected "("
    sh: sh:: not found
    ~ # ~ #   Used Dev Size : 3898766976 (1859.08 GiB 1996.17 GB)
    sh: /root: Permission denied
    ~ # sh: syntax error: unexpected "("
    sh: sh:: not found
    ~ # ~ #     Data Offset : 262144 sectors
    sh: /root: Permission denied
    ~ # sh: Data: not found
    sh: sh:: not found
    ~ # ~ #    Super Offset : 8 sectors
    sh: /root: Permission denied
    ~ # sh: Super: not found
    sh: sh:: not found
    ~ # ~ #           State : clean
    sh: /root: Permission denied
    ~ # sh: State: not found
    sh: sh:: not found
    ~ # ~ #     Device UUID : 9345f5fb:81ba7898:03dde380:08fbce0f
    sh: /root: Permission denied
    ~ # sh: Device: not found
    sh: sh:: not found
    ~ # ~ #
    sh: /root: Permission denied
    ~ # ~ #     Update Time : Thu Dec 27 22:09:46 2018
    sh: /root: Permission denied
    ~ # sh: Update: not found
    sh: sh:: not found
    ~ # ~ #        Checksum : 36270b14 - correct
    sh: /root: Permission denied
    ~ # sh: Checksum: not found
    sh: sh:: not found
    ~ # ~ #          Events : 905
    sh: /root: Permission denied
    ~ # sh: Events: not found
    sh: sh:: not found
    ~ # ~ #
    sh: /root: Permission denied
    ~ # ~ #          Layout : left-symmetric
    sh: /root: Permission denied
    ~ # sh: Layout: not found
    sh: sh:: not found
    ~ # ~ #      Chunk Size : 64K
    sh: /root: Permission denied
    ~ # sh: Chunk: not found
    sh: sh:: not found
    ~ # ~ #
    sh: /root: Permission denied
    ~ # ~ #    Device Role : Active device 1
    sh: /root: Permission denied
    ~ # sh: Device: not found
    sh: sh:: not found
    ~ # ~ #    Array State : .AAA ('A' == active, '.' == missing)
    sh: /root: Permission denied
    ~ # sh: syntax error: unexpected "("
    sh: sh:: not found
    ~ # ~ # /dev/sdc3:
    sh: /root: Permission denied
    ~ # sh: /dev/sdc3:: not found
    sh: sh:: not found
    ~ # ~ #           Magic : a92b4efc
    sh: /root: Permission denied
    ~ # sh: Magic: not found
    sh: sh:: not found
    ~ # ~ #         Version : 1.2
    sh: /root: Permission denied
    ~ # sh: Version: not found
    sh: sh:: not found
    ~ # ~ #     Feature Map : 0x0
    sh: /root: Permission denied
    ~ # sh: Feature: not found
    sh: sh:: not found
    ~ # ~ #      Array UUID : 07888a97:
    sh: /root: Permission denied
    ~ # sh: Array: not found
    sh: sh:: not found
    ~ # ~ #
    sh: /root: Permission denied
    ~ # sh: syntax error: unexpected "("
    sh: sh:: not found
    ~ # ~ #   Creation T
    sh: /root: Permission denied
    ~ # sh: Creation: not fo
    sh: sh:: not found
    ~ # ~ #
    sh: /root: Permission denied
    ~ # sh: Raid: not found
    sh: sh:: not found
    ~ # ~ #    Ra
    sh: /root: Permission denied
    ~ # sh: Raid: not found
    sh: sh:: not found
    ~ # ~ #
    sh: /root: Permission denied
    ~ # ~ #
    sh: /root: Permission denied
    ~ # sh: syntax error: unexpecte
    sh: sh:: not found
    ~ # ~ #      Array Size :
    sh: /root: Permission denied
    ~ # sh: syntax error: unexpected "("
    sh: sh:: not found
    ~ # ~ #   Used Dev Size : 3898766976 (1859.08 GiB 1
    sh: /root: Permission denied
    ~ # sh:
    sh: sh:: not found
    ~ # ~ #     Data Offset : 262144
    sh: /root: Permission denied
    ~ # sh: Data: not found
    sh: sh:: not found
    ~ # ~ #    Super Offset : 8 sectors
    sh: /root: Permission denied
    ~ # sh: Super: not found
    sh: sh:: not found
    ~ # ~ #
    sh: /root: Permission denied
    ~ # sh:
    sh: sh:: not found
    ~ # ~ #     Device UUID : 813341e2:bfc0a5e
    sh: /root: Permission denied
    ~ # sh: Device: not foun
    sh: sh:: not found
    ~ # ~ #
    sh: /root: Permission denied
    ~ # ~ #     Update Time : Thu Dec 27 22:09:46 2018
    sh: /root: Permission denied
    ~ # sh: Update: not found
    sh: sh:: not found
    ~ #
    ~ # sh: Checksum: not found
    sh: sh:: not found
    ~ # ~
    sh: /root: Permission denied
    ~ # sh: Events: not found
    sh: sh:: not found
    ~ # ~ #
    sh: /root: Permission denied
    ~ # ~ #          Layo
    sh: /root: Permission denied
    ~ #
    ~ # ~ #      Chunk Size : 64K
    sh: /root: Permission denied
    ~ # sh: Chunk: not found
    sh: sh:: not found
    ~ # ~ #
    sh: /root: Permission denied
    ~ # ~ #    Device Role : Active device 2
    sh: /root: Permission denied
    ~ # sh: De
    sh: sh:: not found
    ~ #
    ~ # sh: syntax error: unexpected "("
    sh: sh:: not found
    ~ # ~ # /dev/sdd3:
    sh: /root: Permission denied
    ~ # sh


    BusyBox v1.19.4 (2017-05-26 16:43:23 CST) built-in shell (ash)
    Enter 'help' for a list of built-in commands.

    ~ # ~ #           Magic : a92b4efc
    sh: /root: Permission denied
    ~ # sh: Magic: n
    sh: sh:: not found
    ~ #
    ~ # sh: Version: not found
    sh: sh:: not found
    ~ # ~ #     Feature Map : 0x0
    sh: /root: Permission denied
    ~ # sh: Feature: not found
    sh: sh:: not found
    ~ # ~ #      Array UUID
    sh: /root: Permission denied
    ~ # sh: Array: not found
    sh: sh:: not found
    ~ # ~ #
    sh: /root: Permission denied
    ~ # sh: syntax error: unexpected "("
    sh: sh:: not found
    ~ # ~ #
    sh: /root: Permission denied
    ~ # sh: Creation: not found
    sh: sh:: not found
    ~ # ~ #
    sh: /root: Permission denied
    ~ # sh: Raid: not
    sh: sh:: not found
    ~ # ~ #    Raid Devices : 4
    sh: /root: Permission denied
    ~ # s
    sh: s: not found
    ~ # ~ #
    sh: /root: Permission denied
    ~ # ~ #  Avail Dev Size : 3898
    sh: /root: Permission denied
    ~ # sh: syntax error: un
    sh: sh:: not found
    ~ # ~ #      Array Size : 584
    sh: /root: Permission denied
    ~ # sh: syntax error: unex
    sh: sh:: not found
    ~ # ~ #   Used Dev Size : 389
    sh: /root: Permission denied
    ~ # sh: syntax error: unex
    sh: sh:: not found
    ~ # ~ #     Data Offset : 262144 sectors
    sh: /root: Permission denied
    ~ # sh: Data: not found
    sh: sh:: not found
    ~ #
    ~ # sh: Super: not found
    sh: sh:: not found
    ~ # ~ #           State : clean
    sh: /root: Permission denied
    ~ # sh: State: not found
    sh: sh:: not found
    ~ # ~ #
    sh: /root: Permission denied
    ~ # sh: Device: not found
    sh: sh:: not found
    ~ # ~ #
    sh: /root: Permission denied
    ~ # ~ #
    sh: /root: Permission denied
    ~ # sh: Update: not found
    sh: sh:: not found
    ~ # ~ #        Checksum : 8c
    sh: /root: Permission denied
    ~ # sh: Checksum: not found
    sh: sh:: not found
    ~ # ~ #          Events : 905
    sh: /root: Permission denied
    ~ # s
    sh: s: not found
    ~ # ~ #
    sh: /root: Permission denied
    ~ # ~ #          La
    sh: /root: Permission denied
    ~ # sh: Layout: not found
    sh: sh:: not found
    ~ # ~
    sh: /root: Permission denied
    ~ # sh: Chunk: not foun
    sh: sh:: not found
    ~ # ~ #
    sh: /root: Permission denied
    ~ # ~ #    Device Role : Active device 3
    sh: /root: Permission denied
    ~ # sh: Device: not foun
    sh: sh:: not found
    ~ # ~ #    Array State : .AAA ('A' =
    sh: /root: Permission denied
    ~ # sh: syntax error: unexpected "("
    sh: sh:: not found
    ~ # ~ # ~ #
    sh: /root: Permission denied
    ~ # sh: /root: Permi
    sh: sh:: not found
    ~ # ~ #
    sh: /root: Permission denied
    ~ #



  • Mijzelf
    Mijzelf Posts: 2,598  Guru Member
    First Anniversary 10 Comments Friend Collector First Answer
    [quote]
    ~ # mdadm --create --assume-clean --level=5  --raid-devices=4 --metadata=1.2 --c
    hunk=64K  --layout=left-symmetric /dev/md2 missing /dev/sdb3 /dev/sdc3 /dev/sdd3
    cat /proc/mdstat
    mdadm: You have listed more devices (5) than are in the array(4)!
    ~ # mdadm --examine /dev/sd[abcd]3
    [/quote]
    Because there is no prompt ( ~ #) between the 'mdadm line' and the 'cat line', I guess you somehow managed to paste them as one command. In which case '/proc/mdstat' is also seen as specified raid member. Hence the error:  "You have listed more devices (5) than are in the array(4)!"

    The command should start with mdadm, and end with /dev/sdd3



  • T3sticle
    T3sticle Posts: 13  Freshman Member
    ok thx i try again

Consumer Product Help Center