On Tue, Apr 19, 2005 at 01:00:11PM +0200, bernd@xxxxxx wrote:First you have to look if there are partitions on that disk to which no data was written since the disk failed (this typically concerns the swap partition). These partitions have to be marked faulty by hand using mdadm -f before you can remove them with mdadm -r.
Ok, but how do you automate/simplify that?
EVMS? Or some other enterprise volume manager
You're talking about specific configs - not all sysadmins will want to do this.
A script with a while loop and some grep,sed commands? A grep on what exactly? (this kind of precise information seems to be written nowhere in the manpage of the HOWTOs)
And those who do can type:
fdisk -l /dev/sda | grep -i fd | cut -f1 -d' ' | xargs -n1 mdadm -r
Wouldn't it be much simpler if it could be possible to do something like the following? # mdadm --remove-disk /dev/sda So this command could mark as faulty and remove of the array any implied partition(s) of the disk to be removed.
see above 1 liner...
David
- To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html