{"id":1465,"date":"2021-05-05T09:46:50","date_gmt":"2021-05-05T07:46:50","guid":{"rendered":"http:\/\/www.shukko.com\/x3\/?p=1465"},"modified":"2021-05-05T09:49:46","modified_gmt":"2021-05-05T07:49:46","slug":"proxmox-shrink-local-zfs-disk","status":"publish","type":"post","link":"https:\/\/www.shukko.com\/x3\/2021\/05\/05\/proxmox-shrink-local-zfs-disk\/","title":{"rendered":"Proxmox &#8211; Shrink local ZFS disk"},"content":{"rendered":"\n<p>Proxmox &#8211; Shrink local ZFS disk<\/p>\n\n\n\n<p>1- boot gparted and shrink partitions leaving free space as you like<br>2- in pve shell<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\n$zfs set volsize=&lt;new size&gt;G rpool\/data\/vm-&lt;vm id&gt;-disk-&lt;disk number&gt;\n\nEx: zfs set volsize=50G rpool\/data\/vm-141-disk-0<\/code><\/pre>\n\n\n\n<p>3- edit vm config in \/etc\/pve\/qemu-server\/vm-id.conf<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\nvirtio0: local-zfs:vm-&lt;vm id&gt;-disk-&lt;disk number&gt;,size=&lt;new size&gt;G\n<\/code><\/pre>\n\n\n\n<p>IF can not boot and corrupted partition table for shrinked disk:<\/p>\n\n\n\n<p>boot gparted<\/p>\n\n\n\n<p>gdisk \/dev\/sda<\/p>\n\n\n\n<p>press<\/p>\n\n\n\n<p>v<br>x<br>e<br>w<br>y<\/p>\n\n\n\n<p>Done!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Proxmox &#8211; Shrink local ZFS disk 1- boot gparted and shrink partitions leaving free space as you like2- in pve shell 3- edit vm config in \/etc\/pve\/qemu-server\/vm-id.conf IF can not boot and corrupted partition table for shrinked disk: boot gparted gdisk \/dev\/sda press vxewy Done!<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1465","post","type-post","status-publish","format-standard","hentry","category-kategerisiz"],"_links":{"self":[{"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/posts\/1465","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/comments?post=1465"}],"version-history":[{"count":3,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/posts\/1465\/revisions"}],"predecessor-version":[{"id":1469,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/posts\/1465\/revisions\/1469"}],"wp:attachment":[{"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/media?parent=1465"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/categories?post=1465"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/tags?post=1465"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}