On 07/03/2020 21:10, Chris Green wrote:
I have an old WD NAS that I'm trying to resurrect.
It's actually mostly working and I can see the web configuration GUI and login to it with ssh. However its RAID setup has got broken somehow.
It was configured to use its two 1Tb disk drives in SBOD mode to give what is supposed to look like one 2Tb disk. However something has gone wrong and it would appear that only one of the two disk drives is configured on the RAID array.
It's not possible to unRAID it (I hate RAID) so one can't just configure it to have two disks. The web configuration GUI just shows that both drives are OK/good but that the second drive isn't joining the RAID configuration properly.
If it's a Raid device you've brought, then you may be limited to the tools that the supplier provided with it. Worst case is that you have to somehow recover the info off the disk, format it, re-add it to the array then restore the data.
So how is software RAID usually configured and started up? I can't find anything that looks as if it's "start up the RAID software" in any of the init files in /etc. So how's it done?
It depends. You can have software raid, hardware raid or "fake hardware raid". Software Raid is controlled by a utility called mdadm and a config file /etc/mdadm/mdadm.conf. It is usual to control it with mdadm commands rather than messing with the config file.
It may be possible to take the drives out of the wd device, use mdadm to mount one or both of the drives, rescue the data, then format the bad disk and shove it back into the WD device. There are LOTS of websites on mdadm, e.g. https://raid.wiki.kernel.org/index.php/Linux_Raid
Hardware Raid. You're limited to whatever the manufacture has given you.
Fake hardware raid. The hardware implements some or all of mdam using "hardware", possibly by putting mdadm into ROM. In effect, it's using mdadm. If it's fake hardware raid, you may be able to recover things with mdadm.
Good luck.
However, if you "hate raid", then perhaps don't use it? You could use Linux Logical Volumes. You can add disks to create a large "pseudo-disk" https://en.wikipedia.org/wiki/Logical_Volume_Manager_%28Linux%29
Alternatively, try BTRFS one of the new file systems. You can add multiple disks as one partition and it has a bunch of cool features. However, last time I looked it didn't have a full-set of disk recovery tools (fsck etc) for my liking. https://en.wikipedia.org/wiki/Btrfs
Steve