Motr Known Issues - Seagate/cortx-motr GitHub Wiki
BESEG size not set based on LVM that are created for VM's
Currently for VM motr meta-data(BESEG) size is fixed to the value of MOTR_M0D_IOS_BESEG_SIZE.
- Solution : For long duration testing it is recommended to use larger value for the MOTR_M0D_IOS_BESEG_SIZE
- Execute below command to find MOTR_M0D_IOS_BESEG_SIZE
grep MOTR_M0D_IOS_BESEG_SIZE /etc/sysconfig/motr
- Execute below command to find lvm sizes
for i in $(lvs -o lv_path | grep srvnode | grep raw) ; do echo "lvm size of $i = $(lvs $i -o LV_SIZE --noheadings --units b --nosuffix)" ; done
- Set minimum lvm size derived from the above command for MOTR_M0D_IOS_BESEG_SIZE in /etc/sysconfig/motr
sed -i "/MOTR_M0D_IOS_BESEG_SIZE/s/.*/MOTR_M0D_IOS_BESEG_SIZE={min_lvm_size}/" /etc/sysconfig/motr
- shutdown and bootstrap cluster with mkfs after doing this changes
hctl shutdown; hctl bootstrap --mkfs /var/lib/hare/cluster.yaml
example:
$ grep MOTR_M0D_IOS_BESEG_SIZE /etc/sysconfig/motr
#MOTR_M0D_IOS_BESEG_SIZE=4294967296
$ for i in $(lvs -o lv_path | grep srvnode | grep raw) ; do echo "lvm size of $i = $(lvs $i -o LV_SIZE --noheadings --units b --nosuffix)" ; done
lvm size of /dev/vg_srvnode-1_md1/lv_raw_md1 = 26306674688
$ sed -i "/MOTR_M0D_IOS_BESEG_SIZE/s/.*/MOTR_M0D_IOS_BESEG_SIZE=26306674688/" /etc/sysconfig/motr
$ grep MOTR_M0D_IOS_BESEG_SIZE /etc/sysconfig/motr
MOTR_M0D_IOS_BESEG_SIZE=26306674688
$ hctl shutdown; hctl bootstrap --mkfs /var/lib/hare/cluster.yaml