linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] Thin provisioned LV + raid5?
@ 2014-01-25 21:26 Vasil Valchev
  2014-01-27  8:51 ` Marian Csontos
  0 siblings, 1 reply; 2+ messages in thread
From: Vasil Valchev @ 2014-01-25 21:26 UTC (permalink / raw)
  To: linux-lvm

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

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?


Regards,
Vasil

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

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

* Re: [linux-lvm] Thin provisioned LV + raid5?
  2014-01-25 21:26 [linux-lvm] Thin provisioned LV + raid5? Vasil Valchev
@ 2014-01-27  8:51 ` Marian Csontos
  0 siblings, 0 replies; 2+ messages in thread
From: Marian Csontos @ 2014-01-27  8:51 UTC (permalink / raw)
  To: LVM general discussion and development

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/
>

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

end of thread, other threads:[~2014-01-27  8:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-25 21:26 [linux-lvm] Thin provisioned LV + raid5? Vasil Valchev
2014-01-27  8:51 ` Marian Csontos

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).