From domenico.pastore at par-tec.it Tue Oct 15 12:44:44 2019 From: domenico.pastore at par-tec.it (Domenico Pastore) Date: Tue, 15 Oct 2019 12:44:44 +0000 Subject: [Linux-cluster] clvmd deactive all LVM when an node reboot Message-ID: <23e11e30-69cd-7dc1-a865-40a35796432d@par-tec.it> Hi, I have configure an pacemaker cluster with corosync. The cluster in compose by 4 node now. I have an problem with CLVMD, when a node leaves the cluster, all services are correctly relocated to other cluster nodes. But when the node re-joins the cluster, all services on all nodes get restarted. All resources "LVM-Activeted" pass to status "stopped" and all logical volumes results deactivates. I have 3 VG with 40 LV about, I not want that the node deactivating all logical volumes when re-joins. I have find this solution but not work: https://access.redhat.com/solutions/1498473 This is cluster configuration: Resources: ?Clone: dlm-clone ? Meta Attrs: interleave=true on-fail=fence ordered=true ? Resource: dlm (class=ocf provider=pacemaker type=controld) ?? Operations: monitor interval=10 start-delay=0 timeout=20 (dlm-monitor-interval-10) ?????????????? start interval=0s timeout=90 (dlm-start-interval-0s) ?????????????? stop interval=0s timeout=100 (dlm-stop-interval-0s) ?Clone: clvmd-clone ? Meta Attrs: interleave=true on-fail=fence ordered=true ? Resource: clvmd (class=ocf provider=heartbeat type=clvm) ?? Attributes: daemon_options="-d2 -C" ?? Operations: monitor interval=30s timeout=90s (clvmd-monitor-interval-30s) ?????????????? start interval=0s timeout=90s (clvmd-start-interval-0s) ?????????????? stop interval=0s timeout=90s (clvmd-stop-interval-0s) ?Group: SERVICE-dovecot_test-GROUP ? Meta Attrs: migration-threshold=1 failure-timeout=30 ? Resource: RESOURCE-ip-192.160.10.100_24 (class=ocf provider=heartbeat type=IPaddr2) ?? Attributes: cidr_netmask=24 ip=192.160.10.100 ?? Operations: monitor interval=20 (RESOURCE-ip-192.160.10.100_24-monitor-interval-20) ?????????????? start interval=0s timeout=20s (RESOURCE-ip-192.160.10.100_24-start-interval-0s) ?????????????? stop interval=0s timeout=20s (RESOURCE-ip-192.160.10.100_24-stop-interval-0s) ? Resource: RESOURCE-lvm-lv_mailbox_test (class=ocf provider=heartbeat type=LVM-activate) ?? Attributes: activation_mode=exclusive lvname=lv_mailbox_test vg_access_mode=clvmd vgname=vg_mailbox ?? Operations: monitor interval=3600 (RESOURCE-lvm-lv_mailbox_test-monitor-interval-3600) ?????????????? start interval=0s timeout=90s (RESOURCE-lvm-lv_mailbox_test-start-interval-0s) ?????????????? stop interval=0s timeout=90s (RESOURCE-lvm-lv_mailbox_test-stop-interval-0s) Ordering Constraints: ? start dlm-clone then start clvmd-clone (kind:Mandatory) Colocation Constraints: ? clvmd-clone with dlm-clone (score:INFINITY) Ticket Constraints: Alerts: ?No alerts defined Resources Defaults: ?resource-stickiness: 100 Operations Defaults: ?timeout: 120s Cluster Properties: ?cluster-infrastructure: corosync ?cluster-name: hastore ?dc-version: 1.1.19-8.el7_6.4-c3c624ea3d ?have-watchdog: false ?last-lrm-refresh: 1571079904 ?no-quorum-policy: stop ?stonith-action: reboot ?stonith-enabled: true ?stonith-timeout: 60s Can you help? Best Regards, Domenico