Hi, and apologies if this has been covered before. I’m desperately in need of some help.
I recently had a disk fail in drive bay 4 of my MyCloudEX4 and upon trying to rebuild it, it failed.
So I purchased a new drive and after following all the steps, the option to rebuild is not there either automatically or manually.
I did read some posts somewhere that this can be resolved by ssh using the mdadm command.
So, I followed an old post here from 2014 which got me this far.
mdadm --detail /dev/md0
Number Major Minor RaidDevice State
0 8 1 0 active sync /dev/sda1
1 8 17 1 active sync /dev/sdb1
2 8 33 2 active sync /dev/sdc1
3 0 0 3 removed
I have no idea how to make the last disk go from removed back into the array and would appreciate if someone would assist me with it please. There is a lot of data on my device and I’m not wanting to lose any of it.
The new disk /dev/sdd needs 4 partitions with GPT and then it needs to add the partitions to the 3 arrays.
I’ll have a look when I find a bit of time… there should be a WD script to do all of it at once.
Luckily you didn’t use that command yet. It would destroy your array.
EDIT:
You have 4 disks, /dev/sda, sdb, sdc, sdd. Mdadm showed that sda, sdb, sdc are currently in use, so disk sdd is the missing member.
The blkid command shows that you have 2 arrays: md0 (swap) and md1 (all your precious data).
The ls (let see) showed that there’s no partition table on /dev/sdd yet.
Please add some extra info your data array.
Looks like it’s gone from bad to worse now. I read somewhere that doing a ‘system’ only reset would fix this issue (so I backed up my settings first). Now the device shows that there is no raid array present at all and
mdadm --detail /dev/md1
shows
mdadm: cannot open /dev/md1: No such file or directory.
I’m really feeling sick now (literally) as I tried restoring the settings to no avail.
mdadm --assemble /dev/md1 --uuid 22bc27b2:ae2a7d6a:cefb821f:c2a62e45
mdadm: error opening /dev/md1: No such file or directory
looks like /dev/md1 doesn’t exist
Command (? for help): p
Disk /dev/sda: 11721045168 sectors, 5.5 TiB
Logical sector size: 512 bytes
Disk identifier (GUID): 7E7357D0-ACD1-4CC5-A666-EC81DEE8179A
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 11721045134
Partitions will be aligned on 2048-sector boundaries
Total free space is 2014 sectors (1007.0 KiB)
Number Start (sector) End (sector) Size Code Name
1 2048 4196351 2.0 GiB 8200 Linux swap
2 6293504 11718946815 5.5 TiB 0700 Microsoft basic data
3 11718946816 11721045134 1.0 GiB 0700 Microsoft basic data
4 4196352 6293503 1024.0 MiB 0700 Microsoft basic data
Still no joy ( I appreciate your persistence by the way (more than you can imagine)). (I’ve also ran out of replies) - mknod /dev/md1 b 9 1 ← do I need to do that?
****** Not sure if you’ll see this but I tried what you posted after this and I get the same - no such folder exists…
mdadm --assemble --run /dev/md/1 --uuid 22bc27b2:ae2a7d6a:cefb821f:c2a62e45 /dev/sda2 /dev/sdb2 /dev/sdc2
I’ll reboot now
You have to keep checking back here for edits - I’ve ran out of replies
Hope you see this - I managed to get the /dev/m1 back… but it doesn’t seem persistent… - ie when I reboot it goes again… I used that mknod cmdlet above to make that /dev/m1 available and the array shows, but I need to make it persistent now.