All of lore.kernel.org
 help / color / mirror / Atom feed
* Shrinking an array
@ 2017-04-11  0:30 Wakko Warner
  2017-04-11  1:05 ` Adam Goryachev
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Wakko Warner @ 2017-04-11  0:30 UTC (permalink / raw)
  To: linux-raid

I have a question about shrinking an array.  My current array is 4x 2tb
disks in raid6 (md0).  The array was created on the 2nd partition of each
disk and spans most of the disk.  I would like to replace the 2tb disks with
750gb disks.  md0 is a luks container with lvm underneath.  I have less than
1tb actually in use.  What would the recommended procedure be for shrinking
this?  I've watched this list, but I don't think I've come across anyone
actually wanting to do this before.
I'm thinking of these steps already:
1) Shrink PV.
2) Shrink luks.  I'm aware that there is not size metadata, but the dm
mapping would need to be shrunk.
3) Shrink md0.  I did this once when I changed a 6 drive raid6 into a 5
drive raid6.  Would I use --array-size= or --size= ?  I understand the
difference is the size of md0 vs the individual members.

So for number 4, if md0 is now small enough, will it accept a member that is
smaller?  If so, I should beable to add the member to the array and issue
--replace.

Thanks.

-- 
 Microsoft has beaten Volkswagen's world record.  Volkswagen only created 22
 million bugs.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-04-11  6:58 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-11  0:30 Shrinking an array Wakko Warner
2017-04-11  1:05 ` Adam Goryachev
2017-04-11  2:00   ` Wakko Warner
2017-04-11  4:33 ` NeilBrown
2017-04-11  6:58 ` Roman Mamedov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.