[linux-lvm] Addendum: [was different stripesize on thinpool/thinlv]

Oliver Rath rath at mglug.de
Wed May 3 13:04:59 UTC 2017


Hi List,

If I set in lvm.conf
----------------------------
metadata {
        stripesize = 1024
}
----------------------------
it results in correct stripesize:
----------------------------
# lvcreate --name fixi3 -V 10G -T levg/mythinpool
  Using default stripesize 1,00 MiB.
  WARNING: Sum of all thin volume sizes (7,67 TiB) exceeds the size of
thin pools and the size of whole volume group (901,17 GiB)!
  For thin pool auto extension activation/thin_pool_autoextend_threshold
should be below 100.
  Logical volume "fixi3" created.
----------------------------
BUT
----------------------------
# lvcreate --stripesize 1024 --name fixi4 -V 10G -T levg/mythinpool
  Command does not accept option: --stripesize 1024.
----------------------------
So setting stripesize in lvm.conf is allowed, in lvcreate
(thinpool-mode) not.

What is the right one?

Tfh!
Oliver


Am 03.05.2017 um 14:40 schrieb Oliver Rath:
> Hi List,
> 
> using different stripesize for Thinpools result 64kb stripesize for ThinLVs.
> 
> ---------- snip ------------------
> 
> root at w541:/home/oliver# lvcreate  -L 20G --thin-pool levg/mythinpool
> levg /dev/sda4 --stripes 1 --stripesize 1024
>   WARNING: Sum of all thin volume sizes (7,64 TiB) exceeds the size of
> thin pools and the size of whole volume group (901,17 GiB)!
>   For thin pool auto extension activation/thin_pool_autoextend_threshold
> should be below 100.
>   Logical volume "mythinpool" created.
> root at w541:/home/oliver# lvcreate --name fixi -V 10G -T levg/mythinpool
>   Using default stripesize 64,00 KiB.
>   Logical volume "fixi" created.
> 
> ---------- snap ------------------
> 
> Odd thing:
> 
> The striping-Options should prepare multiple disk in parallel for the
> thinpool. But then the ThinLV says "using 64kb stripe", although 1024MB
> is set for thinpool.
> 
> 
> My used versions:
> 
> root at w541:/home/oliver# lvcreate --version
>   LVM version:     2.02.171(2)-git (2017-04-13)
>   Library version: 1.02.140-git (2017-04-13)
>   Driver version:  4.35.0
>   Configuration:   ./configure --enable-lvmetad
> root at w541:/home/oliver# thin_check --version
> 0.7.0-rc6
> 
> 
> Whats wrong here?
> 
> Tfh!
> 
> Regards,
> Oliver
> 
> _______________________________________________
> linux-lvm mailing list
> linux-lvm at redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
> 




More information about the linux-lvm mailing list