Open jsalatiel opened 2 months ago
lvmetad has been deprecated and should not be used. The reason it works in other linux distributions like rhel for example is that lvmetad is not present on newer versions.
The solution for flatcar is add this to /etc/lvm/lvm.conf and restart
global {
use_lvmetad = 0
}
Description
I have noticed a pretty strange behaviour on lvm tools inside flatcar. When running any CSI that uses LVM as backend ( in this case I will show an example using openebs ) in ubuntu, alma, redhat , debian when the CSI creates an LVM to expose a PVC to a pod, lvs and pvs in the host shows that volume just fine. But in flatcar, those new LVM do not show in lvs/pvs in the host neither the used space in the VG is correct. Those information will only be updated in the server is rebooted OR the lvmetad service is restarted.
[ 1 paragraph concisely describing the bug ] That can mislead sysadmins to change the vg size leading to data corruption because the real state of the volumes are outdated. ( It has happened )
Environment and steps to reproduce
vgcreate openebs /dev/sdb
helm install openebs openebs/openebs --set cstor.enabled=false --set nfs-provisioner.enabled=false --set localprovisioner.enabled=false --set zfs-localpv.enabled=false --set lvm-localpv.enabled=true --set ndmOperator.enabled=false --set ndm.enabled=false --namespace kube-system