> 3. mark the array read-only (mdadm -o) You shouldn't be able to do this. It should only be possible to set an array to read-only when it is not in use. The fact that you cannot suggests something else if wrong.
Should I ? I assumed that mdadm -o could be run with a running & used array, and it seemed true. I never asked myself about -o semantics. But I'll double-check as soon as possible. Anyway, if marking an array -o is only possible when the array is not used, then it completely changes my issue.
Are you able to stop the array (mdadm -S) while the xfs filesystem is still mounte?d?
I guess not. I never managed, and I didn't either in this case. But I'll try.
> > May it be possible to relax the BUG_ON() and be able to send to > upper-layer a more gentle message ? Maybe... but I think I would rather make sure that you cannot set to read-only while mounted. If there some particular reason you were doing this?
Well, I was in a recovery process, I wanted to watch my data and mount the xfs partition without altering the array. My question is then : what prevents the upper layer to open the array read-write, submit a write and make the md code BUG_ON() ?
Thanks, NeilBrown
Thanks for your tips&answers, François. - 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