Ceph Nano big updates
With its two latest versions (v1.3.0 and v1.4.0) Ceph Nano brought some nifty new functionalities that I’d like to highlight in the article.
This is feature is available since v1.3.0.
You can now run more than a single instance of cn, you can run as many as your system allows it (CPU and memory wise). This is how you run a new cluster:
$ ./cn cluster start s3 -d /tmp
And how you can retrieve the list of running clusters:
$ ./cn cluster ls
This feature works well in conjunction with the image support. You can run any container using any container image available in the Docker Hub. You can even your own one if you want to test a fix.
You can list the available image like this:
$ ./cn image ls
-a to list all our images.
So using the
-i option when starting a cluster will run the image you want.
This feature is available since v1.4.0.
You might be after providing more persistent and fast storage for cn. This is possible by specifying either a dedicated block device (a partition works too) or a directory that you might have configured on a particular device.
You have to run cn with
sudo here since it performs a couple of checks on that device to make sure its eligible for usage. Thus higher privileges to run cn are required.
sudo ./cn cluster start -b /dev/disk/by-id/wwn-0x600508b1001c4257dacb9870dbc6b1c8 block
Using a directory is identical, just run with
-b /srv/cn/ for instance.
I’m so glad to see how cn has evolved, I’m proud of this little tool that I use on daily basis for so many things. I hope you are enjoying it as much as I do.