I wanted to add a disk, and primarily use it as a Thinpool, and I also wanted some directory storage for images and templates on the same disk.
The guide here shows how to do it: https://pve.proxmox.com/pve-docs/chapter-sysadmin.html#chapter_lvm
However its not as simple as copy and paste. You have to read between the lines, and understand what your doing.
Here is my copy/paste to setup a New 600gb /dev/sdb drive:
The guide here shows how to do it: https://pve.proxmox.com/pve-docs/chapter-sysadmin.html#chapter_lvm
However its not as simple as copy and paste. You have to read between the lines, and understand what your doing.
Here is my copy/paste to setup a New 600gb /dev/sdb drive:
Code:
#wipe the drive:
parted /dev/sdb mklabel gpt
*or*
wipefs -a /dev/sdb
*or*
dd if=/dev/zero bs=512 count=1 of=/dev/sdb status=progress
#create an sdb1:
lvs -a
sgdisk -N 1 /dev/sdb
#create Physical Volume and Volume Group:
pvcreate --metadatasize 1024M -y -ff /dev/sdb1
vgcreate --metadatasize 1024M proxvg /dev/sdb1
#create lvm thinpool:
lvcreate -l 100%FREE --poolmetadatasize 1024M --chunksize 256 -T -n proxthin proxvg
lvcreate -n proxvz -V 200G proxvg/proxthin
#create ext4 filesystem:
mkfs.ext4 /dev/proxvg/proxvz
#mount the LV:
mkdir /media/vz
echo '/dev/proxvg/proxvz /media/vz ext4 defaults,errors=remount-ro 0 2' >> /etc/fstab
mount -a
lvs -a
PROXMOX WEB UI:
==========================
Datacenter->Storage->Add->Directory
id:vz
directory:/media/vz
Datacenter->Storage->Add->LVM-Thin
id:proxthin
Volume group:proxvg
Thin Pool:proxthin
Last edited: