Proxmox Storage Guide (2024)

Proxmox

Table Of Contents

  1. Proxmox Default Storage Setup
  2. Storage Configurations
    1. View Existing Storage Configurations
    2. Config File
  3. LVM
    1. Volume Groups
      1. View Volume Groups
      2. Volume Groups Are "Safe"
    2. Thin Pools
      1. View Thin Pools
      2. Thin Pools Carry Danger!
    3. LVM Snapshots
  4. View Disks
  5. View Guest Storage

Related Posts

  • Proxmox - Move Disk

Proxmox Default Storage Setup

Proxmox's default setup is to create an LVM volume group called pve. It will then create a thin-pool called data on that volume group, as well as a normal ("thick") logical volume called root on there for your root filesystem (/).A storage configuration called local-lvm is then configured to use the data thin pool, which your KVM guests will be set to utilize.

Since the guests are making use of a thin pool, rather than a traditional "thick" logical volume, the guest's can be snapshotted. However, the thin pool can run out of storage and you could lose all of them.This also means that the root filesystem is quite small, and whilst some space will be available on the volume group for the possible expansion of the root filesystem's LVM, this will require the system to be taken offline and booted with something like a rescue disk, so that you can perform the resize of the filesystem (not the LVM). Some people decide to completely remove the thin pool from the root disk, and expand the root filesystem to take up all of the space. This would still allow you be able to use it for guests if you wished, through setting up directory storage configurations that store qcow2/raw guest disk images.

Storage Configurations

Whenever looking at a virtual machine and seeing where it's disk is located, you will always be shown the storage configuration that it is using, rather than something like the name of a disk.Likewise, when you configure a new VM, or create a backup routine, you sill need to specify the storage configuration, rather than a disk.

View Existing Storage Configurations

You can view and create your storage configurations by going to the Datacenter (1), and clicking on Storage (2). Here you will see a table of information about all of your storage configurations (3).

Proxmox Storage Guide (1)

Config File

If you prefer to use the config file, or need to edit storage through the CLI for whatever reason, all storage configuration is held within a single configuration file at: /etc/pve/storage.cfg. More information about the configuration file and CLI commands can be viewed at Proxmox Wiki - Storage.

LVM

Volume Groups

Volume groups are a collection of physical volumes that can be used to hold logical volumes. This is quite nice, because it actually allows one to attach additional disks, and grow to make use of them, without any downtime. Additionally, if one runs the relevant set of commands (LVM cheatsheet), one can essentially move the volume group from one disk to another. This is useful if you only have so many drive slots, and you want to expand by just utilizing a larger disk, rather than more disks.

View Volume Groups

To view the LVM volume groups on your Proxmox server, navigate to

Proxmox Storage Guide (2)

I think the user interface is confusing by having the navigation pane simply refer to this as "LVM" as it only really shows you information about the volume groups, and what disks that make up the volume groups.It shows you nothing about the underlying logical volumes, other than telling you how many logical volumes each volume group contains.

Volume Groups Are "Safe"

Unlike thin-pools and filesystems, volume groups will never unexpectedly run out of space due to things "growing". This is because when one creates a logical volume (even a thin-pool), its size is always defined at the point of creation and willonly be created if it fits within the volume group. It is only the LVM thin pools, and the guest filesystems that can unexpectedly run out of space as more files/data are written.

Thin Pools

Proxmox likes to make use of LVM thin provisioning by default as it allows you make efficient use of your storage drives through over-provisioning.For example, one might have a single 500 GB SSD in a server. One might then provision 100 guests, each with 20GB filesystem. This would be a total allocation of 2,000 GB when you only have 500 GB. With thin-provisioning, the server would be able to do this, because each of the guests is only actually utilizing a few GB of storage, with most of the filesystem being empty. However, this carries danger as you might imagine.

View Thin Pools

To check your LVM thin pool(s) in Proxmox, select the server in question before selecting LVM-Thin and you will see a table of thin pools.

Proxmox Storage Guide (3)

Thin Pools Carry Danger!

Thin pools are dangerous because they are a set allocated size, and are usually over-allocated to the guests, but this is also the main reason why they are useful.This means as the guests write more and more data, the thin-pool can run out of space, causing issues for all of the related guests. I have never experienced/tested what happens when this happens, but the best-case scenario would be that the underlying guests fail to write as the disks become read-only. The worst case would be that all the data gets dropped/corrupted and you lose everything. Thus, keep monitoring your thin-pools and take action whenever they reach 80%.

LVM Snapshots

Due to how LVM snapshots grow in size (refer here), Proxmox only supports snapshots on guests that make use of thin poolsand not those that use "thick" logical volumes. This allows the snapshot to not be a defined size at the point of creation, and grow as needs require.

When a snapshot is created on a thinly-provisioned guest, if you choose to save the memory state, two logical volumes are created. One for the memory state and one for the underlying filesystem as mentioned here.

View Disks

Proxmox provides the ability to view the disks/partitions attached to the server, with lots of useful information. This area is mostly useful for monitoring the disk's health by looking at the S.M.A.R.T. status, as well asthe Wearout level which is particularly for SSDs that can only be written to so many times. This is a good area to check every now and then to make sure your disk drives aren't about to fail.

To view the disks, select the server (1), and select Disks (2). You will then see a table of information about your disks (3).

Proxmox Storage Guide (4)

This area is not for monitoring disk utilization. For that, one needs to look at the volume groups, thin pools, and run filseystem commands.

View Guest Storage

To view a guest's storage location, select the guest (1), click on Hardware (2), and look at the Hard Disk table row (3), and you will see the name of the storage configuration that the disk utilizes.

Proxmox Storage Guide (5)

Unfortunately, you will have to work backwards from the Storage configuration to find out which physical disk, or volume group this storage configuration actually utilizes.

Last updated: 24th March 2023
First published: 23rd March 2023

Proxmox Storage Guide (2024)
Top Articles
Rehoming Fee In Spanish
TOEFL Score Range: What Does It Mean For You? • PrepScholar TOEFL
Stretchmark Camouflage Highland Park
Room Background For Zepeto
Eric Rohan Justin Obituary
Mohawkind Docagent
Cvs Devoted Catalog
Corporate Homepage | Publix Super Markets
Florida (FL) Powerball - Winning Numbers & Results
Whitley County Ky Mugshots Busted
The Rise of Breckie Hill: How She Became a Social Media Star | Entertainment
Shooting Games Multiplayer Unblocked
Gma Deals And Steals Today 2022
DoorDash, Inc. (DASH) Stock Price, Quote & News - Stock Analysis
Mbta Commuter Rail Lowell Line Schedule
State HOF Adds 25 More Players
Gdlauncher Downloading Game Files Loop
Vanessawest.tripod.com Bundy
Amih Stocktwits
Drift Boss 911
Yisd Home Access Center
John Chiv Words Worth
Red8 Data Entry Job
Jeff Nippard Push Pull Program Pdf
Mals Crazy Crab
Synergy Grand Rapids Public Schools
Craigslist Brandon Vt
Bfsfcu Truecar
4.231 Rounded To The Nearest Hundred
Roseann Marie Messina · 15800 Detroit Ave, Suite D, Lakewood, OH 44107-3748 · Lay Midwife
Mississippi Craigslist
Publix Christmas Dinner 2022
Bj's Tires Near Me
Craigslistodessa
Earthy Fuel Crossword
Att U Verse Outage Map
Colorado Parks And Wildlife Reissue List
Western Gold Gateway
Waffle House Gift Card Cvs
Columbia Ms Buy Sell Trade
Cookie Clicker The Advanced Method
Tsbarbiespanishxxl
The All-New MyUMobile App - Support | U Mobile
Cpmc Mission Bernal Campus & Orthopedic Institute Photos
Updates on removal of DePaul encampment | Press Releases | News | Newsroom
Craigslist Com St Cloud Mn
60 Days From May 31
Ehc Workspace Login
Best Haircut Shop Near Me
Keci News
Aznchikz
Jesus Calling Oct 6
Latest Posts
Article information

Author: Patricia Veum II

Last Updated:

Views: 6254

Rating: 4.3 / 5 (64 voted)

Reviews: 87% of readers found this page helpful

Author information

Name: Patricia Veum II

Birthday: 1994-12-16

Address: 2064 Little Summit, Goldieton, MS 97651-0862

Phone: +6873952696715

Job: Principal Officer

Hobby: Rafting, Cabaret, Candle making, Jigsaw puzzles, Inline skating, Magic, Graffiti

Introduction: My name is Patricia Veum II, I am a vast, combative, smiling, famous, inexpensive, zealous, sparkling person who loves writing and wants to share my knowledge and understanding with you.