Issue with Raid (/dev/md1) not started
This is the status of the raid (/dev/md1)
Code:
/dev/md1: Code:
Personalities : [raid1] [raid10] [linear] [raid0] [raid6] [raid5] [raid4] 1) sda2 = State (Clean) / Events 2141670 2) sdb2 = State (Clean) / Events 2141670 3) sdc2 = State (Clean) / Events 2141670 4) sdd2 = State (Clean) / Events 2141506 I saw a post online to try to force assembly the raid /dev/md1. Question is based on the info above, is it safe to do so? The command suggested was 'mdadm --assemble --force /dev/md1 /dev/sd[a-d]2' |
It looks to me like you need to run
mdadm /dev/md1 --add /dev/sdb2 Since sdb2 is listed as spare, and you can't start raid5 with only 2 devices. |
I tried the suggested command above and this is what am getting
Code:
root@IomegaNAS:/# mdadm /dev/md1 --add /dev/sdb2 Code:
root@IomegaNAS:/# mdadm -E /dev/sdb2 |
I missed the sdd device - what do you get when you try hot-adding /dev/sdd2?
$ sudo mdadm /dev/md1 --add /dev/sdd2 also what is output from $ cat /proc/mdstat |
Please use code-tags to preserve formatting when posting output of commands, this improves the readability of your posts significantly. I fixed that in your previous posts already. If you need more information on code-tags have a look at the link in my signature.
|
Here are the outputs
Code:
root@IomegaNAS:/# mdadm /dev/md1 --add /dev/sdd2 |
Hmm. The device busy thing for sdb2 is odd. Can you make sure it is not mounted already.
For sdd2 - does it exist (is it a partition of appropriate size, with the right filesystem type code? |
Sorry am fairly new when it comes to Linux. Do you mind providing the command I can run to get you the answer you're asking
Thanks |
So for sdb2)
$ sudo mount will list all the mounted partitions and their devices, check if sdb2 is mounted somewhere. It being busy is suspicious to me. For sdd2, send the output of Code:
$ sudo fdisk -l /dev/sdd |
sorry dimonic for the late reply. see below output
Code:
root@IomegaNAS:/# mount Code:
|
What does
Code:
# mdadm -E /dev/sdb2 You should probably have a filesystem type code of fd (raid autodetect) rather than 82 (linux filesystem). fdisk will let you change the type-code of partitions. |
You should be able to get your array working as follows:
Code:
# mdadm /dev/md1 -f /dev/sdb2 |
here is the output for mdadm -E /dev/sdb2 and mdadm -E /dev/sdd2
Code:
|
tried the last command you suggest but no luck
Code:
|
Passing strange. Sorry I have not been able to help with this.
|
All times are GMT -5. The time now is 02:59 AM. |