User Tools

Site Tools


proxmox:disks:add_storage_drives:add_a_new_physical_hard_drive_to_proxmox

Proxmox - Disks - Add Storage Drives - Add a new physical hard drive to Proxmox

Add a new Physical Hard Drive to your Proxmox Node.


Check that Proxmox is recognizing the new drive

Log into the Proxmox web portal.

  • Select the Proxmox Node (pve).
  • Click on Disks.

NOTE: This should show the new Physical hard drive such as /dev/sdb.


Create a Partition

Open the Proxmox Node Shell.

fdisk /dev/sdb

returns:

Welcome to fdisk (util-linux 2.29.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
 
Command (m for help):

WARNING: Make sure that the device is the correct one, as all data will be wiped from this device.


Create a new Partition

Type n and hit enter.

Command (m for help): n
Partition type
 p primary (0 primary, 0 extended, 4 free)
 e extended (container for logical partitions)

Select partition type p for Primary and select default value for Partition Number, First Sector and Last Sector.

Partition number (1-4, default 1):
First sector (2048-16777215, default 2048):
Last sector, +sectors or +size{K,M,G,T,P} (2048-16777215, default 16777215):
 
Created a new partition 1 of type 'Linux' and of size 8 GiB.

Save partition – type w and hit enter.

Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.

NOTE: The new drive should be ready.


Create an LVM Volume

Create Physical Volume

pvcreate /dev/sdb1

returns:

Physical volume "/dev/sdb1" successfully created.

Create Volume Group

vgcreate VG01 /dev/sdb1

returns:

Volume group "VG01" successfully created

Add LVM to Proxmox

Navigate to Datacenter –> Storage.

  • Click Add.
  • Select LVM.
  • Populate:
    • ID: Enter a name.
    • Volume Group: Select the correct volume group from the drop down.
  • Click Add.

NOTE: The new drive should be added to Proxmox.

  • Confirm by navigating to NODE (pve) → Storage.
proxmox/disks/add_storage_drives/add_a_new_physical_hard_drive_to_proxmox.txt · Last modified: 2021/07/23 10:11 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki