CephNotes

Some notes about Ceph
Laurent Barbe @SIB

Set tunables optimal on Ceph crushmap

Il you just upgrade to Ceph 0.75, you can see this message :

$ ceph health HEALTH_WARN crush map has non-optimal tunables

For more explanation, everything is explained in the documentation: http://ceph.com/docs/master/rados/operations/crush-map/#warning-when-tunables-are-non-optimal

Before doing this, read the documentation !

$ ceph osd crush tunables optimal …

RBD client kernel 3.10.26

I take opportunity to the new kernel release 3.10.26 to advise the person using the client rbd kernel update to this version. Indeed a number of fixes have been applied to this version making use of rbd kernel particularly stable.

http://kernel.org

Patches applied :

Josh Durgin <josh …

Map rbd kernel without install ceph-common

It is not mandatory to install Ceph binaries (especially ceph-common) to be able to map a Rbd blocdevice you can also use the kernel path /sys/bus/rbd provided by rbd module.

$ modprobe rbd
$ echo "192.168.0.1,192.168.0.2,192.168.0.3 name=admin,secret …

Ceph osd reweight

ceph health
HEALTH_WARN 1 near full osd(s)

Arrhh, Trying to optimize a little weight given to the OSD. Rebalancing load between osd seems to be easy, but do not always go as we would like...

Increase osd weight

Before operation get the map of Placement Groups.

$ ceph pg dump …

Using ceph rbd with libvirt on Debian Wheezy

Howto add support of rbd device on debian wheezy.

libvirt

Since wheezy, libvirt supports rbd device.

qemu-kvm

If you do not add the support in qemu-kvm you may have an error like this:

error: Failed to start domain ubuntu
error: internal error process exited while connecting to monitor: char device …