{"id":107,"date":"2019-12-11T16:41:59","date_gmt":"2019-12-11T10:41:59","guid":{"rendered":"https:\/\/goodhost.kz\/wiki\/?p=107"},"modified":"2019-12-11T17:05:00","modified_gmt":"2019-12-11T11:05:00","slug":"%d1%83%d0%b2%d0%b5%d0%bb%d0%b8%d1%87%d0%b5%d0%bd%d0%b8%d0%b5-%d0%b4%d0%b8%d1%81%d0%ba%d0%be%d0%b2%d0%be%d0%b3%d0%be-%d0%bf%d1%80%d0%be%d1%81%d1%82%d1%80%d0%b0%d0%bd%d1%81%d1%82%d0%b2%d0%b0-%d0%b2-debi","status":"publish","type":"post","link":"https:\/\/goodhost.kz\/wiki\/?p=107","title":{"rendered":"\u0423\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u0438\u0435 \u0434\u0438\u0441\u043a\u043e\u0432\u043e\u0433\u043e \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u0430 \u0432 Debian 7"},"content":{"rendered":"\n<h1 class=\"wp-block-heading\">\u0423\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u0438\u0435 \u0434\u0438\u0441\u043a\u043e\u0432\u043e\u0433\u043e \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u0430 \u0432 Debian 7<\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">\u041f\u043e\u0441\u043b\u0435 \u0443\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u0438\u044f \u0434\u0438\u0441\u043a\u0430 \u0432 \u043f\u0430\u043d\u0435\u043b\u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0435\u0433\u043e \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u043c \u0434\u043b\u044f \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0415\u0441\u043b\u0438 \u0412\u044b \u043e\u0431\u043d\u043e\u0432\u0438\u043b\u0438 \u0443\u0442\u0438\u043b\u0438\u0442\u0443 parted, \u0442\u043e\u0433\u0434\u0430 \u0412\u0430\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 <a href=\"https:\/\/goodhost.kz\/wiki\/?p=106\">\u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0435\u0439<\/a>. \u041e\u0442\u043a\u0440\u043e\u0439\u0442\u0435 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b (\u0441\u043c. <a href=\"https:\/\/goodhost.kz\/wiki\/?p=100\">\u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044e \u043f\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044e<\/a>) \u043f\u043e\u0434 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c root \u0438 \u0432\u0432\u0435\u0434\u0438\u0442\u0435 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><br>root@Debian7x64:~# echo 1 > \/sys\/block\/sda\/device\/rescan <\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u0417\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0435 \u0443\u0442\u0438\u043b\u0438\u0442\u0443 parted:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><br><code>root@Debian7x64:~# parted<\/code> <\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u0414\u0430\u043b\u0435\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0432 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0435 \u0443\u0442\u0438\u043b\u0438\u0442\u044b parted:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><br><code>(parted) p<br> Model: VMware Virtual disk (scsi)<br> Disk \/dev\/sda: ZZ.ZGB<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><code><br> ...<\/code> \u0417\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u0435\u043c \u0440\u0430\u0437\u043c\u0435\u0440 \u0434\u0438\u0441\u043a\u0430 ZZ.ZGB<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><br><code>(parted) resize<br> Partition number? 2<\/code> <\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435 &#171;Start&#187; \u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e &#8212; \u043d\u0430\u0436\u0438\u043c\u0430\u0435\u043c Enter<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><br><code>Start? [XXXMB]?<\/code> <\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435 &#171;End&#187; &#8212; \u0432\u0432\u043e\u0434\u0438\u043c \u043d\u043e\u0432\u044b\u0439 \u0440\u0430\u0437\u043c\u0435\u0440 \u0434\u0438\u0441\u043a\u0430 \u0432 \u0433\u0438\u0433\u0430\u0431\u0430\u0439\u0442\u0430\u0445 &#8212; \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0438\u0437 \u0432\u044b\u0432\u043e\u0434\u0430 (parted) p, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0437\u0430\u043f\u043e\u043c\u043d\u0438\u043b\u0438 \u0440\u0430\u043d\u0435\u0435<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><br><code>End? [YY.YGB]? ZZ.ZGB<\/code> <\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u0412\u044b\u0445\u043e\u0434\u0438\u043c \u0438\u0437 parted:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><br><code>(parted) quit<\/code> <\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u041e\u0442\u043e\u0431\u0440\u0430\u0437\u0438\u0442\u0441\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0430\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f: <\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Information: You may need to update \/etc\/fstab.<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"> \u0417\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0435 fdisk:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><br><code>root@Debian7x64:~# fdisk \/dev\/sda<\/code> <\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u0414\u0430\u043b\u0435\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0432 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0435 \u0443\u0442\u0438\u043b\u0438\u0442\u044b fdisk:<br> \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0440\u0430\u0437\u0434\u0435\u043b:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><br><code>Command (m for help): n<\/code> <\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u0412\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u0442\u0438\u043f \u0440\u0430\u0437\u0434\u0435\u043b\u0430 &#8212; \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0439 (L)<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><br><code>Select (default p): l<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">Adding logical partition X<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"> \u0417\u0430\u043f\u043e\u043c\u043d\u0438\u0442\u0435 \u043d\u043e\u043c\u0435\u0440 \u0440\u0430\u0437\u0434\u0435\u043b\u0430, \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0439 \u0432 \u0445\u043e\u0434\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u044b (\u0432 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u043e\u0431\u043e\u0437\u043d\u0430\u0447\u0435\u043d\u043e \u043a\u0430\u043a X)<br> \u041f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e &#8212; \u043d\u0430\u0436\u0438\u043c\u0430\u0435\u043c \u0434\u0432\u0430 \u0440\u0430\u0437\u0430 Enter:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>First sector (XXX-YYY, default ZZZ):\n Last sector, +sectors or +size{K,M,G} (XXX-YYY, default ZZZ):<\/code> <\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u041c\u0435\u043d\u044f\u0435\u043c \u0442\u0438\u043f \u0440\u0430\u0437\u0434\u0435\u043b\u0430, \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u043d\u043e\u043c\u0435\u0440 \u0440\u0430\u0437\u0434\u0435\u043b\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u044b \u0437\u0430\u043f\u043e\u043c\u043d\u0438\u043b\u0438 \u0440\u0430\u043d\u0435\u0435(\u0432 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u043e\u0431\u043e\u0437\u043d\u0430\u0447\u0435\u043d\u043e \u043a\u0430\u043a X)<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>Command (m for help): t<br> Partition number (1-X): X<br> Hex code (type L to list codes): 8e<br> ...<br> Command (m for help): w<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"> \u0421\u043e\u043e\u0431\u0449\u0430\u0435\u043c \u044f\u0434\u0440\u0443 \u043e\u0431 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f\u0445: <\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>root@Debian7x64:~# partx -v -a \/dev\/sda<\/code> <\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u0412 \u043e\u0442\u043e\u0431\u0440\u0430\u0437\u0438\u0432\u0448\u0435\u043c\u0441\u044f \u043e\u0442\u0432\u0435\u0442\u0435 \u0432\u0438\u0434\u0438\u043c \u0441\u0442\u0440\u043e\u043a\u0443 <\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">...\n\/dev\/sda: partition #X added\n...<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"> \u0418\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u043c \u0440\u0430\u0437\u0434\u0435\u043b, \u0432\u043c\u0435\u0441\u0442\u043e \u0425 \u043e\u043f\u044f\u0442\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u043d\u043e\u043c\u0435\u0440 \u0440\u0430\u0437\u0434\u0435\u043b\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u044b \u0437\u0430\u043f\u043e\u043c\u043d\u0438\u043b\u0438 \u0440\u0430\u043d\u0435\u0435 <\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>root@Debian7x64:~# pvcreate \/dev\/sdaX<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">Physical volume \"\/dev\/sdaX\" successfully created<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"> \u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0440\u0430\u0437\u0434\u0435\u043b \u043a \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0439 \u0433\u0440\u0443\u043f\u043f\u0435 \u0442\u043e\u043c\u043e\u0432: <\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>root@Debian7x64:~# vgextend\u00a0debian \/dev\/sdaX<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">Volume group \"debian\" successfully extended\n<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"> \u0420\u0430\u0441\u0448\u0438\u0440\u044f\u0435\u043c \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0442\u043e\u043c <\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>root@Debian7x64:~# lvextend -l +100%FREE \/dev\/debian\/root<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">Extending logical volume root to YY.ZZ GiB\nLogical volume root successfully resized<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"> \u0420\u0430\u0441\u0448\u0438\u0440\u044f\u0435\u043c \u0444\u0430\u0439\u043b\u043e\u0432\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443 <\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>root@Debian7x64:~# resize2fs \/dev\/debian\/root<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u0413\u043e\u0442\u043e\u0432\u043e.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0423\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u0438\u0435 \u0434\u0438\u0441\u043a\u043e\u0432\u043e\u0433\u043e \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u0430 \u0432 Debian 7 \u041f\u043e\u0441\u043b\u0435 \u0443\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u0438\u044f \u0434\u0438\u0441\u043a\u0430 \u0432 \u043f\u0430\u043d\u0435\u043b\u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0435\u0433\u043e \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u043c \u0434\u043b\u044f \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b: \u0415\u0441\u043b\u0438 \u0412\u044b \u043e\u0431\u043d\u043e\u0432\u0438\u043b\u0438 \u0443\u0442\u0438\u043b\u0438\u0442\u0443 parted, \u0442\u043e\u0433\u0434\u0430 \u0412\u0430\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0435\u0439. \u041e\u0442\u043a\u0440\u043e\u0439\u0442\u0435 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b (\u0441\u043c. \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044e \u043f\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044e) \u043f\u043e\u0434 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c root \u0438 \u0432\u0432\u0435\u0434\u0438\u0442\u0435 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b: root@Debian7x64:~# echo 1 > \/sys\/block\/sda\/device\/rescan \u0417\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0435 \u0443\u0442\u0438\u043b\u0438\u0442\u0443 parted: root@Debian7x64:~# parted \u0414\u0430\u043b\u0435\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u0435 ..<\/p>\n<div class=\"clear-fix\"><\/div>\n<p><a href=\"https:\/\/goodhost.kz\/wiki\/?p=107\" title=\"\u0447\u0438\u0442\u0430\u0442\u044c...\">\u0427\u0438\u0442\u0430\u0442\u044c \u0434\u0430\u043b\u0435\u0435<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-107","post","type-post","status-publish","format-standard","hentry","category---vds-vps"],"_links":{"self":[{"href":"https:\/\/goodhost.kz\/wiki\/index.php?rest_route=\/wp\/v2\/posts\/107","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/goodhost.kz\/wiki\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/goodhost.kz\/wiki\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/goodhost.kz\/wiki\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/goodhost.kz\/wiki\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=107"}],"version-history":[{"count":6,"href":"https:\/\/goodhost.kz\/wiki\/index.php?rest_route=\/wp\/v2\/posts\/107\/revisions"}],"predecessor-version":[{"id":114,"href":"https:\/\/goodhost.kz\/wiki\/index.php?rest_route=\/wp\/v2\/posts\/107\/revisions\/114"}],"wp:attachment":[{"href":"https:\/\/goodhost.kz\/wiki\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=107"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/goodhost.kz\/wiki\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=107"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/goodhost.kz\/wiki\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=107"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}