Sebagai contoh, disini disk baru terbaca sebagai sdb dan nanti kita akan membuat volume group bernama LVM2

root@Proxmox1 ~ # fdisk /dev/sdb

Welcome to fdisk (util-linux 2.33.1).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.


Command (m for help): g
Created a new GPT disklabel (GUID: A1138AEB-E117-7844-9DA1-0F2106FEA7E7).

Command (m for help): n
Partition number (1-128, default 1):
First sector (2048-937703054, default 2048):
Last sector, +/-sectors or +/-size{K,M,G,T,P} (2048-937703054, default 937703054                                                                                                                                                             ):

Created a new partition 1 of type 'Linux filesystem' and of size 447.1 GiB.
Partition #1 contains a LVM2_member signature.

Do you want to remove the signature? [Y]es/[N]o: y

The signature will be removed by a write command.

Command (m for help): t
Selected partition 1
Partition type (type L to list all types):
Partition type (type L to list all types): 8e
Type of partition 1 is unchanged: Linux filesystem.

Command (m for help): p
Disk /dev/sdb: 447.1 GiB, 480103981056 bytes, 937703088 sectors
Disk model: SAMSUNG MZ7LM480
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: A1138AEB-E117-7844-9DA1-0F2106FEA7E7

Device     Start       End   Sectors   Size Type
/dev/sdb1   2048 937703054 937701007 447.1G Linux filesystem

Filesystem/RAID signature on partition 1 will be wiped.

Command (m for help): w
The partition table has been altered.
Syncing disks.

root@Proxmox1 ~ # pvcreate /dev/sdb1
  Can't open /dev/sdb1 exclusively.  Mounted filesystem?
  Can't open /dev/sdb1 exclusively.  Mounted filesystem?
root@Proxmox1 ~ # dmsetup remove_all
root@Proxmox1 ~ # pvcreate /dev/sdb1
  Physical volume "/dev/sdb1" successfully created.
root@Proxmox1 ~ # vgcreate LVM2 /dev/sdb1
  Volume group "LVM2" successfully created

Sekarang kita bisa menambahkan di Datacenter -> Storage baru dengan type LVM di web interface Proxmox

Kalau kalian ingin membuat LVM-thin

root@Proxmox1 ~ # lvcreate --type thin-pool -L 100G -n data LVM2
Logical volume "data" created.
root@Proxmox1 ~ # lvextend -l +100%FREE LVM2/data
Size of logical volume LVM1/data changed from 100.00 GiB (25600 extents) to 447.1G GiB (61049 extents).
Logical volume ssd2/data successfully resized.