From mboxrd@z Thu Jan 1 00:00:00 1970 From: Martin Wilck Subject: Re: MD array keeps resyncing after rebooting Date: Thu, 25 Jul 2013 21:06:14 +0200 Message-ID: <51F17726.8020603@arcor.de> References: <51EED0DA.3020901@arcor.de> <51EED102.4020503@arcor.de> <51EEF3D3.7020305@arcor.de> <51F1754B.5000905@arcor.de> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <51F1754B.5000905@arcor.de> Sender: linux-raid-owner@vger.kernel.org To: Francis Moreau Cc: linux-raid@vger.kernel.org List-Id: linux-raid.ids 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. Martin