I'm not familiar with cockpit but with ceph. Reading the cockpit docs I would probably choose physical disk as source, and the physical disk is a mapped rbd device. If you already have a pool dedicated for rbd usage, I would create one (or more) rbd images in required size:
rbd -p <pool> create -s <size> <name>
Then map that rbd device on the hypervisor, for automatic mapping after boot there's an example file within the /etc/ceph
directory:
# cat /etc/ceph/rbdmap
# RbdDevice Parameters
#poolname/imagename id=client,keyring=/etc/ceph/ceph.client.keyring
To enable the map after boot you need to enable the rbdmap service:
# systemctl enable --now rbdmap.service
● rbdmap.service - Map RBD devices
Loaded: loaded (/usr/lib/systemd/system/rbdmap.service; disabled; vendor preset: disabled)
Active: inactive (dead)
When the rbd image is mapped to the hypervisor you should see it in lsblk
output as an rbd
device, or in /dev/rbd
as well:
# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sr0 11:0 1 458K 0 rom
rbd0 252:0 0 10M 0 disk
# ls -l /dev/rbd0
brw-rw---- 1 root disk 252, 0 9. Feb 12:18 /dev/rbd0
So from the hypervisor's perspective it's now a local disk which you can use to create storage pools.