Im trying to fill my vg, and vgdisplay/vgs says that I have 1.87 GB free, but when I do an lvcreate vg -L1.87G it says “insufficient free extends”. Whats going on?
The 1.87 GB figure is rounded to 2 decimal places, so it’s probably 1.866 GB or something. This is a human-readable output to give you a general idea of how big the VG is. If you want to specify an exact size, you must use extents instead of some multiple of bytes. In the case of vgdisplay, use the Free PE count instead of the human readable capacity. Free PE / Size 478 / 1.87 GB ^^^ So, this would indicate that you should do run # lvcreate vg -l478 Note that instead of an upper-case ‘L’, we used a lower-case ‘l’ to tell lvm to use extents instead of bytes. In the case of vgs, you need to instruct it to tell you how many extents are available: # vgs -o +vg_free_count,vg_extent_count This tell vgs to add the free extents and the total number of extents to the end of the vgs listing. Use the free extent number the same way you would in the above vgdisplay case.