# pcs resource master issue

**URL:** <https://forums.linbit.com/t/pcs-resource-master-issue/205>\
**Category:** General\
**Created:** [July 30, 2024, 9:09pm UTC](https://forums.linbit.com/t/pcs-resource-master-issue/205 "2024-07-30T21:09:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dahog](https://avatars.discourse-cdn.com/v4/letter/d/50afbb/32.png) [@dahog](https://forums.linbit.com/u/dahog)\
**Post date:** [July 30, 2024, 9:09pm UTC](https://forums.linbit.com/t/pcs-resource-master-issue/205/1 "2024-07-30T21:09:19Z")

</div>

Some years ago, I organized my resources according to the following scheme:

```auto
pcs resource create drbd_test ocf:linbit:drbd --group test drbd_resource=drbd_volume op monitor interval=60s
pcs resource master master_slave_drbd_test drbd_test master-max=1 master-node-max=1 clone-max=2 clone-node-max=1 notify=true
pcs resource create fs_test ocf:heartbeat:Filesystem --group test device="/dev/drbd1" directory="/var/www/test" fstype="ext4" op monitor interval=20s timeout=40s
pcs resource create ip_test ocf:heartbeat:IPaddr2 --group test ip=192.168.58.80 cidr_netmask=24 op monitor interval=45s timeout=30s
pcs constraint colocation add fs_test with master_slave_drbd_test INFINITY with-rsc-role=Master
pcs constraint order promote master_slave_drbd_test then start fs_test

```

But since PCS version 0.10.1, the “pcs resource master” (the second command from above) has been replaced by “pcs resource promotable”, as it says here [pcs/CHANGELOG.md at main · ClusterLabs/pcs · GitHub](https://github.com/ClusterLabs/pcs/blob/main/CHANGELOG.md#0101---2018-11-23) can anyone help me convert these commands to the latest modern syntax?

---

<div class="post-metadata">

**Author:** ![kermat](https://yyz1.discourse-cdn.com/flex003/user_avatar/forums.linbit.com/kermat/32/21_2.png) [@kermat](https://forums.linbit.com/u/kermat)\
**Post date:** [July 31, 2024, 2:03pm UTC](https://forums.linbit.com/t/pcs-resource-master-issue/205/2 "2024-07-31T14:03:50Z")

</div>

Something like this should work:

```bash
pcs resource create drbd_test ocf:linbit:drbd --group test \
    drbd_resource=drbd_volume \
    op monitor interval="29s" role="Promoted" \
    op monitor interval="31s" role="Unpromoted"
pcs resource clone drbd_test promotable_drbd_test \
    promoted-max=1 promoted-node-max=1 promotable=true \
    clone-max=2 clone-node-max=1 notify=true
pcs resource create fs_test ocf:heartbeat:Filesystem --group test \
    device="/dev/drbd1" directory="/var/www/test" fstype="ext4" \
    op monitor interval=20s timeout=40s
pcs resource create ip_test ocf:heartbeat:IPaddr2 --group test \
    ip=192.168.58.80 cidr_netmask=24 \
    op monitor interval=45s timeout=30s
pcs constraint colocation add fs_test with promoted promotable_drbd_test
pcs constraint order promotable_drbd_test then fs_test

```
