linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Phillip Susi <psusi@ubuntu.com>
To: Mikael Abrahamsson <swmike@swm.pp.se>
Cc: Linux RAID <linux-raid@vger.kernel.org>
Subject: Re: Shrinking raid array
Date: Tue, 12 Feb 2013 13:11:36 -0500	[thread overview]
Message-ID: <511A85D8.5070803@ubuntu.com> (raw)
In-Reply-To: <alpine.DEB.2.00.1302121852000.32644@uplift.swm.pp.se>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 2/12/2013 12:53 PM, Mikael Abrahamsson wrote:
> On Tue, 12 Feb 2013, Phillip Susi wrote:
> 
>> I just noticed that reducing the used dev size has not moved the 
>> metadata, so it is looking like it just isn't possible to shrink
>> the md partition with metadata format 1.0?
> 
> From "man mdadm"
> 
> "The different sub-versions store the superblock at different
> locations on the device, either at the end (for 1.0), at the start
> (for 1.1) or 4K from the start (for 1.2)"
> 
> I don't really see how it could be shrunk with a superblock at the
> end, then you wouldn't be able to find it next time...

You move the superblock, then shrink the partition...

But it looks like mdadm doesn't move the superblock even though it no
longer is using the full partition.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (MingW32)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJRGoXXAAoJEJrBOlT6nu75N+YH/R/om3wi5yJ/DidGWJFxd5J2
WuLV0oUqggDZxjM32/usuZwzVCnPnvXDmd9HKavf9Ko8gVnMUsJeVtv6fQDmr4uy
IpPyrHcYa80am3hX5maGt+orJgk4kP4sc2x4Ya/OYBHfiTYn704+bUmP8znrJ5CG
rBzqWaRsdQy4v+ps/7l3VQuyJhDxEoNjz4NDAZC8wWqxoclJVtAE9uxPbdpYRLSV
+SlY76LIoea3YHXYLLu6vXJpQsaDalyVAzuDbEspJQ/fvjUTncCGicBvG/obbGsW
9hrftYoNnhEc7PmRPvbPFW7f6EkpPMbTo/FLhB0r8Fw0AS0AYG12UACH+zO2Rjg=
=hvFb
-----END PGP SIGNATURE-----

  reply	other threads:[~2013-02-12 18:11 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-12 15:52 Shrinking raid array Phillip Susi
2013-02-12 16:39 ` Phillip Susi
2013-02-12 17:53   ` Mikael Abrahamsson
2013-02-12 18:11     ` Phillip Susi [this message]
2013-02-12 18:43       ` Mikael Abrahamsson
2013-02-12 19:13         ` Phillip Susi
2013-02-13  5:12           ` Mikael Abrahamsson
2013-02-13  5:17             ` Mikael Abrahamsson

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=511A85D8.5070803@ubuntu.com \
    --to=psusi@ubuntu.com \
    --cc=linux-raid@vger.kernel.org \
    --cc=swmike@swm.pp.se \
    /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).