linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
From: Heinz Mauelshagen <heinzm@redhat.com>
To: LVM general discussion and development <linux-lvm@redhat.com>,
	lejeczek <peljasz@yahoo.co.uk>
Subject: Re: [linux-lvm] extend raid5 - how if possible?
Date: Mon, 17 Aug 2020 13:29:35 +0200	[thread overview]
Message-ID: <eff09b4d-89c1-b8c9-5ea7-0a47af5f5d6e@redhat.com> (raw)
In-Reply-To: <d077323c-fd76-8ebf-ea2d-db8ba7b876b0@yahoo.co.uk>

[-- Attachment #1: Type: text/plain, Size: 1402 bytes --]

On 8/15/20 10:57 AM, lejeczek wrote:
> Hi guys
>
> In hope that experts roam this list I want to ask if it is
> possible to extend raid5.
> If I wanted to be specific, raid created this way:
>
> $ lvcreate -n raid5.1 -l 100%pv --stripes 5 --stripe-size 8
> ST2000_front.0 /dev/sdj /dev/sdk /dev/sdn /dev/sdo /dev/sdp
> /dev/sdq
>
> You can see I try to be specific about hard disks here. I
> hope that later I can add more of exact same hard disk to
> the system and extend such raid5.


As you consumed all capacity on those disks, you either got the option 
to extend using lvextend (though you don't need the same disk sizes but 
you'd need 6 more disks to be able to extend all the given raid5 stripes 
using lvextend)  -or-  you can lvconvert adding stripes to your given 
raid5 which will also grow the RaidLV size by the added stripe 
capacities.   In that later case of adding stripes, you'd have to deploy 
N additional disks (N = number of stripes to add) of the same or larger 
size than the ones you got.

Mind, you could also convert to e.g. raid6 in case your resilience 
requirements change which'll require another disk to store parity blocks.

Heinz

>
> many thanks, L.
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/


[-- Attachment #2: Type: text/html, Size: 2357 bytes --]

  reply	other threads:[~2020-08-17 11:29 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <d077323c-fd76-8ebf-ea2d-db8ba7b876b0.ref@yahoo.co.uk>
2020-08-15  8:57 ` [linux-lvm] extend raid5 - how if possible? lejeczek
2020-08-17 11:29   ` Heinz Mauelshagen [this message]
2020-08-18 14:02     ` Christopher Jacoby

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=eff09b4d-89c1-b8c9-5ea7-0a47af5f5d6e@redhat.com \
    --to=heinzm@redhat.com \
    --cc=linux-lvm@redhat.com \
    --cc=peljasz@yahoo.co.uk \
    /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).