# XtraDB cluster installation and setup

**URL:** <https://forums.percona.com/t/xtradb-cluster-installation-and-setup/3079>\
**Category:** Percona XtraDB Cluster 5.x\
**Created:** [November 13, 2013, 8:17am UTC](https://forums.percona.com/t/xtradb-cluster-installation-and-setup/3079 "2013-11-13T08:17:26Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mahesh\_Patil](https://avatars.discourse-cdn.com/v4/letter/m/ba9def/32.png) [@Mahesh\_Patil](https://forums.percona.com/u/Mahesh_Patil)\
**Post date:** [November 13, 2013, 8:17am UTC](https://forums.percona.com/t/xtradb-cluster-installation-and-setup/3079/1 "2013-11-13T08:17:26Z")

</div>

Hello,

I want to install XtraDB cluster setup in same machine having 2 different nodes in EC2 instance having RHEL6

I have gone through this link [URL][http://www.percona.com/doc/percona-xtradb-cluster/installation/yum\_repo.html#yum-repo[/URL]](http://www.percona.com/doc/percona-xtradb-cluster/installation/yum_repo.html#yum-repo%5B/URL%5D) but I am getting these errors:  
You could try using --skip-broken to work around the problem  
You could try running: rpm -Va --nofiles --nodigest

Also, I do not have any MySQL server running in this machine… so it’s a completely new machine.

1. How to setup Percona XtraDB cluster in single machine having two nodes?
2. Do I require MySQL also to be installed along with Percona Cluster?

A step-by-step guide would be helpful.

I know this might be easy questions to you but I am completely new to cluster environment … we are switching from MySQL replication to Cluster environment for HA.

---

<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:** [November 18, 2013, 6:50am UTC](https://forums.percona.com/t/xtradb-cluster-installation-and-setup/3079/2 "2013-11-18T06:50:05Z")

</div>

What is the actual yum conflict you are having? Include the yum output. Probably you have some MySQL packages installed already.

Also regarding more then one node on single box: [url][Percona XtraDB Cluster](http://www.percona.com/doc/percona-xtradb-cluster/howtos/singlebox.html%5B/url%5D)

---

<div class="post-metadata">

**Author:** ![Jarjis](https://avatars.discourse-cdn.com/v4/letter/j/45deac/32.png) [@Jarjis](https://forums.percona.com/u/Jarjis)\
**Post date:** [December 15, 2013, 4:27pm UTC](https://forums.percona.com/t/xtradb-cluster-installation-and-setup/3079/3 "2013-12-15T16:27:53Z")

</div>

Error: Execution of ‘/usr/bin/yum -d 0 -e 0 -y install Percona-XtraDB-Cluster-server-56’ returned 1:

Error Downloading Packages:  
1:Percona-XtraDB-Cluster-shared-56-5.6.14-25.1.596.rhel6.x86\_64: failure: Percona-XtraDB-Cluster-shared-56-5.6.14-25.1.596.rhel6.x86\_64.rpm from percona  
: [Errno 256] No more mirrors to try.  
1:Percona-XtraDB-Cluster-client-56-5.6.14-25.1.596.rhel6.x86\_64: failure: Percona-XtraDB-Cluster-client-56-5.6.14-25.1.596.rhel6.x86\_64.rpm from percona  
: [Errno 256] No more mirrors to try.  
percona-xtrabackup-2.1.6-702.rhel6.x86\_64: failure: percona-xtrabackup-2.1.6-702.rhel6.x86\_64.rpm from percona: [Errno 256] No more mirrors to try.  
1:Percona-XtraDB-Cluster-server-56-5.6.14-25.1.596.rhel6.x86\_64: failure: Percona-XtraDB-Cluster-server-56-5.6.14-25.1.596.rhel6.x86\_64.rpm from percona  
: [Errno 256] No more mirrors to try.  
Percona-XtraDB-Cluster-galera-3-3.1-1.182.rhel6.x86\_64: failure: Percona-XtraDB-Cluster-galera-3-3.1-1.182.rhel6.x86\_64.rpm from percona: [Errno 256] No  
more mirrors to try.

---

<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 16, 2013, 2:44am UTC](https://forums.percona.com/t/xtradb-cluster-installation-and-setup/3079/4 "2013-12-16T02:44:29Z")

</div>

Jarjis, so you are using testing repo it seems. Show me:  
curl -I [url][http://repo.percona.com/testing/centos/6/os/x86\_64/Percona-XtraDB-Cluster-server-56-5.6.14-25.1.596.rhel6.x86\_64.rpm[/url]](http://repo.percona.com/testing/centos/6/os/x86_64/Percona-XtraDB-Cluster-server-56-5.6.14-25.1.596.rhel6.x86_64.rpm%5B/url%5D)

Also, for production purposes I would suggest to use our standard repository, not testing.

---

<div class="post-metadata">

**Author:** ![Jarjis](https://avatars.discourse-cdn.com/v4/letter/j/45deac/32.png) [@Jarjis](https://forums.percona.com/u/Jarjis)\
**Post date:** [December 16, 2013, 8:55am UTC](https://forums.percona.com/t/xtradb-cluster-installation-and-setup/3079/5 "2013-12-16T08:55:56Z")

</div>

I tried using the following repos  
[url][http://www.percona.com/downloads/percona-release/percona-release-0.0-1.x86\_64.rpm[/url]](http://www.percona.com/downloads/percona-release/percona-release-0.0-1.x86_64.rpm%5B/url%5D)

[http://repo.percona.com/testing/centos/$releasever/os/$basearch/](http://repo.percona.com/testing/centos/%24releasever/os/%24basearch/)"

Result some what the same. I’m using CentOS 6.4 and Puppet Enterprise 3.1

[root@esgsql02 etc]# curl -I [url][http://repo.percona.com/testing/cent...el6.x86\_64.rpm[/url]](http://repo.percona.com/testing/cent...el6.x86_64.rpm%5B/url%5D)  
HTTP/1.0 404 Not Found  
Date: Mon, 16 Dec 2013 14:23:37 GMT  
Server: Apache  
Vary: Accept-Encoding  
Content-Type: text/html; charset=iso-8859-1  
X-Cache: MISS from [coacache.austintexas.gov](http://coacache.austintexas.gov)  
X-Cache-Lookup: MISS from [coacache.austintexas.gov:3128](http://coacache.austintexas.gov:3128)  
Via: 1.0 [coacache2.austintexas.gov](http://coacache2.austintexas.gov) (squid/3.1.10)  
Connection: keep-alive

---

<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 20, 2013, 3:55pm UTC](https://forums.percona.com/t/xtradb-cluster-installation-and-setup/3079/6 "2013-12-20T15:55:20Z")

</div>

OK, so you are behind a squid proxy that may mess up with something. Are you able to bypass it?  
Also, the link I gave you is truncated by forum (full URL is shown when you hover over with mouse).  
The correct curl command is:

```auto
curl -I http://repo.percona.com/testing/centos/6/os/x86_64/Percona-XtraDB-Cluster-server-56-5.6.14-25.1.596.rhel6.x86_64.rpm

```

btw, pretty please don’t ask for the same thing in 5 different forum threads…
