Install Proxmox 8.1.4 with max LVM Thin Storage and no Directory Storage

ionmang20

New Member
Apr 7, 2024
3
0
1
Hi, I'm new to proxmox and I would like to do a custom install, but not sure how to achieve this
I would like to install it on /dev/sda and beside that the OS needs, I would like the rest of the disk to be LVM Thin Storage without any Directory Storage or LVM Storage.
I would like to create the Directory Storage and LVM Storage on other disks
Here is my harddisk options at installation time
/dev/sdaext4
hdsize223.0 GB
swapsizeempty
maxrootempty
minfree0 GB
maxvz0 GB

after the installation this is what I see
code_language.shell:
root@pve:~# lsblk -f
NAME         FSTYPE      FSVER    LABEL UUID                                   FSAVAIL FSUSE% MOUNTPOINTS
sda                                                                                           
├─sda1                                                                                       
├─sda2       vfat        FAT32          781C-EFE0                              1010.3M     1% /boot/efi
└─sda3       LVM2_member LVM2 001       5vKpoe-XFNo-SfQ6-i6B7-pIcR-ONfW-ZGlAf8               
  ├─pve-swap swap        1              624a775e-a524-4a64-ac3c-cf6666f494cf                  [SWAP]
  └─pve-root ext4        1.0            fcb7e3fd-9ddf-42dd-844a-a2fdb72c62f2     58.3G     4% /
sdb                                                                                           
sdc

code_language.shell:
root@pve:~# fdisk /dev/sda

Welcome to fdisk (util-linux 2.38.1).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.

This disk is currently in use - repartitioning is probably a bad idea.
It's recommended to umount all file systems, and swapoff all swap
partitions on this disk.


Command (m for help): p

Disk /dev/sda: 223.57 GiB, 240057409536 bytes, 468862128 sectors
Disk model: KINGSTON SA400S3
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 2C09C919-B558-469F-B3FA-DB861C54DAEA

Device       Start       End   Sectors   Size Type
/dev/sda1       34      2047      2014  1007K BIOS boot
/dev/sda2     2048   2099199   2097152     1G EFI System
/dev/sda3  2099200 468862094 466762895 222.6G Linux LVM

Datacenter_Storage.png
pve_Disks.png
pve_LVM.png
pve_LVM-Thin.png
pve_Directory.png
local_pve.png

In Datacenter > Storage I see the local Directory Type storage, but this does not appear in pve > Disks > Directory
In local (pve) I see this is Directory Type and 69 GB in size, but I don't want to have the the Directory on this disk, but on /dev/sdc
Is there a way to install the OS and only LVM or LVM Thin on /dev/sda, so then I can create a DIrectory Storage on /dev/sda?
Can this be done at installation time or after?
I could not find a way to remove this local Directory Storage.
It is very possible I don't understand what proxmox needs or what options I have at installation time.
I would appreciate a clarification or some links where this is explained for beginners.
 
IIRC, you can set the root disk size in the installer, which should imply a smaller volume for root. You can also boot a live linux distro and resize your root disk in order to shrink it.
 
I'm ok with the root size of 58 GB, this is the OS.
I don't understand where is the rest of my disk.
I would like to create a LVM-Thin with the rest of the disk, but not sure how to go about this.
It could simply be my lack of knowledge in this area, but I would appreciate any help on this.
 
after more looking around and googling I found that I can create a logical volume in the pve volume group free space
code_language.shell:
root@pve:~# vgs
  VG  #PV #LV #SN Attr   VSize    VFree   
  pve   1   2   0 wz--n- <222.57g <148.93g
root@pve:~# lvs
  LV   VG  Attr       LSize  Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert
  root pve -wi-ao---- 65.64g                                                   
  swap pve -wi-ao----  8.00g
then I've created data logical volume
code_language.shell:
root@pve:~# lvcreate -n data -l 100%FREE pve
  Logical volume "data" created.
root@pve:~# lvs
  LV   VG  Attr       LSize    Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert
  data pve -wi-a----- <148.93g                                                   
  root pve -wi-ao----   65.64g                                                   
  swap pve -wi-ao----    8.00g                                                   
root@pve:~# vgs
  VG  #PV #LV #SN Attr   VSize    VFree
  pve   1   3   0 wz--n- <222.57g    0
now, I'm not sure how to add this data to proxmox storage
 

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!