Skip to content

Instantly share code, notes, and snippets.

@AnsonT
Last active December 2, 2023 22:06
Show Gist options
  • Save AnsonT/4c828f950ecc4d582543f21966f0eba4 to your computer and use it in GitHub Desktop.
Save AnsonT/4c828f950ecc4d582543f21966f0eba4 to your computer and use it in GitHub Desktop.
Create a Logical Volume in Proxmox for shared data between LXCs
# Create a LV-Thin volume named 'shared-data'
# Not visible in Proxmox gui
# Visibel with `lvs`
lvcreate -V 256G -n shared-data pve/data
# Create ext4 fs in the volume
mkfs.ext4 /dev/pve/shared-data
# Create directory mount point
mkdir /shared-data
# Add to fstab, and mount without reboot
echo '/dev/pve/shared-data /shared-data ext4 defaults 0 2' >> /etc/fstab
systemctl daemon-reload
mount -a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment