Skip to content

How to add a second drive to a ProxMox server using LVM

by Patrick Durante on June 26th, 2015

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.**

Step 1:
On the CLI find the disk with fdisk -l

Step 2:
Create physical volume
pvcreate /dev/sdb1
Physical volume “/dev/sdb1” successfully created

Step 3:
Create the Volume Group
vgcreate Backup-Drive /dev/sdb1
Volume group “Backup-Drive” successfully created

Step 4:
Create the logical volume to use the max space.
lvcreate -l 100%FREE -n Backup Backup-Drive

Step 5:
Make the filesystem
mkfs -t ext4 /dev/Backup-Drive/Backup

Step 6:
Make a directory to mount somewhere.
mkdir /mnt/Backup
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.

Step 7:
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.

Untitled picture

From → Uncategorized

No comments yet

Leave a Reply

Note: XHTML is allowed. Your email address will never be published.

Subscribe to this comment feed via RSS


WP-SpamFree by Pole Position Marketing