Customer SupportShop

Expand shared LVM storage on an iSCSI SAN in Proxmox VE

Expand an existing SAN LUN and make the extra capacity available to Proxmox shared LVM storage, with checks across every node.

Applies to: Existing Proxmox VE shared LVM storage on an iSCSI SAN, using DM Multipath and a physical volume on the whole multipath LUN.

Before you start

  • Have a current backup and confirm that your SAN supports online expansion of this LUN. Check the array has sufficient capacity.
  • Record the LUN WWID, current size, existing volume-group name and the multipath map on every node. Confirm all expected paths are healthy.
  • Run the commands in a root shell on the Proxmox nodes. Repeat steps 2–5 on every node using the LUN; run step 6 once on one selected node, after all nodes show the new size.
  • This procedure grows an existing whole-LUN physical volume. Partitioned PVs, LVM-thin pools and changes to individual VM disks need their own procedure.

Use the following output to identify the storage. Replace the three example values with your actual identifiers and keep the variables in the same root shell for the later commands. A friendly map name can differ between nodes; confirm it belongs to the same WWID.

multipath -ll
pvs -o pv_name,vg_name,pv_size,pv_free
vgs -o vg_name,vg_size,vg_free

# Replace these values on each node before continuing.
LUN_WWID='REPLACE_WITH_YOUR_LUN_WWID'
MPATH_MAP='REPLACE_WITH_MAP_NAME_ON_THIS_NODE'
VG='REPLACE_WITH_EXISTING_VOLUME_GROUP'
PV="/dev/mapper/$MPATH_MAP"

Procedure

1. Increase the LUN on the SAN

Expand the existing LUN using the SAN management interface. The exact steps differ between SAN vendors and models. Keep the existing LUN identity and presentation to the Proxmox nodes, and wait for the array to complete the expansion before continuing.

2. Rescan iSCSI on every node

Rescan the active iSCSI sessions so each node refreshes its view of the presented storage. This does not log out the sessions.

iscsiadm -m session --rescan

3. Rescan all SCSI disks on every node

Refresh the size of the SCSI block devices. This loop covers the node’s SCSI disks, including its iSCSI path devices, and skips entries without a rescan control. It does not rescan NVMe namespaces.

for disk in /sys/class/block/sd*; do
    if [ -e "$disk/device/rescan" ]; then
        printf 'Rescanning %s\n' "${disk##*/}"
        echo 1 > "$disk/device/rescan"
    fi
done
udevadm settle
lsblk -b -s -o NAME,SIZE,TYPE "$PV"

Check that every underlying path for the LUN now reports the enlarged size. If a path still shows the old size or an expected path has failed, resolve that before proceeding. At this point the multipath map itself may still show the old size.

4. Refresh multipath on every node

Reload the maps and resize the map for this LUN. Some configurations grow the map automatically after all paths have changed size; the explicit resize handles a map that has not yet grown.

multipath -r
multipathd resize map "$MPATH_MAP"
udevadm settle

5. Confirm multipath shows the new size on every node

Check the correct WWID and its path health, then read the size in bytes from the multipath mapper device. Compare this with the expanded LUN size, accounting for any decimal/binary unit difference in the SAN interface.

multipath -ll "$LUN_WWID"
blockdev --getsize64 "$PV"

Continue only when every node using the shared storage sees the enlarged map and all expected paths are available.

6. Increase the LVM physical volume once

On one selected node, save the volume-group metadata and grow the existing PV to the new device size. The added extents become free space in the existing volume group. Do not run concurrent PV resize operations from several nodes.

vgcfgbackup "$VG"
pvresize "$PV"
pvs "$PV" -o pv_name,vg_name,pv_size,pv_free
vgs "$VG" -o vg_name,vg_size,vg_free

Check the result

On each node, check the PV, volume group and Proxmox storage status:

pvs "$PV" -o pv_name,vg_name,pv_size,pv_free
vgs "$VG" -o vg_name,vg_size,vg_free
pvesm status
  • Confirm the larger PV and the expected increase in volume-group free space on every node.
  • Check the storage in the Proxmox interface and confirm the existing workloads and paths remain healthy.
  • The extra space is available to the storage pool. Existing VM disks remain their current size; expand them separately if required.

For this existing shared LVM pool, pvresize is the growth operation. Creating another PV, adding a different LUN or growing a file system are separate tasks.

Related guide

Schedule automatic iSCSI rescans in Proxmox VE