Pb Cluster LVM Err internal cluster locking initialisation failed

# pvs
connect() failed on local socket: Aucun fichier ou dossier de ce type
Internal cluster locking initialisation failed.
WARNING: Falling back to local file-based locking.
Volume Groups with the clustered attribute will be inaccessible.
PV VG Fmt Attr PSize PFree
/dev/mapper/mpatha1 vg_data lvm2 a-- 508,00m 84,00m
/dev/sda2 centos lvm2 a-- 7,51g 40,00m

ps -ef |egrep "lvm|dlm"

⇒ Aucune ligne trouvée

Solution

Le pb est liée au Cluster à la gestion des locks

Si pas de cluster :

/etc/lvm/lvm.conf

#locking_type = 3 locking_type = 1

Si cluster (exemple)

pcs cluster unstandby
root 6019 1 0 15:19 ? 00:00:00 dlm_controld -s 0 root 6030 1642 0 15:19 ? 00:00:00 /bin/bash /usr/lib/ocf/resource.d/heartbeat/clvm start root 6139 6030 0 15:19 ? 00:00:00 /bin/bash /usr/lib/ocf/resource.d/heartbeat/clvm start root 6140 6139 0 15:19 ? 00:00:00 /usr/sbin/clvmd -T90 -d0 root 6141 6140 0 15:19 ? 00:00:00 /usr/sbin/clvmd -T90 -d0 root 6142 2 0 15:19 ? 00:00:00 [dlm_scand] root 6144 2 0 15:19 ? 00:00:00 [dlm_recv] root 6145 2 0 15:19 ? 00:00:00 [dlm_send] root 6146 2 0 15:19 ? 00:00:00 [dlm_recoverd] root 6148 3057 0 15:19 pts/1 00:00:00 grep -E --color=auto lvm|dlm