linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: John Robinson <john.robinson@anonymous.org.uk>
To: Goswin von Brederlow <goswin-v-b@web.de>
Cc: Thomas Arthur Oehser <tom@toms.net>, linux-raid@vger.kernel.org
Subject: Re: Is shrinking raid5 possible?
Date: Fri, 06 Nov 2009 19:38:04 +0000	[thread overview]
Message-ID: <4AF47B1C.2010100@anonymous.org.uk> (raw)
In-Reply-To: <87ljijqwn1.fsf@frosties.localdomain>

On 06/11/2009 19:30, Goswin von Brederlow wrote:
> Thomas Arthur Oehser <tom@toms.net> writes:
>> On Fri, Nov 06, 2009 at 06:32:15PM +0000, John Robinson wrote:
[...]
>>> Are you sure it hasn't already put a copy of the superblock in the right  
>>> place, within the <smaller> size, as well as leaving a copy at the end  
>>> of the original larger partition?
[...]
>> Far as I can tell, no, because when I then shrink the partition, it can't
>> find the superblock.
> 
> And you would have to shrink it to exactly the right size to the block
> so that the shrunk superblock ends up at the end of the resized
> device. Something most people won't be able to do right.

The thing is, I'm sure I've done it, and while I don't remember the 
details, I don't think I had to either recreate the array nor drop and 
re-add members. You're right though, getting the numbers right is the 
tricky bit, because the filesystem's smaller than the md, which in turn 
may be smaller than the partition, even when everything's "tight".

Cheers,

John.

      reply	other threads:[~2009-11-06 19:38 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-19  2:30 Is shrinking raid5 possible? Paul Davidson
2006-06-19  4:39 ` Neil Brown
2006-06-19  5:07   ` Paul Davidson
2006-06-23  0:49   ` Bill Davidsen
2006-06-23  1:26     ` Neil Brown
2006-06-23  2:17       ` Paul Davidson
2006-06-23  8:34       ` Henrik Holst
2006-06-23 18:16       ` Christian Pernegger
2006-06-26  7:41         ` Neil Brown
2006-06-26 11:33           ` Christian Pernegger
2006-11-22 20:40             ` Henrik Holst
2009-11-06 13:17               ` Thomas Arthur Oehser
2009-11-06 15:04                 ` Asdo
2009-11-06 15:26                   ` Thomas Arthur Oehser
2009-11-06 17:00                     ` Goswin von Brederlow
2009-11-06 18:32                 ` John Robinson
2009-11-06 18:38                   ` Thomas Arthur Oehser
2009-11-06 19:30                     ` Goswin von Brederlow
2009-11-06 19:38                       ` John Robinson [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4AF47B1C.2010100@anonymous.org.uk \
    --to=john.robinson@anonymous.org.uk \
    --cc=goswin-v-b@web.de \
    --cc=linux-raid@vger.kernel.org \
    --cc=tom@toms.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).