# Cannot run donor command on CLI

**URL:** <https://forums.percona.com/t/cannot-run-donor-command-on-cli/6720>\
**Category:** Percona XtraDB Cluster 5.x\
**Created:** [December 3, 2018, 9:00am UTC](https://forums.percona.com/t/cannot-run-donor-command-on-cli/6720 "2018-12-03T09:00:45Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jazikh](https://avatars.discourse-cdn.com/v4/letter/j/8edcca/32.png) [@jazikh](https://forums.percona.com/u/jazikh)\
**Post date:** [December 3, 2018, 9:00am UTC](https://forums.percona.com/t/cannot-run-donor-command-on-cli/6720/1 "2018-12-03T09:00:45Z")

</div>

I am using CentOS 7 and pxc version 5.6.

As per this blog [url][https://www.percona.com/blog/2014/09/01/galera-replication-how-to-recover-a-pxc-cluster/[/url]](https://www.percona.com/blog/2014/09/01/galera-replication-how-to-recover-a-pxc-cluster/%5B/url%5D)

im trying to run the below command and and i am getting error.

systemctl start mysql --wsrep-sst-donor=srv1

systemctl: unrecognized option ‘–wsrep-sst-donor=srv1’

---

<div class="post-metadata">

**Author:** ![lorraine.pocklington](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/lorraine.pocklington/32/37_2.png) [@lorraine.pocklington](https://forums.percona.com/u/lorraine.pocklington)\
**Post date:** [December 3, 2018, 9:54am UTC](https://forums.percona.com/t/cannot-run-donor-command-on-cli/6720/2 "2018-12-03T09:54:47Z")

</div>

Hi there I think we might have answered on dba.stackexchange? For Centos 7 that blog says to use

```auto
systemctl start mysql&#64;bootstrap.service 

```

I will double check with the tech team here to make sure that is correct advice…

[url][mysql - Percona Xtradb Cluster not accepting options on command line - Database Administrators Stack Exchange](https://dba.stackexchange.com/questions/223998/percona-xtradb-cluster-not-accepting-options-on-command-line%5B/url%5D)

---

<div class="post-metadata">

**Author:** ![jazikh](https://avatars.discourse-cdn.com/v4/letter/j/8edcca/32.png) [@jazikh](https://forums.percona.com/u/jazikh)\
**Post date:** [December 3, 2018, 12:41pm UTC](https://forums.percona.com/t/cannot-run-donor-command-on-cli/6720/3 "2018-12-03T12:41:37Z")

</div>

Hello loraine, can you pls check my updated question in dba stackexchange?  
I want to manually select the donor and i cannot run the command.

however, i believe that bootstrap is needed for the first node.

---

<div class="post-metadata">

**Author:** ![przemek](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/przemek/32/3_2.png) [@przemek](https://forums.percona.com/u/przemek)\
**Post date:** [December 5, 2018, 6:27am UTC](https://forums.percona.com/t/cannot-run-donor-command-on-cli/6720/4 "2018-12-05T06:27:08Z")

</div>

Hi Jazikh,

Unfortunately the systemctl doesn’t take extra options the same way as pre-systemd init.d script did.  
Although you can edit the /usr/lib/systemd/system/mysql.service and add the option to the ExecStart line, I would suggest to rather add it temporarily to your .cnf configuration file (for PXC 5.7 it will be /etc/percona-xtradb-cluster.conf.d/wsrep.cnf), just without the ‘–’ prefix.  
Hope that works.

---

<div class="post-metadata">

**Author:** ![jazikh](https://avatars.discourse-cdn.com/v4/letter/j/8edcca/32.png) [@jazikh](https://forums.percona.com/u/jazikh)\
**Post date:** [December 11, 2018, 10:52am UTC](https://forums.percona.com/t/cannot-run-donor-command-on-cli/6720/5 "2018-12-11T10:52:38Z")

</div>

Thanks:rolleyes:
