{"id":893,"date":"2016-06-29T16:58:50","date_gmt":"2016-06-29T14:58:50","guid":{"rendered":"http:\/\/dety.net.ua\/?p=893"},"modified":"2016-06-29T17:14:17","modified_gmt":"2016-06-29T15:14:17","slug":"zabbix-3-appliance-extend-disk-space","status":"publish","type":"post","link":"https:\/\/dety.net.ua\/?p=893","title":{"rendered":"Zabbix 3 Appliance + Extend disk space"},"content":{"rendered":"<ol>\n<li>Extend HDD in your VM on Hyper-V, ESXi, &#8230;<\/li>\n<li>Rescan drives in VM:\n<pre><code>echo \"- - -\" &gt; \/sys\/class\/scsi_host\/host#\/scan<\/code><\/pre>\n<\/li>\n<li>Check it:\n<pre><code>fdisk -l<\/code><\/pre>\n<\/li>\n<li>Create a new partition with code 8E (Linux LVM):\n<pre><code>cfdisk \/dev\/sda<\/code><\/pre>\n<\/li>\n<li>Reboot (or reread info about disks)<\/li>\n<li>Create new partition for LVM:\n<pre><code>pvcreate \/dev\/sda6<\/code><\/pre>\n<\/li>\n<li>Extend LVM (vg_name was zabbix-vg in my case):\n<pre><code>vgextend vg_name \/dev\/sda6<\/code><\/pre>\n<\/li>\n<li>Next:\n<pre><code>lvextend -L+30G \/dev\/zabbix\/root <\/code><\/pre>\n<\/li>\n<li>Refresh it:\n<pre><code>resize2fs \/dev\/zabbix-vg\/root<\/code><\/pre>\n<\/li>\n<li>Done.<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Extend HDD in your VM on Hyper-V, ESXi, &#8230; Rescan drives in VM: echo &#8220;- &#8211; -&#8221; &gt; \/sys\/class\/scsi_host\/host#\/scan Check it: fdisk -l Create a new partition with code 8E (Linux LVM): cfdisk \/dev\/sda Reboot (or reread info about disks) Create new partition for LVM: pvcreate \/dev\/sda6 Extend LVM (vg_name was zabbix-vg in my case): [&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,16],"tags":[],"class_list":["post-893","post","type-post","status-publish","format-standard","hentry","category-novosti","category-zabbix"],"_links":{"self":[{"href":"https:\/\/dety.net.ua\/index.php?rest_route=\/wp\/v2\/posts\/893","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dety.net.ua\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dety.net.ua\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dety.net.ua\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dety.net.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=893"}],"version-history":[{"count":1,"href":"https:\/\/dety.net.ua\/index.php?rest_route=\/wp\/v2\/posts\/893\/revisions"}],"predecessor-version":[{"id":894,"href":"https:\/\/dety.net.ua\/index.php?rest_route=\/wp\/v2\/posts\/893\/revisions\/894"}],"wp:attachment":[{"href":"https:\/\/dety.net.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=893"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dety.net.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=893"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dety.net.ua\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=893"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}