From: Marian Csontos <mcsontos@redhat.com>
To: LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] Thin provisioned LV + raid5?
Date: Mon, 27 Jan 2014 09:51:20 +0100 [thread overview]
Message-ID: <52E61E08.9010805@redhat.com> (raw)
In-Reply-To: <CAFZxf=L8_MOCBx+E6GUg_gCJ=284M2wONeASHEDXWY0io4oXjQ@mail.gmail.com>
On 01/25/2014 10:26 PM, Vasil Valchev wrote:
> Hello,
>
> I want to create a thin pool that will be used for storing virtual machines
> (inside separate thin volumes).
> The thing is I can't find if that thin pool can be at the same time --type
> raid5 (or similar) at the same time?
>
> Would something like this be possible:
>
> lvcreate -T virtvg/virtpool -L 500G --type raid5
>
> Or maybe the whole approach is wrong?
> What I want to do in the end is a thin pool/volumes that are replicated in
> some way - ideally raid5, if not - mirrored.
>
> Is this implemented and supported in LVM, or is hardware raid recommended
> to handle the redundancy in thin provisioned storage?
Hi Vasil, you have to first create the RAID5 volume first and then
convert to pool using lvconvert.
Also if you want redundancy for data, you will likely want redundancy
for metadata as well. RAID1 is recommended.
lvcreate -n meta --type raid1 -m 1 -L 256M virtvg
# ^ adjust number of legs (-m N)
# ^ you may want to adjust size of metadata volume, depends if you plan
to further grow your pool in close future as metadata resize is still
not fully working, but will soon. If my math is correct 256M should be
enough for up to 2TB - see --poolmetadatasize.
lvcreate -n virtpool --type raid5 -i 3 -L 500G virtvg
# ^ adjust number of stripes (-i N)
lvconvert --thinpool vg/virtpool -c 64k --poolmetadata meta
# ^ adjust chunksize - if you want snapshots use smaller chunks, if you
want to use only thin-provisioning use larger chunks. if both you have
to compromise. Too small chunks may affect performance if you have many
VMs issueing many concurrent writes.
-- Marian
>
>
> Regards,
> Vasil
>
>
>
> _______________________________________________
> 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/
>
prev parent reply other threads:[~2014-01-27 8:51 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-25 21:26 [linux-lvm] Thin provisioned LV + raid5? Vasil Valchev
2014-01-27 8:51 ` Marian Csontos [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=52E61E08.9010805@redhat.com \
--to=mcsontos@redhat.com \
--cc=linux-lvm@redhat.com \
/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).