Skip to content

Instantly share code, notes, and snippets.

@kstevenson722
Last active November 21, 2022 17:08
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kstevenson722/4b809566c65a4783ac1e020fedd247bb to your computer and use it in GitHub Desktop.
Save kstevenson722/4b809566c65a4783ac1e020fedd247bb to your computer and use it in GitHub Desktop.
How to add storage to Proxmox

This tutorial covers the following subjects:

  • How to partition and format a hard disk added to our baremetal host
  • possible use cases for the new partition

Identify the new disk

The lsblk command in linux will list block devices.

 lsblk

Alt

In this example we have sda and sdb. sda has Poxmox host os intalled. Plus the default virtual machine data storage. The picture shows that sdb already has some partions. Those will need to be cleared before Proxmox can use the disk.

Format and partion

We will use parted over fdisk today. Proxmox does not have parted installed by default. First we will need to update proxmox. It is a good idea to update Proxmox before you install any new software. install parted:

apt update
apt dist-upgrade
apt policy parted
apt install parted

Create new GPT partion table on the sdb disk.

parted /dev/sdb mklabel gpt

This will result in a blank disk:
Alt

Now we can switch back to the Proxmox UI and initialize the disk with gpt. Alt

Add the new storage to Proxmox as LVM, LVM-Thin or Directory. We are adding sdb as a directory. Alt

Pick the sdb disk, choose your filesytem type and Name the storage. Alt From here you can use the storage in Proxmox.

@kstevenson722
Copy link
Author

Initial commit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment