Using my Thinpool for ISOs.

KaiTechUnleashed

New Member
Nov 29, 2023
1
0
1
So currently, I have a Thin-pool that i use to store my VM images, and right now my small boot drive doesn't have enough space for more ISO files. What I want to do is to use part of my SSD-Thin thinpool for isos. Say 64 gb. I have looked at other threads, but I am kindof a proxmox/linux noob, so help would be appreciated.

P.S. I would like to do it for both nodes but I think I can figure it out on my own. (LOL i know one node is named node-1 and the other node-b. If anyone knows how to change it to a and b without losing connection between nodes that would be nice too. ;))

Screenshot 2024-01-06 at 5.49.59 PM.pngScreenshot 2024-01-06 at 5.52.09 PM.pngScreenshot 2024-01-06 at 5.52.27 PM.pngScreenshot 2024-01-06 at 5.52.35 PM.png
 
So there is no way to do it from the Web Interface?

That post is almost the same question, and the answer it to follow the wiki: https://pve.proxmox.com/wiki/Logical_Volume_Manager_(LVM)

I wonder if wiki is missing a step to create the Pool, becase when I do them (for /dev/sda in my case), I get:
"Pool data not found in Volume group data."


Code:
# sgdisk -N 1 /dev/sda
Creating new GPT entries in memory.
The operation has completed successfully.

# pvcreate --metadatasize 250k -y -ff /dev/sda1
  Physical volume "/dev/sda1" successfully created.
 
# vgcreate data /dev/sda1
  Volume group "data" successfully created

# lvcreate -n vz -V 40G data/data
  Pool data not found in Volume group data.
 
# vgs
  VG   #PV #LV #SN Attr   VSize    VFree
  data   1   0   0 wz--n- <223.57g <223.57g
  pve    1   2   0 wz--n-   12.91g    4.00m
 
# lvs
  LV   VG  Attr       LSize   Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert
  root pve -wi-ao---- <11.91g
  swap pve -wi-ao----   1.00g
 
Last edited:
What I did was to first create two LVM thin pools (https://pve.proxmox.com/wiki/Storage:_LVM_Thin):
Code:
# lvcreate -L 40G -n local data
  Logical volume "local" created.
 
# lvcreate -L 182G -n local-lvm data
  Logical volume "local-lvm" created.

# lvconvert --type thin-pool data/local
  Thin pool volume with chunk size 64.00 KiB can address at most <15.88 TiB of data.
  WARNING: Converting data/local to thin pool's data volume with metadata wiping.
  THIS WILL DESTROY CONTENT OF LOGICAL VOLUME (filesystem etc.)
Do you really want to convert data/local? [y/n]: y
  Converted data/local to thin pool.

# lvcreate -n vz -V 40G -T data/local
  Logical volume "vz" created.

# mkfs.ext4 /dev/data/vz

# rm -rf /var/lib/vz/*

#echo '/dev/data/vz /var/lib/vz ext4 defaults 0 2' >> /etc/fstab

# mount -a
mount: (hint) your fstab has been modified, but systemd still uses
       the old version; use 'systemctl daemon-reload' to reload.

# systemctl daemon-reload

# mount -a

Now, the "local" storage uses the newly created 40G logical volume.

I find this to be very convoluted because while the web interface allows you to thin-provision a new disk, it doesn't let you use it for ISOs.
 

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!