From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1RR7Cg-0003tU-Dg for garchives@archives.gentoo.org; Thu, 17 Nov 2011 19:00:54 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 472BD21C0FF; Thu, 17 Nov 2011 19:00:36 +0000 (UTC) Received: from mail-fx0-f53.google.com (mail-fx0-f53.google.com [209.85.161.53]) by pigeon.gentoo.org (Postfix) with ESMTP id 8D5C021C056 for ; Thu, 17 Nov 2011 18:59:07 +0000 (UTC) Received: by faan15 with SMTP id n15so4021367faa.40 for ; Thu, 17 Nov 2011 10:59:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=0ilziJ5iyKcwKBq82YTtuUYEZu2ba2aSJxMkbdZculU=; b=A4RFmZabHWMLObzaq+CjnRGtqH1sGQxGew0FgqWPvNsEXavZPb6HVPD5zymWtQyErE pkTQzxF1r47aOrgLHw/4RpxuHaaTQsp2W5ed4EukDHcp9qhwt1HylzC355hohqfuMdV/ f9IHNFuJspHc4xkLqkmpQGkcACJ2p4nkEmVGs= Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Received: by 10.182.92.97 with SMTP id cl1mr9353252obb.21.1321556346459; Thu, 17 Nov 2011 10:59:06 -0800 (PST) Received: by 10.182.149.33 with HTTP; Thu, 17 Nov 2011 10:59:06 -0800 (PST) In-Reply-To: References: <20111117172550.2a04a59f@zaphod.digimed.co.uk> Date: Thu, 17 Nov 2011 10:59:06 -0800 Message-ID: Subject: Re: [gentoo-user] Process to resize ext3 file system at the command line? From: Mark Knecht To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset=UTF-8 X-Archives-Salt: dc6fa0b5-9587-4a76-b10e-7a4d547a3ac5 X-Archives-Hash: 4d2cd0da6d25c907619bfe5a9bc1256b On Thu, Nov 17, 2011 at 10:43 AM, Michael Mol wrote: > On Thu, Nov 17, 2011 at 1:29 PM, Mark Knecht wrote: >> At this point I was told: >> >> "Now, resize your filesystem to use the additional space." >> >> So, if at this point the end-block of sda6 isn't 976768064 but, let's >> say, 700000000 because mdadm set it to something new, then using your >> suggestion I guess I'd set it back to 976768064? I'm not comfortable >> however that if I do that that whatever is out there beyond 700000000 >> is really formatted as ext3 and 'empty' as I don't know what the mdadm >> conversion has done to it. > > Your resize would be applied not to /dev/sd?, but to /dev/md?. You > don't need to worry about what that means on /dev/sd*; the filesystem > you want to poke is on /dev/md*. > > file -s /dev/sd* /dev/md* > > -- > :wq Yes, resize would be done to /dev/md?. I agree. However I don't believe that I'd use Neil's suggestion of fdisk block numbers on /dev/md, right? That doesn't make sense to me and I don't beleieve Neil was suggesting anything like that. I'm thinking that possibly the mdadm way to change the _size_ of a RAID is to once again use the grow option: -G, --grow Change the size or shape of an active array. I've not yet found any instructions that I trust to do it though, and being that the instructions above came from, among others, Neil Brown who manages mdadm I'm hesitant to go in my own direction. I'm just looking before I leap. And fortunately, if I decided to just blow away all three disks and start from scratch I have very little at risk that way, and very little risk as I will do backups of the RAID-1 onto an external USB drive before I start this process anyway. - Mark