Skip to content

Instantly share code, notes, and snippets.

@yohangdev
Last active May 15, 2017 02:57
Show Gist options
  • Select an option

  • Save yohangdev/bacc56a3197b84f03a985a85ddd1fcdb to your computer and use it in GitHub Desktop.

Select an option

Save yohangdev/bacc56a3197b84f03a985a85ddd1fcdb to your computer and use it in GitHub Desktop.
Setup Proxmox with LVM
# https://pve.proxmox.com/wiki/Extending_Local_Container_Storage
fdisk -l
fdisk /dev/sdb
write new partition dos (default value)
create new partition
change partition as LVM (8e)
# http://www.thegeekstuff.com/2010/08/how-to-create-lvm/
apt-get install lvm2
pvcreate /dev/sdb1 /dev/sdc1
pvdisplay
vgcreate pve_volume /dev/sdb1 /dev/sdc1
vgdisplay
lvcreate -L 100G -n pve_logical pve_volume # -l 100%FREE
lvdisplay
# https://forum.online.net/index.php?/topic/4567-howto-setup-new-proxmox-installation-with-lvm-and-live-snapshot-backup-capabillities/
mkfs.ext4 -m 0 /dev/pve_volume/pve_logical
mkdir /var/lib/vz
vim /etc/fstab
/dev/pve_volume/pve_logical /var/lib/vz ext4 defaults 0 0
mount -a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment