Originally Posted by Vit77
Mark the faulty disk as BAD: mdadm /dev/md0 --fault /dev/sda1
Data in array should be accessible since that.
To remove the disk from RAID: mdadm /dev/md0 --remove failed
Be sure to use proper device names.
I don't see how that would help.
The faulty disk is no longer in the array. The disk that i'm having problems with is already marked as faulty. I've tried removing it from the array but this gives me an error :
# mdadm /dev/md0 --remove /dev/sda1
mdadm: hot remove failed for /dev/sda1: No such device
even though the device appears in /proc/mdstat and i can see it is definitely there
# cat /proc/mdstat
Personalities : [raid6] [raid5] [raid4]
md0 : inactive hde1 sda1(F) sdb1
unused devices: <none>
mdadm --run /dev/md0 failes as well:
# mdadm --run /dev/md0
[ 593.455078] raid5: device hde1 operational as raid disk 1
[ 593.455143] raid5: device sdb1 operational as raid disk 2
[ 593.455202] raid5: not enough operational devices for md0 (2/4 failed)
[ 593.455261] RAID5 conf printout:
[ 593.455315] --- rd:4 wd:2
[ 593.455370] disk 1, o:1, dev:hde1
[ 593.455425] disk 2, o:1, dev:sdb1
[ 593.455479] raid5: failed to run raid set md0
[ 593.455535] md: pers->run() failed ...
mdadm: failed to run array /dev/md0: Input/output error