Having some issues with creating an RBD storage

andromedakun

New Member
Dec 15, 2024
2
0
1
Hello everyone,

So, I've decided to give proxmox cluster a go and got some nice little NUC-a-like devices to run proxmox.

Cluster is as follows:
  1. Cluster name: Magi
    1. Host 1: Gaspar
      1. VMBR0 IP is 10.0.2.10 and runs on eno1 network device
      2. vmbr1 IP is 10.0.3.11 and runs on enp1s0 network device
    2. Host 2: Melchior
      1. VMBR0 IP is 10.0.2.11 and runs on eno1 network device
      2. VMBR1 IP is 10.0.3.12 and runs on enp1s0 network device
    3. Host 3: Balthasar
      1. VMBR0 IP is 10.0.2.12 and runs on eno1 network device
      2. VMBR1 IP is 10.0.3.13 and runs on enp1s0 network device
VLANS on the network are:
Vlan 20 10.0.2.0/25
Vlan 30 10.0.3.0/26


All devices have a 2TB M.2 SSD drive partitioned as follows:

Device Start End Sectors Size Type
/dev/nvme0n1p1 34 2047 2014 1007K BIOS boot
/dev/nvme0n1p2 2048 2099199 2097152 1G EFI System
/dev/nvme0n1p3 2099200 838860800 836761601 399G Linux LVM
/dev/nvme0n1p4 838862848 4000796671 3161933824 1.5T Linux LVM

Ceph status is as follows:

cluster:
id: 4429e2ae-2cf7-42fd-9a93-715a056ac295
health: HEALTH_OK

services:
mon: 3 daemons, quorum gaspar,balthasar,melchior (age 81m)
mgr: gaspar(active, since 83m)
osd: 3 osds: 3 up (since 79m), 3 in (since 79m)

data:
pools: 2 pools, 33 pgs
objects: 7 objects, 641 KiB
usage: 116 MiB used, 4.4 TiB / 4.4 TiB avail
pgs: 33 active+clean

pveceph pool ls shows following pools availble:

┌──────┬──────┬──────────┬────────┬─────────────┬────────────────┬───────────────────┬──────────────────────────┬───────│ Name │ Size │ Min Size │ PG Num │ min. PG Num │ Optimal PG Num │ PG Autoscale Mode │ PG Autoscale Target Size │ PG Aut╞══════╪══════╪══════════╪════════╪═════════════╪════════════════╪═══════════════════╪══════════════════════════╪═══════│ .mgr │ 3 │ 2 │ 1 │ 1 │ 1 │ on │ │
├──────┼──────┼──────────┼────────┼─────────────┼────────────────┼───────────────────┼──────────────────────────┼───────│ rbd │ 3 │ 2 │ 32 │ │ 32 │ on │ │
└──────┴──────┴──────────┴────────┴─────────────┴────────────────┴───────────────────┴──────────────────────────┴────

ceph osd pool application get rbd shows following:

ceph osd pool application get rbd
{
"rados": {}
}

rbd ls -l rbd shows

NAME SIZE PARENT FMT PROT LOCK
myimage 1 TiB 2

This is what's contained in the ceph.conf file:
[global]
auth_client_required = cephx
auth_cluster_required = cephx
auth_service_required = cephx
cluster_network = 10.0.3.11/26
fsid = 4429e2ae-2cf7-42fd-9a93-715a056ac295
mon_allow_pool_delete = true
mon_host = 10.0.3.11 10.0.3.13 10.0.3.12
ms_bind_ipv4 = true
ms_bind_ipv6 = false
osd_pool_default_min_size = 2
osd_pool_default_size = 3
public_network = 10.0.3.0/26
cluster_network = 10.0.3.0/26

[client]
keyring = /etc/pve/priv/$cluster.$name.keyring

[client.crash]
keyring = /etc/pve/ceph/$cluster.$name.keyring

[mon.balthasar]
public_addr = 10.0.3.13

[mon.gaspar]
public_addr = 10.0.3.11

[mon.melchior]
public_addr = 10.0.3.12


All this seems to show that I should have a pool rbd available with an image of 1TB yet, when I try to add a storage, I can't find the pool in the drop down menu whn I go to Datacenter > Storage > Add > RBD and can't type in rbd in the pool part.

Any ideas what I could do to salvage this situation?
 
As it looks like either no one has had the same issue, could someone at least confirm the steps taken to activate RBD should work?


Steps:

- Install Proxmox on 3 servers

- Cluster servers

- Update all

- Create 1,5 TB partition for CEPH

- Install CEPH on cluster and nodes (19.20 squid)

- Create Monitoring (on 3 servers) and OSD's (on the new 1,5TB partition)

- Create RBD pool

- Activate RADOS on RBD pool

- Create 1TB image in RBD pool

- Check pool is visible on all 3 devices in the cluster

- Add RBD Storage and choose correct pool.

Now, all seems to go well until the last point, but if someone can confirm that the previous points were OK, that would be lovely.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!