# Im Configuring the DRBD cloneset with ubuntu 2404

**URL:** https://forums.linbit.com/t/im-configuring-the-drbd-cloneset-with-ubuntu-2404/336
**Category:** DRBD
**Tags:** drbd
**Created:** [October 1, 2024, 6:13pm UTC](https://forums.linbit.com/t/im-configuring-the-drbd-cloneset-with-ubuntu-2404/336 "2024-10-01T18:13:53Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![Haldekar12](https://avatars.discourse-cdn.com/v4/letter/h/ac91a4/32.png) [@Haldekar12](https://forums.linbit.com/u/Haldekar12)
#### Post date: [October 1, 2024, 6:13pm UTC](https://forums.linbit.com/t/im-configuring-the-drbd-cloneset-with-ubuntu-2404/336/1 "2024-10-01T18:13:53Z")

</div>

Please use code blocks to enclose commands, command output, configuration files, log messages, or other CLI content.  
[root@pcmk-1 ~]# pcs -f drbd\_cfg resource create WebData ocf:linbit:drbd   
drbd\_resource=wwwdata op monitor interval=60s  
This command works well with ubuntu 2404  
[root@pcmk-1 ~]# pcs -f drbd\_cfg resource master WebDataClone WebData   
master-max=1 master-node-max=1 clone-max=2 clone-node-max=1   
notify=true  
This command does not work with ubuntu 2404, there’s no error seems some attributes are not available with ubuntu  
I want to DRBD clone for postgres DB replication

---

<div class="post-metadata">

### Author: ![michael](https://yyz1.discourse-cdn.com/flex003/user_avatar/forums.linbit.com/michael/32/16_2.png) [@michael](https://forums.linbit.com/u/michael)
#### Post date: [October 1, 2024, 8:49pm UTC](https://forums.linbit.com/t/im-configuring-the-drbd-cloneset-with-ubuntu-2404/336/2 "2024-10-01T20:49:10Z")

</div>

> [@Haldekar12](#):
>
> pcs -f drbd\_cfg resource master WebDataClone WebData  
> master-max=1 master-node-max=1 clone-max=2 clone-node-max=1  
> notify=true

Perhaps try:

```auto
pcs -f drbd_cfg resource promotable WebDataClone WebData
promoted-max=1 promoted-node-max=1 clone-max=2 clone-node-max=1
notify=true

```

Which is new syntax.

---

<div class="post-metadata">

### Author: ![Haldekar12](https://avatars.discourse-cdn.com/v4/letter/h/ac91a4/32.png) [@Haldekar12](https://forums.linbit.com/u/Haldekar12)
#### Post date: [October 2, 2024, 7:53am UTC](https://forums.linbit.com/t/im-configuring-the-drbd-cloneset-with-ubuntu-2404/336/3 "2024-10-02T07:53:04Z")

</div>

![image](https://canada1.discourse-cdn.com/flex003/uploads/linbit/original/1X/a342061399ac832a00c47dce305b7818e49a3e7d.png)

Thanks for your inputs,  
I can see the command are getting executed and resources getting create, but I see the naming the pcs status are not showing master/slave, can you please suggest!  
Also please find the change it command  
pcs -f drbd\_cfg resource promotable WebDataClone WebData  
promoted-max=1 promoted-node-max=1 clone-max=2 clone-node-max=1  
notify=true  
instead worked is  
pcs -f drbd\_cfg resource promotable WebData  
promoted-max=1 promoted-node-max=1 clone-max=2 clone-node-max=1  
notify=true  
the clone named resource will be create automatically

---

<div class="post-metadata">

### Author: ![michael](https://yyz1.discourse-cdn.com/flex003/user_avatar/forums.linbit.com/michael/32/16_2.png) [@michael](https://forums.linbit.com/u/michael)
#### Post date: [October 2, 2024, 12:33pm UTC](https://forums.linbit.com/t/im-configuring-the-drbd-cloneset-with-ubuntu-2404/336/4 "2024-10-02T12:33:26Z")

</div>

> [@Haldekar12](#):
>
> I can see the command are getting executed and resources getting create, but I see the naming the pcs status are not showing master/slave, can you please suggest!

Glad you got the command working. If I understand your question, what is shown is expected. New command syntax and output will no longer use or show master/slave. Instead, the new syntax is promoted/unpromoted.

---

<div class="post-metadata">

### Author: ![Haldekar12](https://avatars.discourse-cdn.com/v4/letter/h/ac91a4/32.png) [@Haldekar12](https://forums.linbit.com/u/Haldekar12)
#### Post date: [October 2, 2024, 2:06pm UTC](https://forums.linbit.com/t/im-configuring-the-drbd-cloneset-with-ubuntu-2404/336/5 "2024-10-02T14:06:20Z")

</div>

That’s great information, I’m really thankful for your help!!  
can you share any reference link/doc for this way of working with latest drbd version as well as for Ubuntu 2404  
Also if you can suggest me that whether the DRBD can be a trusted solution for postgres DB replication which has high transactions.

---

<div class="post-metadata">

### Author: ![Devin](https://yyz1.discourse-cdn.com/flex003/user_avatar/forums.linbit.com/devin/32/26_2.png) [@Devin](https://forums.linbit.com/u/Devin)
#### Post date: [October 2, 2024, 5:24pm UTC](https://forums.linbit.com/t/im-configuring-the-drbd-cloneset-with-ubuntu-2404/336/6 "2024-10-02T17:24:43Z")

</div>

DRBD is a fully synchronous replication solution. That is, we do not consider a write completed locally until it has been sent to the peer, written to the disk there, sent an acknowledgment back to the Primary, and committed to disk on the Primary locally.

DRBD is not new, has been trusted in production for about two decades now, and I personally know of several users who use it to back hundreds of Postgres DB instances.

---

<div class="post-metadata">

### Author: ![Haldekar12](https://avatars.discourse-cdn.com/v4/letter/h/ac91a4/32.png) [@Haldekar12](https://forums.linbit.com/u/Haldekar12)
#### Post date: [October 3, 2024, 6:12am UTC](https://forums.linbit.com/t/im-configuring-the-drbd-cloneset-with-ubuntu-2404/336/7 "2024-10-03T06:12:56Z")

</div>

Hello Devin,

Thank you for the Message!!

can you share any reference link/doc for this way of working with latest drbd version as well as for Ubuntu 2404

Any fine tuning parameters/setting, we can add/modify improve the postgres replication on DRBD and avoid the bottleneck issues

---

<div class="post-metadata">

### Author: ![michael](https://yyz1.discourse-cdn.com/flex003/user_avatar/forums.linbit.com/michael/32/16_2.png) [@michael](https://forums.linbit.com/u/michael)
#### Post date: [October 3, 2024, 12:56pm UTC](https://forums.linbit.com/t/im-configuring-the-drbd-cloneset-with-ubuntu-2404/336/8 "2024-10-03T12:56:15Z")

</div>

The [_DRBD User Guide_](https://linbit.com/drbd-user-guide/drbd-guide-9_0-en/) attempts to be the authoritative reference for using DRBD (latest version).

You might also find some helpful references in [the LINBIT blog](https://linbit.com/blog/), such as [this post](https://linbit.com/blog/configuring-high-availability-for-mysql-databases-using-drbd/) related to configuring HA for MySQL databases, and the LINBIT knowledge base, such as [these articles](https://kb.linbit.com/kb-search-results?term=performance) that relate to performance.

I am not aware of specific LINBIT documentation for Ubuntu 24.04 and HA databases. It is still a relatively newer release and most LINBIT customers are using RHEL or a RHEL-like distribution. You might get some inspiration though from some of the database related how-to guides on the [LINBIT website](https://linbit.com/solutions-and-how-to-documentation/), such as [" MariaDB High Availability Clustering Using LINSTOR, DRBD, and DRBD Reactor"](https://linbit.com/tech-guide/using-linstor-and-drbd-reactor-to-deploy-a-highly-available-mariadb-service/) and [“MySQL High Availability Clustering Using DRBD and Pacemaker on RHEL 8”](https://linbit.com/tech-guide/drbd9-mysql-rhel8/).

You can also continue to ask questions within the forum here as you get into setting up and testing. Perhaps there are other users who have already adopted Ubuntu 24.04 for an HA database use case.

---

<div class="post-metadata">

### Author: ![Ryan](https://yyz1.discourse-cdn.com/flex003/user_avatar/forums.linbit.com/ryan/32/42_2.png) [@Ryan](https://forums.linbit.com/u/Ryan)
#### Post date: [October 3, 2024, 3:29pm UTC](https://forums.linbit.com/t/im-configuring-the-drbd-cloneset-with-ubuntu-2404/336/9 "2024-10-03T15:29:54Z")

</div>

> [@Haldekar12](#):
>
> Also if you can suggest me that whether the DRBD can be a trusted solution for postgres DB replication which has high transactions.

Just quickly mentioning DRBD is included in PostgreSQL’s official documentation for [high availability solutions](https://www.postgresql.org/docs/current/different-replication-solutions.html#DIFFERENT-REPLICATION-SOLUTIONS). Also, here’s their [HA feature comparion matrix](https://www.postgresql.org/docs/current/different-replication-solutions.html#HIGH-AVAILABILITY-MATRIX). There are quite a few ways to achieve HA for Postgres, DRBD is definitely one of the solutions.

---

<div class="post-metadata">

### Author: ![Haldekar12](https://avatars.discourse-cdn.com/v4/letter/h/ac91a4/32.png) [@Haldekar12](https://forums.linbit.com/u/Haldekar12)
#### Post date: [October 3, 2024, 4:18pm UTC](https://forums.linbit.com/t/im-configuring-the-drbd-cloneset-with-ubuntu-2404/336/10 "2024-10-03T16:18:30Z")

</div>

Kudos all the mate’s!! Grateful

Im really thankful for all the suggestions, I will still keep this open for more suggestions incase anyone having.
