db_size doesn't work when use pvecehp createosd

Lyons WANG

New Member
Aug 14, 2019
1
0
1
43
sda is hdd and sdb is ssd, when use pveceph createosd, but -db_size doesn't work,here is the report
root@pve-03:~# pveceph createosd /dev/sda -db_dev /dev/sdb -db_size 10
create OSD on /dev/sda (bluestore)
creating block.db on '/dev/sdb'
'/dev/sdb' is smaller than requested size '1000083134873' bytes

Am I wrong? the pveceph docs says as follows:
You can directly choose the size for those with the -db_size and -wal_size paremeters respectively. If they are not given the following values (in order) will be used:
  • bluestore_block_{db,wal}_size from ceph configuration…
    • … database, section osd
    • … database, section global
    • … file, section osd
    • … file, section global
  • 10% (DB)/1% (WAL) of OSD size

my version is pve 6.0 with ceph nautilus, and sda and sdb infos:
root@pve-03:~# parted /dev/sda print free
Error: /dev/sda: unrecognised disk label
Model: ATA ST10000VN0004-1Z (scsi)
Disk /dev/sda: 10.0TB
Sector size (logical/physical): 512B/4096B
Partition Table: unknown
Disk Flags:
root@pve-03:~# parted /dev/sdb print free
Error: /dev/sdb: unrecognised disk label
Model: ATA INTEL SSDSC2KB48 (scsi)
Disk /dev/sdb: 480GB
Sector size (logical/physical): 512B/4096B
Partition Table: unknown
Disk Flags:
 
Last edited:

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!