31.01.2017 06:33, george from the tribe пишет: ...
Note how if I look at the mdstat file, it shows it is active. So I try to fail the drive, but it won't let me. Then I stop the raid drive and remove it, and it shows it is no longer there. Seems like it should work.
facofficeeng02:/home/george # cat /proc/mdstat Personalities : [raid1] md0 : active raid1 sdb5[0] 30703616 blocks super 1.2 [2/1] [U_]
md1 : active raid1 sdb7[0] 736050176 blocks super 1.2 [2/1] [U_] bitmap: 6/6 pages [24KB], 65536KB chunk
unused devices: <none> facofficeeng02:/home/george # cat /etc/mdadm.conf ARRAY /dev/md/facofficeeng02:1 UUID=a8872a97:eecd6828:f759773c:cb18678e facofficeeng02:/home/george # cat /proc/mdstat Personalities : [raid1] md0 : active raid1 sdb5[0] 30703616 blocks super 1.2 [2/1] [U_]
md1 : active raid1 sdb7[0] 736050176 blocks super 1.2 [2/1] [U_] bitmap: 6/6 pages [24KB], 65536KB chunk
unused devices: <none> facofficeeng02:/home/george # mdadm --fail /dev/md0 /dev/sdb5 mdadm: set device faulty failed for /dev/sdb5: Device or resource busy facofficeeng02:/home/george # mdadm --stop /dev/md0 mdadm: stopped /dev/md0 facofficeeng02:/home/george # mdadm --remove /dev/md0
This does nor remove anything so it comes back after next disk rescan. Use "mdadm --zero-superblock" or "wipefs" to remove Linux MD signatures from this partition. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org