From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wols Lists Subject: Re: mdadm stuck at 0% reshape after grow Date: Thu, 7 Dec 2017 20:31:59 +0000 Message-ID: <5A29A53F.9090004@youngman.org.uk> References: <1865221512489329@web5g.yandex.ru> <20171206104905.GA4383@metamorpher.de> <61c9e4bd-1605-5b17-80ce-c738b80b7058@turmel.org> <20171206160346.GA5806@metamorpher.de> <1b43be27-f21a-1fba-f983-01c5356a654d@turmel.org> <20171207135832.GA4858@metamorpher.de> <20171207174048.GA6428@metamorpher.de> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20171207174048.GA6428@metamorpher.de> Sender: linux-raid-owner@vger.kernel.org To: Andreas Klauer Cc: Linux-RAID List-Id: linux-raid.ids On 07/12/17 17:40, Andreas Klauer wrote: > On Thu, Dec 07, 2017 at 02:58:32PM +0100, Andreas Klauer wrote: >> Perhaps it's an intermittent error specific to your smartctl version? > > Looking at the source code, it seems to be a case of: > > sct supported, erc unsupported - exit 4 (fail) That's fine - fail is detected, kernel timeout is set to 180 > sct unsupported as a whole - exit 0 (success) WHOOPS. Setting erc fails, so the command reports success! > > So some drives will give the wrong exit code for this command. > > Should probably be reported as a bug to smartmontools. Sounds about right. Cheers, Wol