Gluster brick configuration
I simply used a physical device as my brick for Gluster. Create a LVM layer. Redhat advises to align the I/O at the LVM using –dataalignment option. Way to calculate alignment_value is by multiplying the raid stripe unit size with the number of data disks. So for example on a 12 disk raid 6 configuration you will end up with 10 data disks. So if stripe unit size is 128 KiB you should create your physical volume
# pvcreate --dataalignment 1280k disk |
To view previously configured volume setting
# pvs -o +pe_start /dev/vda2 PV VG Fmt Attr PSize PFree 1st PE /dev/vda2 vg_system lvm2 a-- 34.50g 180.00m 1.00m |
After having physical volume now we can create volume group. For hardware raid, in order to get logical volumes (which will be on volume group) aligned with underlaying raid geometry we should use –physicalextentsize option
# vgcreate --physicalextentsize 1280k VOLGROUP physical_volume |