Single Node Ceph Storage

tschanness

Member
Oct 30, 2016
291
22
18
34
Hi,
is it possible to user Ceph as Storage on a Single Node on a homelab? I know I'd have to edit the config to

osd pool default size = 2
osd crush chooseleaf type = 0

but would the storage be administerable from the webui?

Thanks in advance,
Jonas
 
Why don't you virtualize 3 VMs in Proxmox VE to simulate the minimal Ceph requirements? This could be (technically) better than a one-node system and can be done on a one-node Proxmox VE system. Of course it'll not be fast, but that's not the point for a 'home lab', isn't it?
 
Proxmox wont care much as long as it can write the virtual disk image on the Ceph storage. If you are doing it for learning purpose, a single node Ceph will not teach what Ceph is all about. Yes you can practice all the commands and things but not the mechanics of Ceph. Also on a single node your pool size will need to be 1. If it is set to 2 or more you will never achieve Healthy status for Ceph but Degraded.
 
Thanks for the answer. Pool Size can stay at 2 if chooseleaf stays 0 (Every block on two devices but on the same Host)

sC
 
I tried with similar setup once but did not work for me. That was long ago during the time of Ceph Bobtail. Crush has came very long way since then. Have you tried to simulate it in Virtual environment?
 
No not yet. I'll try some time this week hopefully and report back. Thanks for your answers!

sC