How to add a second drive to a ProxMox server using LVM
Creating, formatting, and mounting a file system that uses LVM in Proxmox or Linux.
*If you have any issue with the terms use it this post see this link below.**
On the CLI find the disk with fdisk -l
Create physical volume
Physical volume “/dev/sdb1” successfully created
Create the Volume Group
vgcreate Backup-Drive /dev/sdb1
Volume group “Backup-Drive” successfully created
Create the logical volume to use the max space.
lvcreate -l 100%FREE -n Backup Backup-Drive
Make the filesystem
mkfs -t ext4 /dev/Backup-Drive/Backup
Make a directory to mount somewhere.
mount -t ext4 /dev/Backup-Drive/Backup /mnt/Backup
Create a folder you will map to called Backups or whatever you are using it for.
Added to fstab so it’s there when you reboot.
/dev/Backup-Drive/Backup /mnt/Backup ext4 defaults 0 1
Then add the directory of where the file system is mounted in Proxmox with what functions it will have. Click the different options in the drop down depending on what you want to use it for.