[SOLVED] Ceph 18.2.2 - How to partition disks

zeuxprox

Renowned Member
Dec 10, 2014
96
6
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!