Scaling OwnCloud with Red Hat Storage


Its impossible to be involved in technology these days without knowing what happened in the US with the PRISM program of illegally aquiring private information of people on an international scale.

As a result, this has somewhat changed the game and has made businesses start to re-evaluate their stance on putting personal and company data online with 3rd party cloud providers. This has resulted in projects like OwnCloud and Pydio to pop up and get quite a lot of backing as it gives you cloud-like functionality that remains 100% within your control.

If you aren’t familiar with OwnCloud or Pydio, they are open source alternatives to 3rd party proprietary solutions like Dropbox and

Last week I was sent a link to an article about using OwnCloud as an alternative to the likes of Dropbox and The article also touched on a very common question I ask in everything I do.

“How do I make this highly scalable?” 

You can find the original article here if you would like to have a read though.


You might be wondering why I have a title about Red Hat Storage and all I am talking about so far is OwnCloud. I’ll explain a little as we move on so sit back, fasten your seatbelt and see for yourself how this might benefit you and your organisation.

Red Hat Storage has hit the market and also in a sense changed how people perceive storage. Up until recently, “Enterprise Storage” has always been seen as hugely expensive, complex and in many cased far over the top for many organisations for their use case. With Red Hat Storage, like virtualization, businesses can now take their requirements for growth and transform new or existing x86 based hardware into very scalable products. With Red Hat Storage, this now means for many organisations, they need to ask the question “Do I actually need a storage array for this?”

In this article I will be using OwnCloud and Red Hat Storage Server to demonstrate how to deploy a web application stack that is capable of scaling out to meet growing business requirements. This solution will give us high availability across all aspects of the platform whilst not having to go out and spend big on large scale storage arrays.

Note: This method is not limited to OwnCloud and can be used for any web site or web application you require.

Below you will find a visual representation of what we are about to set up.

RHSS Web stack

This solution includes the below kit list of servers

  • 3 x Red Hat Storage Servers with a 100G replicated volume (Gluster)
  • 2 x Front end Load Balancers using the Red Hat Load Balancer add-on (LVS)
  • 3 x Red Hat Enterprise Linux MariaDB servers using Galera
  • 3 x Red Hat Enterprise Linux Apache web servers to host OwnCloud

I will be using the below names and IP addresses for this platform.

Red Hat Storage:     =     =     =

Load Balancers:       =       =
Virtual IP's           =,

MariaDB Galera Cluster:  =  =  =

Apache Web farm:     = (Front end) , (Back end)     = (Front end) , (Back end)     = (Front end) , (Back end)

DNS Records: 

VIP’s:  =    =


All servers should have both forward and reverse lookup records in existing DNS infrastructure.

As this solution is a mix of several technologies, I’ll be addressing them in the below order.

  1. Replicated storage using Red Hat Storage Server
  2. Load Balancing with Red Hat Load Balancing Add-On (LVS)
  3. MariaDB multi-master clustering with Galera
  4. OwnCloud setup with Apache

5 comments on “Scaling OwnCloud with Red Hat Storage

  1. Jan Dam November 26, 2013 14:39

    Thanks for this excellent article!

  2. Patrick November 27, 2013 17:19

    Dale: thanks for this great article. The BZ you mentioned got “CLOSED NEXTRELEASE ” ages ago which suggests that the fix could be part of the latest selinux-policy by now. Yet no “Fixed in version” is mentioned while Miroslav usually adds the selinux-policy release in which it is fixed. Puzzling.

  3. Patrick November 27, 2013 17:27

    It seems the selinux-policy in RHEL6.4 has a fix:
    $ getsebool -a | grep httpd_use_fusefs
    httpd_use_fusefs –> off

    So it should be just a matter of:
    $ sudo setsebool -P httpd_use_fusefs on
    to give Apache the ability to use GlusterFS storage.

    • Dale Macartney November 27, 2013 21:41

      Thanks Patrick, I was hoping for some good news like that.

      I’ve just updated the article to reflect the changes.

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Current day month ye@r *