Table of contents
Open Table of contents
Add extra local storage in Proxmox VE
Expanding Storage in Proxmox: A Step-by-Step Guide
When you’re running a virtualized environment on Proxmox, eventually you’ll find yourself needing more storage. Whether it’s for new VMs, containers, or just data storage, expanding your available space is a critical task. This guide will walk you through the process of identifying your storage devices, preparing them for use, and adding them to Proxmox.
Identifying and Preparing Storage Devices
The first step in expanding your storage is to identify the storage devices attached to your Proxmox server. You can do this by running:
fdisk -l
This command lists all the disk devices available on your system. Once you’ve identified the disks you want to use for additional storage, the next step is to partition them. We’ll use cfdisk
, a disk partitioning tool, for this purpose:
cfdisk /dev/sdb
cfdisk /dev/sdc
cfdisk /dev/sdd
With your disks partitioned, the next step is to create physical volumes (PVs) on these partitions. This is done using the pvcreate
command:
pvcreate /dev/sdb1
pvcreate /dev/sdc1
pvcreate /dev/sdd1
Creating Volume Groups
After preparing the physical volumes, you’ll need to create volume groups (VGs). Volume groups are a pool of storage that can be allocated to virtual machines and containers. Create your volume groups with the vgcreate
command:
vgcreate SSD1 /dev/sdb1
vgcreate SSD2 /dev/sdc1
vgcreate SSD3 /dev/sdd1
Adding Storage to Proxmox via the Web Interface
With the physical volumes and volume groups ready, the next step is to add this storage to Proxmox. This is done through the Proxmox web interface.
- In the Proxmox web interface, navigate to the Datacenter directory.
- Click on the Storage tab.
- Click Add and select LVM Group.
- For ID Name, you can use, for example,
HDD
for hard disk drives orSSD
for solid-state drives, depending on your setup. - For Base Storage, select Existing Volume Groups.
- Under Volume Group, select the volume group you created, such as
HDD1
,SSD1
, etc. - Ensure Enabled is checked.
- Adjust the other options according to your specific needs and preferences.