CephNotes

Some notes about Ceph
Laurent Barbe @SIB

Using ceph-deploy

Install the ceph cluster

On each node :

create a user "ceph" and configure sudo for nopassword :

$ useradd -d /home/ceph -m ceph
$ passwd ceph
$ echo "ceph ALL = (root) NOPASSWD:ALL" | sudo tee /etc/sudoers.d/ceph
$ chmod 0440 /etc/sudoers.d/ceph

Update hosts file

$ vim /etc/hosts
192.168 …

Ceph RBD Online Resize

Extend rbd drive with libvirt and XFS

First, resize the device on the physical host.

Get the current size :

$ qemu-img info -f rbd "rbd:rbd/myrbd"

Be careful, you must specify a bigger size, shrink a volume is destructive for the FS.

$ qemu-img resize -f rbd "rbd:rbd/myrbd" 600G …