Differences
This shows you the differences between two versions of the page.
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.1 | engineering: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: | ||
+ | |||
+ | Via SSH as root | ||
+ | |||
+ | ==== Identify the new disk ==== | ||
+ | |||
+ | <code bash> | ||
+ | lsblk | ||
+ | |||
+ | |||
+ | </ | ||
+ | |||
+ | ==== Format and partition ==== | ||
+ | |||
+ | If you don't already have it, install parted | ||
+ | |||
+ | <code bash> | ||
+ | apt policy parted && apt install parted | ||
+ | |||
+ | |||
+ | </ | ||
+ | |||
+ | then run | ||
+ | |||
+ | <code bash> | ||
+ | parted /dev/sdb mklabel gpt | ||
+ | |||
+ | |||
+ | </ | ||
+ | |||
+ | <code bash> | ||
+ | parted -a opt /dev/sdb mkpart primary ext4 0% 100% | ||
+ | |||
+ | |||
+ | </ | ||
+ | |||
+ | <code bash> | ||
+ | mkfs.ext4 -L storageprox /dev/sdb1 | ||
+ | |||
+ | |||
+ | </ | ||
+ | |||
+ | ==== Check partition names: ==== | ||
+ | |||
+ | <code bash> | ||
+ | lsblk -fs | ||
+ | |||
+ | |||
+ | </ | ||
+ | |||
+ | ==== Mount the partition ==== | ||
+ | |||
+ | [[engineering: | ||
+ | |||
+ | ==== Mount the Disk in Proxmox ==== | ||
+ | |||
+ | [TODO] Fill information about mounting a disk in Proxmox | ||
+ | |||