Hello Martin On Thu, Jul 25, 2013 at 10:23 PM, Francis Moreau <francis.moro@xxxxxxxxx> wrote: > On Thu, Jul 25, 2013 at 9:06 PM, Martin Wilck <mwilck@xxxxxxxx> wrote: >> On 07/25/2013 08:58 PM, Martin Wilck wrote: >> >>> Thinking about it - you did some coding of your own to start mdmon in >>> the initrd, right? Do you also make sure that mdadm -Ss is called after >>> umounting the file systems, but before shutdown? If not, an inconsistent >>> state might result. >> >> I forgot - mdadm -Ss needs to be run after unmounting file systems, >> killing logical volumes, etc, but before killing mdmon. >> >> This can be bit tricky. >> However if your distro supports md with IMSM, the code should be in place. > > I need to check how systemd shutdown the service related to DM devices. > This part is still not cleared to me, I need to investigate to understand how the system stops MD device. In the meantime I applied your patch and now I can see this from mdadm's output: # ./mdadm -E /dev/sda mdmon: load_ddf_header: header mismatch mdmon: load_ddf_header: header mismatch mdmon: load_ddf_header: header mismatch mdmon: Failed to load secondary DDF header on /dev/sda .... Thanks -- Francis -- 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