Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

Could you ensure me that minimal LVM2 size Unit is one extent to which all sizes are rounded up ?

Is 4MiB the default size of extent for LVM2 ? Can it be configurable or is it the only size ?

Small experiment of try of creating 2B logical volume:

# lvcreate -L 2 r2Ta -n test2b
  Rounding up size to full physical extent 4.00 MiB                                                                                                                     
  Logical volume "test2b" created
# lvdisplay /dev/mapper/r2Ta-test2b  | grep 'LV Size'                                                                                           
  LV Size                4.00 MiB 
share|improve this question

1 Answer 1

up vote 3 down vote accepted

Yes, the minimum size is one physical extent. You can specify the PE size when you create the volume group with the -s switch to vgcreate.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.