Open Source Object Storage for Unstructured Data: Ceph on HP ProLiant SL4540 Gen8 Servers

Table Of Contents
Reference Architecture | Product, solution, or service
Restart Apache
sudo service apache2 restart
Install Ceph Object Gateway
The Ceph packages don’t pull down object gateway software by default, so add that now.
sudo apt-get install radosgw
Add gateway configuration to Ceph
HP recommends this step and the configuration step be executed from the deployment directory used for cluster creation.
For each object gateway host, there’s a separate section for their definition. When running the scripts to start the service
the host-name field matches the proper configuration to start, and the gateway name is the piece of the <cluster>-<id>
combo that identifies the cephx user authenticating for that gateway instance. For example, with hp-cephmon01 the
matching gateway name is gateway01, so the below would be for [client.radosgw.gateway01].
[client.radosgw.<gateway name>]
host = <object gateway host-name>
keyring = /etc/ceph/keyring.radosgw.gateway
rgw socket path = /tmp/radosgw.sock
log file = /var/log/radosgw/radosgw.log
Redeploy Ceph Configuration
Strictly speaking only the new object gateway needs the update, but it’s a best practice to keep the configuration files in
sync. If not manually editing /etc/ceph/ceph.conf on the gateway machine, run this command to deploy the config file
changes to the cluster.
ceph-deploy --overwrite-conf config push <nodes>
Create Data Directory
sudo mkdir -p /var/lib/ceph/radosgw/ceph-radosgw.<gateway name>
Create Gateway Configuration
Create an rgw.conf file under the /etc/apache2/sites-available directory on the host where the Ceph Object Gateway was
installed. This configuration accomplishes a few things:
Configure FastCGI as an external server to Apache.
Sets a rewrite rule for Amazon S3 compatible interface (not use under this test).
Configure the mod_fastcgi module.
Allow encoded slashes, provide log file paths, and turn off server signatures.
Enable standard HTTP and SSL config.
The below is a literal config for hp-cephmon01, replace ServerName and ServerAdmin with the appropriate name of the
host where the object gateway is being installed.
FastCgiExternalServer /var/www/s3gw.fcgi -socket /tmp/radosgw.sock
<VirtualHost *:80>
ServerName <hp-cephmon01>
ServerAlias *.ldev.net
ServerAdmin cloudplay@hp-cephmon01.ldev.net
DocumentRoot /var/www
RewriteEngine On
RewriteRule ^/([a-zA-Z0-9-_.]*)([/]?.*) /s3gw.fcgi?page=$1&params=$2&%{QUERY_STRING}
[E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
<IfModule mod_fastcgi.c>
<Directory /var/www>
Options +ExecCGI
AllowOverride All
SetHandler fastcgi-script
Order allow,deny
45