Back to Help and Info

Storage and Disks Commands

This section provides commands for managing and monitoring storage devices and disk partitions in Proxmox VE. Learn how to list disks, check storage usage, manage LVM volumes, and configure Proxmox storage.

Disk Information

CommandDescriptionAction
lsblkList block devices and partitions
fdisk -lList disks with detailed info
blkidShow UUID and filesystem type of block devices
ls -lh /dev/disk/by-id/List disk persistent identifiers
parted -lDetailed partition layout with GPT info

Storage Usage

CommandDescriptionAction
df -hShow disk usage by mount point
du -sh /pathShow size of a directory
mount | grep ^/devShow mounted storage devices
cat /proc/mountsShow all active mounts from the kernel

LVM Management

CommandDescriptionAction
pvdisplayDisplay physical volumes (LVM)
vgdisplayDisplay volume groups (LVM)
lvdisplayDisplay logical volumes (LVM)
pvsConcise output of physical volumes
vgsConcise output of volume groups
lvsConcise output of logical volumes

Proxmox Storage

CommandDescriptionAction
cat /etc/pve/storage.cfgShow Proxmox storage configuration
pvesm statusShow status of all storage pools
pvesm listList all available storage
pvesm list <storage>List content of specific storage
pvesm scan <storage>Scan storage for new content

Disk Actions

CommandDescriptionAction
qm importdisk <vmid> <image_path> <storage>Attach disk image to VM
qm set <vmid> -<bus><index> <disk_path>Assign physical disk to VM (passthrough mode)
qemu-img convert -O <format> <input> <output>Convert disk image format)

Usage Tips

  • Use lsblk for a quick overview of all block devices
  • For detailed partition information, fdisk -l provides comprehensive output
  • Replace <storage> with your storage name when using pvesm commands
  • LVM commands (pvs, vgs, lvs) provide more concise output than their display counterparts (pvdisplay, vgdisplay, lvdisplay)
  • When using du -sh /path, replace /path with the directory you want to check
  • Replace placeholders like <vmid>, <bus><index>, <disk>, <format>, <input> and <output> with the actual values you intend to use.