• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to secondary sidebar
OpenTechTips

OpenTechTips

Comprehensive IT Guides for Pros and Enthusiasts

MENUMENU
  • HOME
  • ALL TOPICS
    • Exchange
    • InfoSec
    • Linux
    • Networking
    • Scripting
      • PowerShell
    • SSL
    • Tools
    • Virtualization
    • Web
    • Windows
  • ABOUT
  • SUBSCRIBE
Home » How to Add Extra Storage to Proxmox

How to Add Extra Storage to Proxmox

March 23, 2022 - by Zsolt Agoston - last edited on March 24, 2022

Open Up a Shell on Proxmox

On the management portal of your Proxmox server ( usually it's http://[server IP]:8006/ ) right-click on the hostname and select Shell.

How to Add Extra Storage to Proxmox

Identify New Drives In The System

Check what new disks are added to your system with the following command:

lsblk
How to Add Extra Storage to Proxmox

On the example above drive sdb is our system drive where the Proxmox system is installed. We can see that by checking the mountpoints, this is the only drive that has our boot partition and root mounted.

That means we want the sda and sdc drives re-partitioned and mounted in the filesystem.

Re-partition the New Disks

To re-partition the disk marked as sda, run fdisk that is pre-installed on Proxmox:

fdisk /dev/sda

To see the existing partitions on the drive use command p and hit Enter.

How to Add Extra Storage to Proxmox

We see that there are three partitions on the disk, we delete them all to start with a fresh blank disk. Use the d command and hit Enter. Do this three times to remove all three partitions on the disk.

How to Add Extra Storage to Proxmox

Create a single new partition that uses the whole available disk space.

Use command o to create a fresh dos type partition table.
Next issue the n command and go with the default options: partition type is primary, and when asked about the first and last sector just hit Enter both times. This way the partition uses up the whole disk, and this is what we want.

How to Add Extra Storage to Proxmox

Use command p to check the configuration. If you're happy with what you see finish the job by writing the changes on the disk by typing w and hitting Enter.

How to Add Extra Storage to Proxmox

Lastly create an EXT4 filesystem on the new partition that we'll be able to mount in the filesystem.

mkfs.ext4 /dev/sda1
How to Add Extra Storage to Proxmox

If you have another disks repeat this whole partitioning process on those too.

Mount new drives to the filesystem

This point we have a new partition on each new disks ready for mounting: /dev/sda1 and /dev/sdc1.

How to Add Extra Storage to Proxmox

In the shell window create a new directory for each new disks where we'll be able to mount them.

We call them /mnt/Store1 and /mnt/Store2 respectively.

mkdir /mnt/Store1
mkdir /mnt/Store2
How to Add Extra Storage to Proxmox

Add the new mount points in the /etc/fstab file like so:

/dev/sda1 /mnt/Store1 ext4 defaults 0 0
/dev/sda1 /mnt/Store2 ext4 defaults 0 0
How to Add Extra Storage to Proxmox

We mount our two new disks in the Store1 and Store2 directories under /mnt, both have filesystem ext4, we use all the defaults mounting options, with no dumping and no error checking.

After saving the config use the following command to mount the drives. Alternatively you can restart proxmox, at boot time the contents of the /etc/fstab file are mounted automatically.

mount -a

With df -hT verify that they are loaded indeed:

How to Add Extra Storage to Proxmox

Add the storage space to Proxmox

For this step jump to the Proxmox portal again.

On the Datacenter tab select Storage and hit Add. Select the Directory type.

How to Add Extra Storage to Proxmox

The ID should be the name you can easily identify the store, we use the same name as the name of the directory itself.

Directory is the mount point, in our case it's /mnt/Store1 for the first store.

Content: select Disk Image and Container.

How to Add Extra Storage to Proxmox

Do the same for Store2.

You have the two new disks available for new virtual machines. Enjoy!

How to Add Extra Storage to Proxmox

Reader Interactions

Comments

  1. João Garcia says

    May 7, 2023 at 17:43

    Hi, can u help me with some questions? when i type “mkdir /mnt/Store1” and “mkdir /mnt/Store2” and i try to type “/dev/sda1 /mnt/Store1 ext4 defaults 0 0” i got “-bash: /dev/sda3: Permission denied” how do i solve it or how do i go to that page?

    Reply
    • TheConcierge25 says

      May 25, 2023 at 20:33

      you need to put those lines into your existing fstab file. It’s located in /etc

      Depending on your system/preference you could use:
      nano /etc/fstab
      or
      vi /etc/fstab

      to edit the file

      Reply
  2. TK says

    December 9, 2023 at 02:52

    Thanks for this. Really helped setting up my mini-PC for labbing, couldn’t figure out how to mount the spare disk.

    Reply

Comments Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Tools

Secondary Sidebar

CONTENTS

  • Open Up a Shell on Proxmox
  • Identify New Drives In The System
  • Re-partition the New Disks
  • Mount new drives to the filesystem
  • Add the storage space to Proxmox

  • Terms of Use
  • Disclaimer
  • Privacy Policy
Manage your privacy

To provide the best experiences, we and our partners use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us and our partners to process personal data such as browsing behavior or unique IDs on this site and show (non-) personalized ads. Not consenting or withdrawing consent, may adversely affect certain features and functions.

Click below to consent to the above or make granular choices. Your choices will be applied to this site only. You can change your settings at any time, including withdrawing your consent, by using the toggles on the Cookie Policy, or by clicking on the manage consent button at the bottom of the screen.

Functional Always active
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes. The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.
Statistics

Marketing

Features
Always active

Always active
Manage options Manage services Manage {vendor_count} vendors Read more about these purposes
Manage options
{title} {title} {title}
Manage your privacy
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
Functional Always active
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes. The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.
Statistics

Marketing

Features
Always active

Always active
Manage options Manage services Manage {vendor_count} vendors Read more about these purposes
Manage options
{title} {title} {title}