Red Hat Bugzilla – Bug 1250627
lvcreate --type raid1 -m 1 -l 90%vg -n cache0 vgcache.0 /dev/sda /dev/sdd # takes up all 100%
Last modified: 2017-08-02 02:49:51 EDT
Description of problem:
is this normal? Does -l work?
Only if I specify size with -L 200G I see free PEs in VG.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
Yes, `-l` works: it is specifying the approximate size of the LV created not the total space consumed. In this case 2 90%vg RAID legs are created, and LVM correctly caps that at 100%.
Hmmm, seems it "works" and after all it IS a bug:
> When expressed as a percentage, the number is treated as an
> approximate upper limit for the total number of physical extents to be
> allocated (including extents used by any mirrors, for example).