Thread (12 messages) 12 messages, 4 authors, 2017-11-10

Re: RAID5 up, but one drive removed, one says spare building, what now?

From: Wols Lists <hidden>
Date: 2017-11-10 23:17:38

On 10/11/17 21:58, Phil Turmel wrote:
quoted
quoted
But don't add any more complete devices to the array -- use a
quoted
quoted
partition that starts at 1MB and covers the rest of the device
(default for most partition tools nowadays).
Where can I read about how to do this properly? I tried googling it
but I'm pretty lost. Or what tool I should use etc.
parted or gdisk or a very modern version of fdisk will let you partition
your new drives.  They will default to a "GPT" disk label and will
generally place the first partition you create in the "right" place -- a
multiple of 4K, typically 1MB.  When you save the new partition table
(aka disk label), the #1 partition will show up in your list of devices.
quoted
quoted
quoted
quoted
I recommend that when/if your array is stable again, you add one
more spare (with partition) and then use mdadm's --replace
operation to move complete-device members to the new member.  When
each is done, take the newly freed device and partition it and do
the next.  When you have no more complete-device members and have
the last freed device partitioned, consider converting to raid6
with that spare.
I think I understand what you mean here, but it sounds like I need to
figure out the top two parts first and that'll take me awhile.
If you take the wiki slowly, you'll hopefully grasp what's going on.

https://raid.wiki.kernel.org/index.php/Linux_Raid#Overview

Especially the bit about setting up a new system or converting an
existing system. Okay, they're not at all about what you're doing, but
if you work your way through and get what's happening there straight in
your head, you'll then be able to apply it to your setup.

Note that they're written from my perspective as a gentoo user, so I
have to do everything from scratch - boot into a live/rescue CD, and
then configure/setup the system from there.

I know it doesn't cover LVM - that is very patchy at the moment - but I
just need to troubleshoot my new machine to get a bios screen, and I'll
be setting that up with LVM and all that should be appearing on the wiki.

(My new system at the moment isn't even POSTing :-( I'm not used to
troubleshooting builds, I've usually been lucky, so I hope everything is
working soon :-)

Cheers,
Wol
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help