[ClusterLabs] mdraid - pacemaker resource agent
Jelen, Piotr
Piotr.Jelen at mastercard.com
Fri Dec 9 06:09:00 EST 2022
HI,
So, we have 3 nods in the cluster ( 2 resource + 1 voting node) and The main purpose is to deliver the shares over NFS to the customer
Node List:
* Online: [ host1, host2 ]
Full List of Resources:
* Resource Group: NAS-GATEWAY:
* mdadm0 (ocf::heartbeat:mdraid): Started host1
* mdadm1 (ocf::heartbeat:mdraid): Started host1
* nas_cluster_lvm (ocf::heartbeat:LVM-activate): Started host1
* nfsshare (ocf::heartbeat:Filesystem): Started host1
* nfs-daemon (ocf::heartbeat:nfsserver): Started host1
* nfs_vip (ocf::heartbeat:IPaddr2): Started host1
Daemon Status:
corosync: active/enabled
pacemaker: active/enabled
pcsd: active/enabled
sbd: active/enabled
I will try to test the csync2 tool, but the problem might be find signed csync2 rpm package for Red Hat,
Best Regards
Piotr Jelen
Senior Systems Platform Engineer
Mastercard
Mountain View, Central Park | Leopard
-----Original Message-----
From: Roger Zhou <zzhou at suse.com>
Sent: Friday 9 December 2022 10:26
To: Jelen, Piotr <Piotr.Jelen at mastercard.com>; Cluster Labs - All topics related to open-source clustering welcomed <users at clusterlabs.org>
Cc: Nielsen, Laust <Laust.Nielsen at mastercard.com>
Subject: {EXTERNAL} Re: [ClusterLabs] mdraid - pacemaker resource agent
CAUTION: The message originated from an EXTERNAL SOURCE. Please use caution when opening attachments, clicking links or responding to this email.
On 12/9/22 17:36, Jelen, Piotr wrote:
> Hi Roger,
>
> Thank you for your quick reply,
> The mdraid resource agent works very well for us, Can you please tell
> me if there is any resource agent or tool build in pacemaker for sync configuration file(s) such as /etc/exports for nfs service between cluster nodes without mounting shares and creating symbolic link(s) ?
I incline to ask you describe your use case a little bit more. Without knowing it well, my view might be not fit you.
csync2 is often used by ClusterLabs community. But it is an individual tool, and is not part of pacemaker. https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_linbit_csync2&d=DwIDaQ&c=uc5ZRXl8dGLM1RMQwf7xTCjRqXF0jmCF6SP0bDlmMmY&r=UzPNWvRnAChMyFZDGSUcEqtZElcu_XngP1GiT3HLUmI&m=0VgPA72qP5XpAr9TzizFodvYwOGTjSCkkrP_lbJSxW_0eg3Jut93Dbd6CL50Le0f&s=HuUc_fj7dKBgCr92yqVJyYjWAWU1ivqn0uXuGKk6mLo&e=
However, you refers to /etc/exports. I guess your use case is High Available NFS? If so, you could leverage `man ocf_heartbeat_exportfs`. But this resource agent doesn't use /etc/exports at all.
BR,
Roger
>
> Thank you
> Piotr Jelen
> Senior Systems Platform Engineer
>
> Mastercard
> Mountain View, Central Park | Leopard
>
>
> -----Original Message-----
> From: Roger Zhou <zzhou at suse.com>
> Sent: Thursday 8 December 2022 05:56
> To: Cluster Labs - All topics related to open-source clustering
> welcomed <users at clusterlabs.org>; Jelen, Piotr
> <Piotr.Jelen at mastercard.com>
> Cc: Nielsen, Laust <Laust.Nielsen at mastercard.com>
> Subject: {EXTERNAL} Re: [ClusterLabs] mdraid - pacemaker resource
> agent
>
> CAUTION: The message originated from an EXTERNAL SOURCE. Please use caution when opening attachments, clicking links or responding to this email.
>
>
>
> On 12/7/22 18:44, Jelen, Piotr wrote:
>> Hi ClusterLabs team ,
>>
>> I would like to ask if this resource agent was tested and if it can
>> be use in production?
>> resource-agents/mdraid at main · ClusterLabs/resource-agents · GitHub
>> <https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_Clus
>> t
>> erLabs_resource-2Dagents_blob_main_heartbeat_mdraid&d=DwIDaQ&c=uc5ZRX
>> l
>> 8dGLM1RMQwf7xTCjRqXF0jmCF6SP0bDlmMmY&r=UzPNWvRnAChMyFZDGSUcEqtZElcu_X
>> n
>> gP1GiT3HLUmI&m=OHY6Rfbo326vRgEACkHp-D4nbNFyihVuQak3w9YeTXJQ1SeBV2P-c7
>> c GumwQuS51&s=pOg6p7HopMV1E14QJmLReC7z_2_IBPhFWTWst5YO1FA&e= >
>>
>
> Yes. Why not ;). We don't see big missing piece, though might have some improvement for the certain scenario. Anyway, you could report the issue, or provide improvement code, if any.
>
> Cheers,
> Roger
>
>>
>> Thank you
>>
>> *Piotr Jelen*
>>
>> Senior Systems Platform Engineer
>>
>> Mastercard
>>
>> Mountain View, Central Park | Leopard
>>
>> [mastercard.com] <http://www.mastercard.com>
>>
>>
>> CONFIDENTIALITY NOTICE This e-mail message and any attachments are
>> only for the use of the intended recipient and may contain
>> information that is privileged, confidential or exempt from
>> disclosure under applicable law. If you are not the intended
>> recipient, any disclosure, distribution or other use of this e-mail
>> message or attachments is prohibited. If you have received this e-mail message in error, please delete and notify the sender immediately. Thank you.
>>
>> _______________________________________________
>> Manage your subscription:
>> https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.clusterlab
>> s
>> .org_mailman_listinfo_users&d=DwIDaQ&c=uc5ZRXl8dGLM1RMQwf7xTCjRqXF0jm
>> C
>> F6SP0bDlmMmY&r=UzPNWvRnAChMyFZDGSUcEqtZElcu_XngP1GiT3HLUmI&m=OHY6Rfbo
>> 3
>> 26vRgEACkHp-D4nbNFyihVuQak3w9YeTXJQ1SeBV2P-c7cGumwQuS51&s=ffs3MlOD3Dh
>> d
>> GPsQ5ikhdnYpI1fwmHosCj3lcGclCC8&e=
>>
>> ClusterLabs home:
>> https://urldefense.proofpoint.com/v2/url?u=https-3A__www.clusterlabs.
>> o
>> rg_&d=DwIDaQ&c=uc5ZRXl8dGLM1RMQwf7xTCjRqXF0jmCF6SP0bDlmMmY&r=UzPNWvRn
>> A
>> ChMyFZDGSUcEqtZElcu_XngP1GiT3HLUmI&m=OHY6Rfbo326vRgEACkHp-D4nbNFyihVu
>> Q
>> ak3w9YeTXJQ1SeBV2P-c7cGumwQuS51&s=z_dYDvqUIF8kA-K2k0kgO_YirTwL_MFT9jE
>> D
>> iJ8rJrw&e=
> CONFIDENTIALITY NOTICE This e-mail message and any attachments are only for the use of the intended recipient and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If you are not the intended recipient, any disclosure, distribution or other use of this e-mail message or attachments is prohibited. If you have received this e-mail message in error, please delete and notify the sender immediately. Thank you.
More information about the Users
mailing list