$ rbd rm rbd/myrbd
2013-07-30 14:10:13.341184 7f9e11922760 -1 librbd: image has snapshots - not removing
Removing image: 0% complete...failed.
rbd: image has snapshots - these must be deleted with 'rbd snap purge' before the image can be removed.
$ rbd snap ls rbd/myrbd
SNAPID NAME SIZE
10 …
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 …