{"id":115,"date":"2025-09-15T11:29:28","date_gmt":"2025-09-15T10:29:28","guid":{"rendered":"https:\/\/chosesoft.eu\/?p=115"},"modified":"2025-09-15T11:32:30","modified_gmt":"2025-09-15T10:32:30","slug":"115","status":"publish","type":"post","link":"https:\/\/chosesoft.eu\/index.php\/2025\/09\/15\/115\/","title":{"rendered":"Physical Disks in Proxmox"},"content":{"rendered":"\n<h1 class=\"wp-block-heading\">How to Add and Use Physical Disks in Proxmox VE<\/h1>\n\n\n\n<p>This guide explains how to prepare, format, and attach physical disks <code>\/dev\/sda<\/code> and <code>\/dev\/sdb<\/code> to Proxmox VE for local storage usage.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">1. Clean Existing Partitions from the Disk<\/h2>\n\n\n\n<p>Run to wipe previous partitions and meta<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sgdisk --zap-all \/dev\/sda\nsgdisk --zap-all \/dev\/sdb\n<\/code><\/pre>\n\n\n\n<p>Or alternatively:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>wipefs -a \/dev\/sda\nwipefs -a \/dev\/sdb\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">2. Create a New GPT Partition Table<\/h2>\n\n\n\n<p>Use parted to set a new GPT label:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>parted \/dev\/sda mklabel gpt\nparted \/dev\/sdb mklabel gpt\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">3. Create a Single Partition Covering the Whole Disk<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>parted -a optimal \/dev\/sda mkpart primary 0% 100%\nparted -a optimal \/dev\/sdb mkpart primary 0% 100%\n<\/code><\/pre>\n\n\n\n<p>Check partitions:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>lsblk \/dev\/sda\nlsblk \/dev\/sdb\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">4. Format the Partitions (ext4 Example)<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>mkfs.ext4 \/dev\/sda1\nmkfs.ext4 \/dev\/sdb1\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">5. Mount the Partitions<\/h2>\n\n\n\n<p>Create mount points and mount the disks:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mkdir \/mnt\/storage_sda\nmkdir \/mnt\/storage_sdb\n\nmount \/dev\/sda1 \/mnt\/storage_sda\nmount \/dev\/sdb1 \/mnt\/storage_sdb\n<\/code><\/pre>\n\n\n\n<p>Add to <code>\/etc\/fstab<\/code> for automatic mounting:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/dev\/sda1 \/mnt\/storage_sda ext4 defaults 0 2\n\/dev\/sdb1 \/mnt\/storage_sdb ext4 defaults 0 2\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">6. Add Storage in Proxmox VE Web Interface<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Go to <strong>Datacenter \u2192 Storage \u2192 Add \u2192 Directory<\/strong><\/li>\n\n\n\n<li>Set an ID (e.g., <code>storage_sda<\/code>)<\/li>\n\n\n\n<li>Set the directory path (<code>\/mnt\/storage_sda<\/code>)<\/li>\n\n\n\n<li>Select content types (Disk image, ISO, Backup, etc.)<\/li>\n\n\n\n<li>Click <strong>Add<\/strong><\/li>\n<\/ul>\n\n\n\n<p>Repeat for <code>\/mnt\/storage_sdb<\/code> if needed.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Optional: Use LVM or ZFS Instead<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">LVM Example<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>pvcreate \/dev\/sda1\nvgcreate vg_sda \/dev\/sda1\n\npvcreate \/dev\/sdb1\nvgcreate vg_sdb \/dev\/sdb1\n<\/code><\/pre>\n\n\n\n<p>Add storage as <strong>LVM<\/strong> in Proxmox, select VG name.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">ZFS Example<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>zpool create pool_sda \/dev\/sda1\nzpool create pool_sdb \/dev\/sdb1\n<\/code><\/pre>\n\n\n\n<p>Add storage as <strong>ZFS<\/strong> in Proxmox.<\/p>\n\n\n\n<p>This guide covers the standard way to prepare and use physical disks with Proxmox VE. Contact for help with advanced configurations.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"547\" src=\"https:\/\/chosesoft.eu\/wp-content\/uploads\/2025\/09\/Screenshot-2025-09-15-at-12.31.49-1024x547.png\" alt=\"\" class=\"wp-image-118\" srcset=\"https:\/\/chosesoft.eu\/wp-content\/uploads\/2025\/09\/Screenshot-2025-09-15-at-12.31.49-1024x547.png 1024w, https:\/\/chosesoft.eu\/wp-content\/uploads\/2025\/09\/Screenshot-2025-09-15-at-12.31.49-300x160.png 300w, https:\/\/chosesoft.eu\/wp-content\/uploads\/2025\/09\/Screenshot-2025-09-15-at-12.31.49-768x410.png 768w, https:\/\/chosesoft.eu\/wp-content\/uploads\/2025\/09\/Screenshot-2025-09-15-at-12.31.49-1536x820.png 1536w, https:\/\/chosesoft.eu\/wp-content\/uploads\/2025\/09\/Screenshot-2025-09-15-at-12.31.49.png 2046w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>How to Add and Use Physical Disks in Proxmox VE This guide explains how to prepare, format, and attach physical disks \/dev\/sda and \/dev\/sdb to Proxmox VE for local storage usage. 1. Clean Existing Partitions from the Disk Run to wipe previous partitions and meta Or alternatively: 2. Create a New GPT Partition Table Use [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13,18],"tags":[],"class_list":["post-115","post","type-post","status-publish","format-standard","hentry","category-linux","category-proxmox"],"_links":{"self":[{"href":"https:\/\/chosesoft.eu\/index.php\/wp-json\/wp\/v2\/posts\/115","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/chosesoft.eu\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/chosesoft.eu\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/chosesoft.eu\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/chosesoft.eu\/index.php\/wp-json\/wp\/v2\/comments?post=115"}],"version-history":[{"count":3,"href":"https:\/\/chosesoft.eu\/index.php\/wp-json\/wp\/v2\/posts\/115\/revisions"}],"predecessor-version":[{"id":119,"href":"https:\/\/chosesoft.eu\/index.php\/wp-json\/wp\/v2\/posts\/115\/revisions\/119"}],"wp:attachment":[{"href":"https:\/\/chosesoft.eu\/index.php\/wp-json\/wp\/v2\/media?parent=115"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/chosesoft.eu\/index.php\/wp-json\/wp\/v2\/categories?post=115"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/chosesoft.eu\/index.php\/wp-json\/wp\/v2\/tags?post=115"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}