Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Disk Partition as Proxmox Storage: What You Need to Know

· 5 min read · Home Tech

In this article
  1. Background: Proxmox Storage Architecture
  2. How It Works: Configuring a Partition as Proxmox Storage
  3. Common Problems and Troubleshooting
  4. Safety and Best Practices
  5. Alternatives to Partition-Based Storage
  6. Comparisons: Partition vs. Other Storage Types
  7. Frequently Asked Questions

Yes, a disk partition can serve as storage for Proxmox VE (Virtual Environment), but it must be properly configured and is typically used as a holder for virtual machine or container data rather than hosting the Proxmox operating system itself. While the root OS should ideally reside on its own dedicated partition or disk, additional partitions can be formatted and mounted as storage directories for VM disk images, ISO files, backups, or container templates.

Background: Proxmox Storage Architecture

Proxmox VE is a powerful open-source server virtualization platform that combines KVM (for virtual machines) and LXC (for containers) with a web-based management interface. One of its core features is flexible storage management, allowing administrators to use various backend types for storing VM and container data.

Proxmox does not require dedicated physical disks—storage can come from partitions, logical volumes, network shares (NFS, CIFS), or even clustered file systems like Ceph. When using a local disk partition, it is typically formatted with a standard Linux file system such as ext4 or xfs and then mounted under /var/lib/vz or a subdirectory like /var/lib/vz/storage/partition1. Once mounted, it can be registered in Proxmox’s web interface as a directory-based storage type.

How It Works: Configuring a Partition as Proxmox Storage

Using a partition as Proxmox storage involves several steps: partitioning the disk, formatting it, mounting it persistently, and then adding it to Proxmox. Here’s how:

  1. Identify the disk: Use lsblk or fdisk -l to locate the target disk (e.g., /dev/sdb).
  2. Create a partition: Use fdisk, parted, or gdisk to create a partition (e.g., /dev/sdb1).
  3. Format the partition: Run mkfs.ext4 /dev/sdb1 (or mkfs.xfs for XFS).
  4. Create a mount point: mkdir -p /var/lib/vz/storage/partition1.
  5. Mount the partition: mount /dev/sdb1 /var/lib/vz/storage/partition1.
  6. Update /etc/fstab: Add an entry to ensure the partition mounts at boot:

Example fstab entry:

/dev/sdb1  /var/lib/vz/storage/partition1  ext4  defaults,relatime  0  2

After mounting, log into the Proxmox web interface, go to Datacenter > Storage > Add > Directory, and enter the following:

  • ID: partition1
  • Directory: /var/lib/vz/storage/partition1
  • Content types: Select what you want to store (e.g., Disk images, ISO images, Containers, Backups)

Once added, this partition appears as a storage option when creating or moving VMs and containers.

Common Problems and Troubleshooting

While using a partition as storage is straightforward, several issues can arise:

  • Mount fails at boot: If the partition isn’t mounted by the time Proxmox starts, VMs relying on it may fail to boot. Ensure the fstab entry is correct and test with mount -a.
  • Wrong file system permissions: The /var/lib/vz directory and its subdirectories must be writable by the Proxmox services. Run chown -R root:root /var/lib/vz/storage/partition1 and chmod -R 755 if needed.
  • Partition not detected: If the disk uses GPT and has no partition table entry, or if the device name changes (e.g., sdb becomes sdc), use UUIDs in fstab for reliability. Find the UUID with blkid /dev/sdb1.
  • Insufficient space: Monitor usage with df -h. A full partition can cause VM operations to hang or fail.
  • File system corruption: Use fsck to check and repair. For critical systems, consider using RAID or backups to reduce risk.

Safety and Best Practices

Using a partition as Proxmox storage is safe when done correctly, but certain precautions should be followed:

  • Separate OS and data: Never store the Proxmox OS and VM data on the same partition. This minimizes risk during system updates or failures.
  • Use UUIDs in fstab: Device names like /dev/sdb1 can change after hardware changes. UUIDs are persistent and more reliable.
  • Regular backups: Use Proxmox’s built-in backup tools to schedule regular backups to another storage location.
  • Monitor health: Use smartctl from the smartmontools package to monitor disk health and predict failures.
  • Avoid mixing storage types unnecessarily: While you can have multiple partitions, too many small ones complicate management. Consolidate where practical.

Alternatives to Partition-Based Storage

While partitions work, other storage options may be more suitable depending on your needs:

  • LVM (Logical Volume Manager): Offers flexibility in resizing and snapshotting. Proxmox supports LVM-thin for efficient thin-provisioned storage.
  • ZFS: A powerful file system and volume manager with built-in compression, snapshots, checksumming, and RAID-Z. Proxmox has excellent ZFS support and it’s ideal for high-reliability environments.
  • NFS/CIFS: Network-based storage allows sharing across multiple Proxmox nodes, useful in clustered setups.
  • Ceph: A distributed storage system that provides block, file, and object storage. Best for large-scale, high-availability deployments.
  • Local directories on separate disks: Simpler than partitioning—just connect a whole disk and mount it directly.

Each alternative has trade-offs in complexity, performance, and scalability. For a home lab or small deployment, a partition or simple directory may suffice. For enterprise use, ZFS or Ceph are often preferred.

Comparisons: Partition vs. Other Storage Types

Here’s how partition-based storage stacks up against other common options:

Storage TypeProsCons
Partition (ext4/xfs)Simple, fast, widely supportedNo built-in snapshots, limited scalability
LVMResizable, supports snapshotsMore complex, no checksumming
ZFSExcellent data integrity, snapshots, compressionHigh RAM usage, complex setup
NFSShared storage, easy to back upNetwork-dependent, latency
CephHighly scalable, fault-tolerantComplex to deploy and maintain

For many users, a partition with ext4 offers the best balance of simplicity and reliability. However, if you need advanced features like snapshots or redundancy, consider upgrading to ZFS or LVM.

Frequently Asked Questions

Can I use the same disk for Proxmox OS and VM storage?
Yes, but not recommended. The OS should be on its own partition (e.g., / and /var/lib/vz on separate partitions) to prevent VM activity from filling the root filesystem and crashing the system.

Can I resize a partition used by Proxmox?
Yes, but only if the file system supports it. First unmount the partition, resize the partition with parted, then resize the file system (e.g., resize2fs for ext4). Ensure backups exist before attempting this.

Does Proxmox support NTFS or FAT32 partitions?
No. Proxmox requires Linux-native file systems like ext4 or xfs. NTFS and FAT32 lack proper permission and ownership support needed for VM operations.

Can I move VMs between different storage types?
Yes. Proxmox allows live migration of VM disks between storage types via the web interface. Select the VM, go to Hardware, click the disk, then “Move” and choose the destination.

Is it safe to use an external USB drive as partitioned storage?
Possible, but not recommended for production. USB drives are slower and less reliable than internal SATA or NVMe drives. Also, power loss can corrupt data.

What happens if the partition becomes full?
VMs may freeze, fail to start, or crash during disk writes. Proxmox logs will show disk space errors. Monitor with df -h and set up alerts using external monitoring tools.