create osd with db_dev: no ceph vg found

cola16

New Member
Feb 2, 2024
7
0
1
Bash:
 pveceph osd create /dev/sda1 \
 --crush-device-class hdd \
 --db_dev /dev/nvme0n1p4 \
 --db_dev_size 75

I got error
Bash:
create OSD on /dev/sda1 (bluestore)
creating block.db on '/dev/nvme0n1p4'
no ceph vg found on '/dev/nvme0n1p4'


I didn't realize db_dev_size was in GiB.
At first I thought it was a percentage, so I put 4 on "db_dev_size" and created osd.
but I saw that it created only 4GiB.
Afterward, I removed the OSD and trying to recreated it, failed with the error.


I also tried ceph-volume.
But this command did not create the block.db in lvm.
ceph-volume lvm create --block.db '/dev/nvme1n1p4' --data /dev/sdb1 --block.db-size 79993765888

How can I create a VG?
 
Last edited:
I checked the OSD creation log in proxmox task history and performed it as is.
If I do this, am I creating it correctly?

Bash:
vguuid=e05ad366-37f1-444b-a2bd-4d876345c4fe
lvuuid=a33e8521-ae0b-4988-abd7-d41e5633ef29
datadisk=/dev/sda1
dbdisk=/dev/nvme0n1p4
dbsizeMiB=76308
disktype=hdd

pvcreate $dbdisk
vgcreate ceph-$vguuid $dbdisk
lvcreate -L ${dbsizeMiB}MiB -n osd-db-$lvuuid ceph-$vguuid

ceph-volume lvm create --bluestore --data $datadisk --crush-device-class $disktype --block.db '/dev/ceph-$vguuid/osd-db-$lvuuid'
 

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!