From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751723AbXDAC5s (ORCPT ); Sat, 31 Mar 2007 22:57:48 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751762AbXDAC5s (ORCPT ); Sat, 31 Mar 2007 22:57:48 -0400 Received: from mx2.suse.de ([195.135.220.15]:59329 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751723AbXDAC5s (ORCPT ); Sat, 31 Mar 2007 22:57:48 -0400 From: Neil Brown To: "Florian D." Date: Sun, 1 Apr 2007 12:57:41 +1000 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17935.8101.815473.709581@notabene.brown> Cc: linux-kernel@vger.kernel.org Subject: Re: cannot add device to partitioned raid6 array In-Reply-To: message from Florian D. on Saturday March 31 References: <460EF263.7020505@gmx.at> X-Mailer: VM 7.19 under Emacs 21.4.1 X-face: [Gw_3E*Gng}4rRrKRYotwlE?.2|**#s9D hi list! > > in short: > I created a partitioned raid6 array with 2 missing drives. Now, I want to add a device. It fails with: > flockmock ~ # mdadm -a /dev/md_d4 /dev/sdb2 > mdadm: add new device failed for /dev/sdb2 as 4: Invalid argument Thanks for the detailed problem report. I think the cause of the error is that /dev/sdb2 is too small. It needs to be at least 490030594 sectors. How big is it? Yes, both the kernel an mdadm should handle this case better. I have made a note to look into this. NeilBrown