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
Command
Description
Action
lsblk
List block devices and partitions
fdisk -l
List disks with detailed info
blkid
Show UUID and filesystem type of block devices
ls -lh /dev/disk/by-id/
List disk persistent identifiers
parted -l
Detailed partition layout with GPT info
Storage Usage
Command
Description
Action
df -h
Show disk usage by mount point
du -sh /path
Show size of a directory
mount | grep ^/dev
Show mounted storage devices
cat /proc/mounts
Show all active mounts from the kernel
LVM Management
Command
Description
Action
pvdisplay
Display physical volumes (LVM)
vgdisplay
Display volume groups (LVM)
lvdisplay
Display logical volumes (LVM)
pvs
Concise output of physical volumes
vgs
Concise output of volume groups
lvs
Concise output of logical volumes
Proxmox Storage
Command
Description
Action
cat /etc/pve/storage.cfg
Show Proxmox storage configuration
pvesm status
Show status of all storage pools
pvesm list
List all available storage
pvesm list <storage>
List content of specific storage
pvesm scan <storage>
Scan storage for new content
Disk Actions
Command
Description
Action
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.