Hello Neil, There are some situations when metadata is changed or wiped out in the attempts to recover a broken raid, or the order of partitions is lost. I'm thinking: it might be handy to have an extra file /var/log/mdadm_last_assembled_state.log serving two purposes: 1. mdadm can use it in attempts to reassemble if array broke (non-hardware failure) 2. administrators in despair can post them here when they stuck with a broken raid: this way it will be easier to help them without asking to provide more details The idea is to have txt or xml format file. We need a specific format to allow mdadm to use the information from the file for self-healing. The file should contain historical data: previous successful states, that's why I suggest to treat is as a log file. However, every chunk of data should be clearly separate, thus mdadm can use the latest one for self-healing. in case of successful assemble of raid(s), mdadm write something like: <start stage# XX date= .....> .. .. everything that needs to recover raid: disk order, chunk data, versions on metadata, type of the raid.. using this command for example: .. output of the /proc/mdstat output of /proc/partitions output of fdisk -l output of df -h .. .. .. /etc/mdadm.conf is well known location, anaconda is writing into it, sometimes it's not populated correctly.. So that new log file would serve as a secret stash in case of soft disaster when data is still there, but raid failed to assemble. Historical data written in chunks - stages with the number (Stage# XX) will allow someone to try to assemble defferent previous stages in case the last one somehow wrong.. Also metadata can be backed up there and restored from there.. I understand that it's easy to give an advise than to write code, however it can save some of your time as well :) PS I'm impressed with your level of support! -- With Kind Regards, Ivan Fedorets ITIL v3F, MCSE, MCSA cell phone: 613 513 6594 e-mail: ivan.fedorets@xxxxxxxxx linkedin profile: http://ca.linkedin.com/in/ivanfedorets -- 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