{"id":1033,"date":"2018-06-15T11:48:48","date_gmt":"2018-06-15T02:48:48","guid":{"rendered":"http:\/\/manatails.net\/blog\/?p=1033"},"modified":"2022-04-03T13:48:53","modified_gmt":"2022-04-03T04:48:53","slug":"adding-a-new-disk-to-proxmox-ve","status":"publish","type":"post","link":"https:\/\/manatails.net\/blog\/2018\/06\/adding-a-new-disk-to-proxmox-ve\/","title":{"rendered":"Adding a new disk to Proxmox VE"},"content":{"rendered":"<pre>root@elizabeth:\/etc\/lvm# fdisk \/dev\/sdb\r\n\r\nWelcome to fdisk (util-linux 2.29.2).\r\nChanges will remain in memory only, until you decide to write them.\r\nBe careful before using the write command.\r\n\r\nCommand (m for help): g\r\n\r\nCreated a new GPT disklabel (GUID: DBD738EC-7ED5-4FC0-9474-1018CF3E4F12).\r\n\r\nCommand (m for help): n\r\nPartition number (1-128, default 1):\r\nFirst sector (34-500118158, default 2048):\r\nLast sector, +sectors or +size{K,M,G,T,P} (2048-500118158, default 500118158):\r\n\r\nCreated a new partition 1 of type 'Linux filesystem' and of size 238.5 GiB.\r\n\r\nCommand (m for help): t\r\nSelected partition 1\r\nHex code (type L to list all codes): 8e\r\nType of partition 1 is unchanged: Linux filesystem.\r\n\r\nCommand (m for help): p\r\nDisk \/dev\/sdb: 238.5 GiB, 256060514304 bytes, 500118192 sectors\r\nUnits: sectors of 1 * 512 = 512 bytes\r\nSector size (logical\/physical): 512 bytes \/ 512 bytes\r\nI\/O size (minimum\/optimal): 512 bytes \/ 512 bytes\r\nDisklabel type: gpt\r\nDisk identifier: DBD738EC-7ED5-4FC0-9474-1018CF3E4F12\r\n\r\nDevice Start End Sectors Size Type\r\n\/dev\/sdb1 2048 500118158 500116111 238.5G Linux filesystem\r\n\r\nCommand (m for help): w\r\nThe partition table has been altered.\r\nCalling ioctl() to re-read partition table.\r\nSyncing disks.\r\n\r\nroot@elizabeth:\/etc\/lvm# pvcreate \/dev\/sdb1\r\nPhysical volume \"\/dev\/sdb1\" successfully created.\r\nroot@elizabeth:\/etc\/lvm# vgcreate ssd2 \/dev\/sdb1\r\nVolume group \"ssd2\" successfully created\r\nroot@elizabeth:\/etc\/lvm# lvcreate --type thin-pool -L 100G -n data ssd2\r\nLogical volume \"data\" created.\r\nroot@elizabeth:\/etc\/lvm# lvextend -l +100%FREE ssd2\/data\r\nSize of logical volume ssd2\/data changed from 100.00 GiB (25600 extents) to 238.47 GiB (61049 extents).\r\nLogical volume ssd2\/data successfully resized.<\/pre>\n<p>Then it is possible to add the newly created LVM-Thin volume from the Web interface.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>root@elizabeth:\/etc\/lvm# fdisk \/dev\/sdb 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): g Created a new GPT disklabel (GUID: DBD738EC-7ED5-4FC0-9474-1018CF3E4F12). Command (m for help): n Partition number (1-128, default 1): First sector (34-500118158, default 2048): Last &hellip; <a href=\"https:\/\/manatails.net\/blog\/2018\/06\/adding-a-new-disk-to-proxmox-ve\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Adding a new disk to Proxmox VE<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[122],"class_list":["post-1033","post","type-post","status-publish","format-standard","hentry","category-computer","tag-proxmox"],"_links":{"self":[{"href":"https:\/\/manatails.net\/blog\/wp-json\/wp\/v2\/posts\/1033","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/manatails.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/manatails.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/manatails.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/manatails.net\/blog\/wp-json\/wp\/v2\/comments?post=1033"}],"version-history":[{"count":8,"href":"https:\/\/manatails.net\/blog\/wp-json\/wp\/v2\/posts\/1033\/revisions"}],"predecessor-version":[{"id":1080,"href":"https:\/\/manatails.net\/blog\/wp-json\/wp\/v2\/posts\/1033\/revisions\/1080"}],"wp:attachment":[{"href":"https:\/\/manatails.net\/blog\/wp-json\/wp\/v2\/media?parent=1033"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/manatails.net\/blog\/wp-json\/wp\/v2\/categories?post=1033"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/manatails.net\/blog\/wp-json\/wp\/v2\/tags?post=1033"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}