From: Goswin von Brederlow Subject: Re: Is shrinking raid5 possible? Date: Fri, 06 Nov 2009 18:00:33 +0100 Message-ID: <87pr7v611q.fsf@frosties.localdomain> References: <44960C45.9050407@anu.edu.au> <17558.10906.59066.196870@cse.unsw.edu.au> <449B3A80.4070602@tmr.com> <17563.17224.85968.572754@cse.unsw.edu.au> <17567.36792.303403.35943@cse.unsw.edu.au> <4564B5C3.9050501@idgmail.se> <20091106131740.GA30506@Toms.NET> <4AF43B14.60804@shiftmail.org> <20091106152623.GA13412@Toms.NET> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: In-Reply-To: <20091106152623.GA13412@Toms.NET> (Thomas Arthur Oehser's message of "Fri, 6 Nov 2009 10:26:23 -0500") Sender: linux-raid-owner@vger.kernel.org To: Thomas Arthur Oehser Cc: Asdo , linux-raid List-Id: linux-raid.ids Thomas Arthur Oehser writes: >> Putting swap in a raid-0 will hang your computer as soon as sda, sdb or >> sdc fails. >> Are you OK with that? > > I'll move the swap to the partitions then, though it is a moot point as > the machine has 4G physical RAM and runs with a load such that usually > about 2G is cache... I assume that if it never swaps, it never matters. Make it 2GB raid1 for swap then. > But what I care about is the raid-5 shrinking issue... does anyone know > if there is a reasonably safe way to shrink a raid-5 device (size, not > number of drives) that is superblock format 0.90? I assume the --grow > just forces the superblock based on the _device_, but if I shrank the > _device_ before I shrank the raid, it wouldn't find the superblock in > the first place... > > -Tom - shrink the raid - fail+remove sda3 - make sda3 smaller - add sda3 and resync - repeat for sdb and sdc You should have used LVM on your raid5. Makes suck things so much simpler. MfG Goswin