On Sunday July 17, dstrang@xxxxxxxxxxxxxx wrote: > Neil - > > -(root@abyss)-(/)- # mdadm --manage -add /dev/md0 /dev/sdaa > mdadm: hot add failed for /dev/sdaa: Invalid argument > -(root@abyss)-(/)- # mdadm --version > mdadm - v2.0-devel-2 - DEVELOPMENT VERSION NOT FOR REGULAR USE - 7 July 2005 > -(root@abyss)-(/)- # > > Jul 17 19:13:57 abyss kernel: md0: HOT_ADD may only be used with version-0 > superblocks. > > I'm using the devel-2 version, with the patch you posted previously. That's really odd, because the only time mdadm-2 uses HOT_ADD_DISK is inside an if (array.major_version == 0) statement. Are you any good with 'gdb'? Could you try running mdadm under gdb, put a break point at 'Manage_subdevs', then step through from there and see what happens? Print the value of 'array' after the GET_ARRAY_INFO ioctl, and then keep stepping through until the error occurs.. NeilBrown - 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