engineering:computer_science:homelab:proxmox:add_disk_to_proxmox

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
engineering:computer_science:homelab:proxmox:add_disk_to_proxmox [2024/08/16 13:56] – removed - external edit (Unknown date) 127.0.0.1engineering:computer_science:homelab:proxmox:add_disk_to_proxmox [2024/08/16 13:56] (current) – ↷ Links adapted because of a move operation carlossousa
Line 1: Line 1:
 +====== Add Disk to Proxmox ======
 +
 +Part of my [[engineering:computer_science:homelab:homelab|HomeLab]] and my [[engineering:computer_science:homelab:proxmox:proxmox|Proxmox]] documentation.
 +
 +Via SSH as root
 +
 +==== Identify the new disk ====
 +
 +<code bash>
 +lsblk
 +
 +
 +</code>
 +
 +==== Format and partition ====
 +
 +If you don't already have it, install parted
 +
 +<code bash>
 +apt policy parted && apt install parted
 +
 +
 +</code>
 +
 +then run
 +
 +<code bash>
 +parted /dev/sdb mklabel gpt
 +
 +
 +</code>
 +
 +<code bash>
 +parted -a opt /dev/sdb mkpart primary ext4 0% 100%
 +
 +
 +</code>
 +
 +<code bash>
 +mkfs.ext4 -L storageprox /dev/sdb1
 +
 +
 +</code>
 +
 +==== Check partition names: ====
 +
 +<code bash>
 +lsblk -fs
 +
 +
 +</code>
 +
 +==== Mount the partition ====
 +
 +[[engineering:computer_science:linux:linux_mount_drive|Mount Drive in Linux]]
 +
 +==== Mount the Disk in Proxmox ====
 +
 +[TODO] Fill information about mounting a disk in Proxmox
 +