[SOLVED] Ceph 18.2.2 - How to partition disks

zeuxprox

Renowned Member
Dec 10, 2014
92
5
73
Hello,

I have a Cluster of 6 Nodes with 4 3.2 TB NVMe Disks for each Node. Now I want to add a Node but I have 4 6.4 NVMe Disks. Now I would like to keep the Cluster balanced and therefore I would like to use only 3.2 TB on the disks of the new node. The question is: how should I partition 6.4 TB Disks to only use 3.2 TB?

Thank you
 
Just add 2 drives in two OSD instead of all 4: space will be balanced, but drives will have to work twice compared to the 4 drives in the other hosts. Shouldn't be critical unless your storage is under heavy load.

If you still want to partition new drives:

Code:
parted -s -a optimal /dev/nvmeXn1 -- mklabel gpt mkpart primary 0% 50% mkpart primary 50% 100%

Create the OSD from CLI:

Code:
ceph-volume lvm create --bluestore --data /dev/nvmeXn1p1 [--crush-device-class DEVICE_CLASS
 
  • Like
Reactions: zeuxprox
Just add 2 drives in two OSD instead of all 4: space will be balanced, but drives will have to work twice compared to the 4 drives in the other hosts. Shouldn't be critical unless your storage is under heavy load.

If you still want to partition new drives:

Code:
parted -s -a optimal /dev/nvmeXn1 -- mklabel gpt mkpart primary 0% 50% mkpart primary 50% 100%

Create the OSD from CLI:

Code:
ceph-volume lvm create --bluestore --data /dev/nvmeXn1p1 [--crush-device-class DEVICE_CLASS
Thank you!
 

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!