- How to partition and format a hard disk added to our baremetal host
- possible use cases for the new partition
The lsblk command in linux will list block devices.
lsblk
In this example we have sda and sdb. sda has Poxmox host os intalled. Plus the default virtual machine data storage. The picture shows that sdb already has some partions. Those will need to be cleared before Proxmox can use the disk.
We will use parted over fdisk today. Proxmox does not have parted installed by default. First we will need to update proxmox. It is a good idea to update Proxmox before you install any new software. install parted:
apt update
apt dist-upgrade
apt policy parted
apt install parted
Create new GPT partion table on the sdb disk.
parted /dev/sdb mklabel gpt
This will result in a blank disk:
Now we can switch back to the Proxmox UI and initialize the disk with gpt.
Add the new storage to Proxmox as LVM, LVM-Thin or Directory. We are adding sdb as a directory.
Pick the sdb disk, choose your filesytem type and Name the storage. From here you can use the storage in Proxmox.
Initial commit