extend /data thin-provisioned

Nov 18, 2022
1
0
1
I have a machine with 7 drives. Proxmox is installed on the first. I would like to use the others for storage of VM disks, ISO images, etc.

From lsblk:
root@corei5:~# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 465.8G 0 disk
sdb 8:16 0 232.9G 0 disk
sdc 8:32 0 465.8G 0 disk
sdd 8:48 0 93.2G 0 disk
sde 8:64 0 232.9G 0 disk
sdf 8:80 0 119.2G 0 disk
sdg 8:96 1 111.8G 0 disk
sr0 11:0 1 986.1M 0 rom
nvme0n1 259:0 0 238.5G 0 disk
├─nvme0n1p1 259:1 0 1007K 0 part
├─nvme0n1p2 259:2 0 512M 0 part
└─nvme0n1p3 259:3 0 238G 0 part
├─pve-swap 253:0 0 8G 0 lvm [SWAP]
├─pve-root 253:1 0 59.3G 0 lvm /
├─pve-data_tmeta 253:2 0 1.6G 0 lvm
│ └─pve-data 253:4 0 151.6G 0 lvm
└─pve-data_tdata 253:3 0 151.6G 0 lvm
└─pve-data 253:4 0 151.6G 0 lvm

What is the right way to "extend" the "data" storage with these disks.

I can do a standard logical volume and mount it, then create a "Directory" storage. Alas, it seems this can only store one type of data.

Is there some sort of "advance installation" or "storage configuration" document I should be reading?
 
There are always a few "right" ways. The one that is right for you depends on your exact requirements and constraints.
Do you need data protection?
Do you want one big pool or a few smaller ones?
Are you ok with storing VM disks/images as raw/qcow files vs having them as block devices?

You already have an existing LVM data pool most likely. However, I would not recommend extending that nvme pool with HDDs.

Your course of action depends on the data protection layer you require. Looks like you could create two normal R1s and one "degraded" (different size disks force matched).

If you dont care about disk protection then you could create a new LVM pool, slice a portion of it for a filesystem of your choice for ISOs, use the rest for VMs. Or just create a single slice of the same size as pool, format and mount it.

Many different options, perhaps you should just experiment and see what you like best.


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
 

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!