How to add additional hard drive in Proxmox server

There are several ways you can add additional hard drives to Proxmox server. One the ways I did is to extend the existing volume group. There are the steps I took to accomplish this task.

  • Add the additional hard drive (HDD or SSD) to your Proxmox server.
  • I added my NVMe SSD 2TB to my server.
  • You can see in the picture below its /dev/nvme0n1 device. If you don’t see your device click on Reload button on the top.
  • Login into the Proxmox server GUI [https://ipaddress:8006] and go to Disk and select new disk. In my case its /dev/nvem0n1 and click on Wipe Disk
  • Next, get the details of current physical disk and volume group
  • Here you can see my physical disk is called /dev/sda3
  • we can get the attributes associated with this disk by running pvdisplay
  • From the above output you can see that my volume group name is pve and it has /dev/sda3 as its physical disk. Next we will look at the volume group (VG) information.
  • For VG information we can use vgs & vgdisplay commands
  • Pay attention to Alloc PE / Size which is <914.51 GiB. Once we create physical disk and extend our VG, you should see updated size.
  • Now get the details about our new disk. Run fdisk -l | grep '^Disk /dev/'
  • From our output you can see we have /dev/sda which is our existing disk. dev/nvme0n1 is the one I added, this is our new disk
  • run the lvmdiskscan to see the disk that are currently available
  • Next step is to create physical volume on our new disk /dev/nvme0n1
  • when run the lvmdiskscan again after pvcreate command you will notices that we see two LVM physical volumes
  • Next, add the newly created physical volume /dev/nvme0n1 to our volume group pve
  • Next, extend the /dev/pve/data
  • Next, verify the volume group is extended to new size in our case it should be around 2.6TiB
  • - Alloc PE / Size 2.75 TiB