Creating a new thin volume for isos and backups within thin pool after installation?

ironfist

New Member
Jun 23, 2024
5
0
1
Hi all,

I am quite new to proxmox. I put my three questions as follows in bold.

I followed the standard installation on an 4 TB nvme without zfs, 100 GB root and rest is an empty thin pool.
Now I need to create an additional 1 TB directory/volume for isos (I have one 120 GB iso) and backups (say "bkp") on my nvme using the space which is actually assigned to my empty thin pool "data" (local-lvm).

root@nas:~# lvs -a -o +devices
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert Devices
data pve twi-a-tz-- <3.49t 0.00 0.19 data_tdata(0)
[data_tdata] pve Twi-ao---- <3.49t /dev/nvme0n1p3(26494)
[data_tmeta] pve ewi-ao---- <15.88g /dev/nvme0n1p3(941316)
[lvol0_pmspare] pve ewi------- <15.88g /dev/nvme0n1p3(945381)
root pve -wi-ao---- 96.00g /dev/nvme0n1p3(1918)
swap pve -wi-ao---- 7.49g /dev/nvme0n1p3(0)


At first, I wanted to delete the thin pool and recreate it, but I found a red hat documentation about thin storage and a syncbricks tutorial esp. for proxmox where they just create the new volume within the pool as a thin volume and format it with ext4 :). So there seems to be no need to recreate the thin pool with smaller size.


Does it work using the following commands? Is that best practise?


lvcreate -n bkp -V 1T pve/data

#Creates my new lv with name "bkp" in vg "pve".
#size 1 TB
#lv "bkp" will be derived from the already existing thin group lv "data" in "pve"

mkfs.ext4 /dev/pve/bkp

#Mount new Logical Volume (LV)
#Now mount the new Logical Volume to Proxmox Node so we will create a new directory
mkdir /media/bkp
echo '/dev/pve/bkp /media/bkp ext4 defaults,errors=remount-ro 0 2' >> /etc/fstab
mount -a
lvs -a


Afterwards I need to integrate the new volume in the Webfrontend, right? Otherwise one could use the pvesm cli to that, but I found no good tutorial/documentation for this yet.

If I want to share my new volume with other systems like a windows notebook, is that possible too or do I need to create a new ntfs thin volume for that purpose?



Cheerio
--
 
Why so much? Normally 16 GB is MORE than enough.
The 100 GB were automatically assigned by the proxmox installer.

Yes, I read it. But didn't find anything about my use case, how to create new volumes based on the thin pool (or how to work with it at all) which.
I need sufficient space to store e.g. an 120 GB iso file :-D

Do you think lvcreate -n bkp -V 1T pve/data for a new volume which I want to use as a directory is ok?

Thank you
 
another way was set root to 1 TB so the default "local" would have been ok for iso and backup.
don't forget to use proxmox backup server, even alongside PVE it's better than original backup, for its daily backup efficiency and its dedup which write only new data.
of course backup on same disk doesn't prevent disk failure...
 
  • Like
Reactions: Kingneutron

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!