« Wiki Index

Ceph Rados

The Storage Made Easy Enterprise Appliance supports the Ceph object storage platform by using their librados APIs. Before you can use the Ceph Rados provider, you should follow the below instructions to install the neccessary system dependencies on your appliance.

These instructions are applicable to v10 of the appliance.

First, start by opening an SSH connection to your appliance. Once you have established the connection, run each of the below instructions line-by-line.

su - root
cd /var/www/smestorage
wget -O master.zip https://github.com/ceph/phprados/archive/fda97a85504ef78ddfd00e2e94b5c6e2c3fbd372.zip
unzip master.zip
cd phprados-fda97a85504ef78ddfd00e2e94b5c6e2c3fbd372/
yum install lttng-ust.x86_64 openssl-devel librados2-devel php-devel
make install
wget http://download.ceph.com/rpm/el7/x86_64/librados2-0.94.7-0.el7.x86_64.rpm
wget http://download.ceph.com/rpm/el7/x86_64/librados2-devel-0.94.7-0.el7.x86_64.rpm
rpm -i librados2-0.94.7-0.el7.x86_64.rpm  --force
rpm -i librados2-devel-0.94.7-0.el7.x86_64.rpm --force
echo "extension=rados.so" >> /etc/php.ini
php --ri rados
cd ../
wget -O support-required-alignment.zip https://github.com/kilinrax/Ceph-Rados/archive/8ef7b862c0f0af10245219d46c2e429d3832ef59.zip
unzip support-required-alignment.zip
cd Ceph-Rados-8ef7b862c0f0af10245219d46c2e429d3832ef59/
cpan install Devel:CheckLib
perl Makefile.PL
make install
rm -f /etc/php-fpm.d/www.conf
systemctl restart php-fpm

Finally, the following command will update the list of providers that are available in the user packages. If you host your MySQL server somewhere other than this server, you will need to update this command to reflect this.

mysql -u smestore -p smestorage -e "insert ignore into pr_providers (pr_name,classname,pr_active,pr_isprovider,pr_code,pr_beta,pr_fileslisttype,pr_id) values ('Ceph Rados','CephRadosStorageProvider','y',1,'cephrados','n',2,75);"

Once you have followed these steps, you should visit the "User Packages" page as the Appliance Admin, and enable the "Ceph Rados" connector for the users of those packages.

Still having problems?

If you are still having problems after following any of the instructions, please send an email to support.