{"id":269554,"date":"2015-12-03T13:39:02","date_gmt":"2015-12-03T10:39:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=269554"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=269554","title":{"rendered":"Proxmox 4.0: \u041a\u043e\u0440\u043d\u0435\u0432\u043e\u0439 \u0440\u0430\u0437\u0434\u0435\u043b \u043d\u0430 ZFS RAID1 \u0438\u043b\u0438 \u043a\u0430\u043a \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0442\u044c \u043e\u0442\u043a\u0430\u0437\u043e\u0443\u0441\u0442\u043e\u0439\u0447\u0438\u0432\u043e\u0441\u0442\u044c \u0435\u0441\u043b\u0438 \u0432 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u0432\u0441\u0435\u0433\u043e 2 \u0434\u0438\u0441\u043a\u0430"},"content":{"rendered":"<p>       \u041f\u043e\u0434\u0432\u0435\u0440\u043d\u0443\u043b\u0430\u0441\u044c \u043c\u043d\u0435 \u0437\u0430\u0434\u0430\u0447\u0430 \u2014 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c Proxmox \u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u043e\u043a \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u0432\u0441\u0435\u0433\u043e \u0441 2 \u0434\u0438\u0441\u043a\u0430\u043c\u0438. \u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043b\u043e\u0441\u044c \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0442\u044c \u043d\u0443 \u0445\u043e\u0442\u044c \u043a\u0430\u043a\u0443\u044e-\u0442\u043e \u043d\u0430\u0434\u0435\u0436\u043d\u043e\u0441\u0442\u044c \u0438 \u043f\u0440\u043e\u0441\u0442\u043e\u0442\u0443 \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0445 \u0441 \u0432\u044b\u0445\u043e\u0434\u043e\u043c \u0438\u0437 \u0441\u0442\u0440\u043e\u044f \u043e\u0434\u043d\u043e\u0433\u043e \u0438\u0437 \u0434\u0438\u0441\u043a\u043e\u0432. \u0414\u0430\u043b\u0435\u0435 \u0432 \u0437\u0430\u043c\u0435\u0442\u043a\u0435 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043d\u0430 \u0441\u0442\u0435\u043d\u0434\u0435.<br \/>  <a name=\"habracut\"><\/a>  <\/p>\n<h4>\u0412\u0432\u043e\u0434\u043d\u0430\u044f<\/h4>\n<p>  \u042f \u0441\u0447\u0438\u0442\u0430\u044e \u0447\u0442\u043e \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u044c \u0434\u0430\u043d\u043d\u043e\u0439 \u0437\u0430\u043c\u0435\u0442\u043a\u0438 \u043c\u043e\u0436\u0435\u0442 \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c Proxmox \u043d\u0430 \u043d\u043e\u0434\u0443 \u0438 \u043d\u0435 \u0431\u0443\u0434\u0443 \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0442\u044c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0443 \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0443 \u0441\u0430\u043c\u043e\u0433\u043e \u0433\u0438\u043f\u0435\u0440\u0432\u0438\u0437\u043e\u0440\u0430. \u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043a\u0430\u0441\u0430\u044e\u0449\u0438\u0435\u0441\u044f ZFS RAID1 \u0438 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0438 \u0441\u0431\u043e\u044f \u043e\u0434\u043d\u043e\u0433\u043e \u0438\u0437 \u0434\u0438\u0441\u043a\u043e\u0432.<br \/>  \u0416\u0435\u043b\u0435\u0437\u043e \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043f\u0440\u0435\u0434\u0441\u0442\u043e\u044f\u043b\u043e \u0440\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u044c \u043f\u0440\u043e\u0435\u043a\u0442 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u043b\u043e \u0438\u0437 \u0441\u0435\u0431\u044f \u043d\u043e\u0434\u0443 Supermicro, \u0432\u0438\u0434\u0438\u043c\u043e \u0432 \u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0438 2 node in 1U \u0441 \u043f\u0441\u0435\u0432\u0434\u043e-\u0440\u0435\u0439\u0434\u043e\u043c \u0438\u043d\u0442\u0435\u0433\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u043c \u0432 \u0447\u0438\u043f\u0441\u0435\u0442 \u043e\u0442 Intel \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0432 Proxmox. \u0412 \u0441\u0432\u044f\u0437\u0438 \u0441 \u044d\u0442\u0438\u043c \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u0438\u0441\u043f\u044b\u0442\u0430\u0442\u044c \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u043c\u043e\u0435 \u00ab\u0438\u0437 \u043a\u043e\u0440\u043e\u0431\u043a\u0438\u00bb \u0432 \u0432\u0435\u0440\u0441\u0438\u0438 4.0. \u0425\u043e\u0442\u044c \u0443\u0431\u0435\u0439\u0442\u0435 \u2014 \u044f \u043d\u0435 \u043f\u043e\u043c\u043d\u044e \u0431\u044b\u043b-\u043b\u0438 \u0442\u0430\u043a\u043e\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0432 Proxmox 3.6, \u043c\u043e\u0436\u0435\u0442 \u0438 \u0431\u044b\u043b, \u043d\u043e \u043d\u0435 \u043e\u0442\u043b\u043e\u0436\u0438\u043b\u043e\u0441\u044c \u0432 \u043f\u0430\u043c\u044f\u0442\u0438 \u0438\u0437-\u0437\u0430 \u043d\u0435\u0432\u043e\u0441\u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u043d\u043e\u0441\u0442\u0438 \u0442\u0430\u043a\u043e\u0439 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438. \u0412 \u0442\u0435\u0441\u0442\u043e\u0432\u043e\u0439 \u0441\u0442\u043e\u0439\u043a\u0435 \u0443 \u043d\u0430\u0441 \u043e\u0442\u044b\u0441\u043a\u0430\u043b\u0441\u044f \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u044b\u0439 \u0441\u0435\u0440\u0432\u0435\u0440 \u0438 \u044f \u043f\u0440\u0438\u043d\u044f\u043b\u0441\u044f \u0437\u0430 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 \u0440\u0435\u0448\u0435\u043d\u0438\u044f, \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c\u043e\u0433\u043e \u0440\u0435\u0431\u044f\u0442\u0430\u043c\u0438 \u0438\u0437 Proxmox Server Solutions.<\/p>\n<h4>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430<\/h4>\n<p>  \u041a\u0430\u043a \u0438 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0430\u043b \u2014 \u043d\u0435 \u0431\u0443\u0434\u0443 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0443 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e, \u0437\u0430\u043e\u0441\u0442\u0440\u044e \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u0432\u0430\u0436\u043d\u044b\u0445 \u043c\u043e\u043c\u0435\u043d\u0442\u0430\u0445.<\/p>\n<p>  \u0412\u044b\u0431\u0438\u0440\u0430\u0435\u043c zfs RAID1:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/356\/43b\/3fa\/35643b3fa54142cdb8f175103e337a6e.jpg\" alt=\"image\"\/><\/p>\n<p>  \u0421\u0435\u0440\u0432\u0435\u0440 \u0442\u0435\u0441\u0442\u043e\u0432\u044b\u0439 \u0438 \u043d\u0435\u0442 \u043f\u043e\u0434\u043f\u0438\u0441\u043a\u0438 \u043d\u0430 \u043a\u043e\u043c\u043c\u0435\u0440\u0447\u0435\u0441\u043a\u0438\u0439 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439. \u0412 \/etc\/apt\/sources.list \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u0439:<\/p>\n<pre><code class=\"bash\">deb http:\/\/download.proxmox.com\/debian jessie pve-no-subscription <\/code><\/pre>\n<p>  \u0412 \/etc\/apt\/sources.list.d\/pve-enterprise.list \u0437\u0430\u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0438\u0440\u0443\u0435\u043c \u043a\u043e\u043c\u043c\u0435\u0440\u0447\u0435\u0441\u043a\u0438\u0439.<\/p>\n<p>  \u041d\u0443 \u0438 \u0432\u0434\u0440\u0443\u0433 \u0437\u0430\u0431\u0443\u0434\u0435\u0442\u0435:<\/p>\n<pre><code class=\"bash\">root@pve1:~# apt-get update && apt-get upgrade <\/code><\/pre>\n<p>  \u0421\u043c\u043e\u0442\u0440\u0438\u043c \u0447\u0442\u043e \u043d\u0430\u043c \u043d\u0430\u0440\u0435\u0437\u0430\u043b \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u044f\u0442\u043e\u0440 \u043d\u0430 \u0434\u0438\u0441\u043a\u0430\u0445 (\u043f\u0440\u0438\u0432\u043e\u0436\u0443 \u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0430\u0441\u0442\u044c \u0432\u044b\u0432\u043e\u0434\u0430):<\/p>\n<pre><code class=\"bash\">root@pve1:~# fdisk -l \/dev\/sd*  Disk \/dev\/sda: 149.1 GiB, 160041885696 bytes, 312581808 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical\/physical): 512 bytes \/ 512 bytes I\/O size (minimum\/optimal): 512 bytes \/ 512 bytes Disklabel type: gpt Disk identifier: 758FA29C-4F49-4315-BA0C-F3CCC921FA01  Device         Start       End   Sectors  Size Type \/dev\/sda1         34      2047      2014 1007K BIOS boot \/dev\/sda2       2048 312565389 312563342  149G Solaris \/usr & Apple ZFS \/dev\/sda9  312565390 312581774     16385    8M Solaris reserved 1  Disk \/dev\/sdb: 149.1 GiB, 160041885696 bytes, 312581808 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical\/physical): 512 bytes \/ 512 bytes I\/O size (minimum\/optimal): 512 bytes \/ 512 bytes Disklabel type: gpt Disk identifier: 3CD4B489-A51D-4354-8018-B1391F52B08D  Device         Start       End   Sectors  Size Type \/dev\/sdb1         34      2047      2014 1007K BIOS boot \/dev\/sdb2       2048 312565389 312563342  149G Solaris \/usr & Apple ZFS \/dev\/sdb9  312565390 312581774     16385    8M Solaris reserved 1 <\/code><\/pre>\n<p>  \u0413\u043b\u044f\u043d\u0435\u043c \u043d\u0430 \u043d\u0430\u0448 \u043c\u0430\u0441\u0441\u0438\u0432:<\/p>\n<pre><code class=\"bash\">root@pve1:~# zpool status rpool   pool: rpool  state: ONLINE   scan: none requested config:          NAME        STATE     READ WRITE CKSUM         rpool       ONLINE       0     0     0           mirror-0  ONLINE       0     0     0             sda2    ONLINE       0     0     0             sdb2    ONLINE       0     0     0  errors: No known data errors <\/code><\/pre>\n<p>  \u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u044f\u0442\u043e\u0440 Proxmox \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b \u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a \u043d\u0430 \u043e\u0431\u0430 \u0440\u0430\u0437\u0434\u0435\u043b\u0430 \u2014 \u043e\u0442\u043b\u0438\u0447\u043d\u043e!<\/p>\n<h4>\u0422\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435<\/h4>\n<p>  \u0418\u043c\u0438\u0442\u0438\u0440\u0443\u0435\u043c \u043e\u0442\u043a\u0430\u0437 \u0436\u0435\u0441\u0442\u043a\u043e\u0433\u043e \u0434\u0438\u0441\u043a\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c:<br \/>   \u2014 \u0432\u044b\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0441\u0435\u0440\u0432\u0435\u0440;<br \/>   \u2014 \u0432\u044b\u0434\u0435\u0440\u0433\u0438\u0432\u0430\u0435\u043c \u043e\u0434\u043d\u0443 \u0438\u0437 \u043a\u043e\u0440\u0437\u0438\u043d;<br \/>   \u2014 \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0441\u0435\u0440\u0432\u0435\u0440.<\/p>\n<p>  \u0421\u0435\u0440\u0432\u0435\u0440 \u043f\u0440\u0435\u043a\u0440\u0430\u0441\u043d\u043e \u0433\u0440\u0443\u0437\u0438\u0442\u0441\u044f \u043d\u0430 \u043b\u044e\u0431\u043e\u043c \u0438\u0437 \u0434\u0432\u0443\u0445 \u043e\u0441\u0442\u0430\u0432\u0448\u0438\u0445\u0441\u044f \u0434\u0438\u0441\u043a\u043e\u0432, \u043c\u0430\u0441\u0441\u0438\u0432 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0432 \u0440\u0435\u0436\u0438\u043c\u0435 DEGRADED \u0438 \u043b\u044e\u0431\u0435\u0437\u043d\u043e \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043a\u0430\u043a\u043e\u0439 \u0434\u0438\u0441\u043a \u043d\u0430\u043c \u043d\u0430\u0434\u043e \u0441\u043c\u0435\u043d\u0438\u0442\u044c \u0438 \u043a\u0430\u043a \u044d\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c:<\/p>\n<pre><code class=\"bash\">root@pve1:~# zpool status rpool   pool: rpool  state: DEGRADED status: One or more devices could not be used because the label is missing or         invalid.  Sufficient replicas exist for the pool to continue         functioning in a degraded state. action: Replace the device using 'zpool replace'.    see: http:\/\/zfsonlinux.org\/msg\/ZFS-8000-4J   scan: none requested config:          NAME                      STATE     READ WRITE CKSUM         rpool                     DEGRADED     0     0     0           mirror-0                DEGRADED     0     0     0             14981255989033513363  FAULTED      0     0     0  was \/dev\/sda2             sda2                  ONLINE       0     0     0  errors: No known data errors <\/code><\/pre>\n<p>  \u0415\u0441\u043b\u0438 \u0432\u0435\u0440\u043d\u0443\u0442\u044c \u0438\u0437\u0432\u043b\u0435\u0447\u0435\u043d\u043d\u044b\u0439 \u0434\u0438\u0441\u043a \u043d\u0430 \u043c\u0435\u0441\u0442\u043e \u2014 \u043e\u043d \u043f\u0440\u0435\u043a\u0440\u0430\u0441\u043d\u043e \u00ab\u0432\u0441\u0442\u0430\u0435\u0442\u00bb \u043e\u0431\u0440\u0430\u0442\u043d\u043e \u0432 \u0437\u0435\u0440\u043a\u0430\u043b\u043e:<\/p>\n<pre><code class=\"bash\">root@pve1:~# zpool status rpool   pool: rpool  state: ONLINE status: One or more devices has experienced an unrecoverable error.  An         attempt was made to correct the error.  Applications are unaffected. action: Determine if the device needs to be replaced, and clear the errors         using 'zpool clear' or replace the device with 'zpool replace'.    see: http:\/\/zfsonlinux.org\/msg\/ZFS-8000-9P   scan: resilvered 1.29M in 0h0m with 0 errors on Wed Dec  2 08:37:46 2015 config:          NAME        STATE     READ WRITE CKSUM         rpool       ONLINE       0     0     0           mirror-0  ONLINE       0     0     0             sda2    ONLINE       0     0     3             sdb2    ONLINE       0     0     0  errors: No known data errors <\/code><\/pre>\n<p>  \u0418\u043d\u0441\u0446\u0435\u043d\u0438\u0440\u0443\u0435\u043c \u0437\u0430\u043c\u0435\u043d\u0443 \u0434\u0438\u0441\u043a\u0430 \u043d\u0430 \u043d\u043e\u0432\u044b\u0439. \u042f \u043f\u0440\u043e\u0441\u0442\u043e \u0432\u0437\u044f\u043b \u0434\u0440\u0443\u0433\u0443\u044e \u043a\u043e\u0440\u0437\u0438\u043d\u0443 \u0441 \u0442\u0430\u043a\u0438\u043c-\u0436\u0435 \u0434\u0438\u0441\u043a\u043e\u043c \u0438\u0437 \u0441\u0442\u0430\u0440\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430. \u0421\u0442\u0430\u0432\u0438\u043c \u043a\u043e\u0440\u0437\u0438\u043d\u0443 \u043d\u0430 \u0433\u043e\u0440\u044f\u0447\u0443\u044e \u0434\u043b\u044f \u0431\u043e\u043b\u044c\u0448\u0435\u0439 \u043f\u0440\u0430\u0432\u0434\u043e\u043f\u043e\u0434\u043e\u0431\u043d\u043e\u0441\u0442\u0438:<\/p>\n<pre><code class=\"bash\">root@pve1:~# fdisk -l \/dev\/sdb  Disk \/dev\/sdb: 149.1 GiB, 160041885696 bytes, 312581808 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical\/physical): 512 bytes \/ 512 bytes I\/O size (minimum\/optimal): 512 bytes \/ 512 bytes Disklabel type: gpt Disk identifier: 38BE38AC-00D9-4680-88FC-0876378526BC  Device      Start       End   Sectors   Size Type \/dev\/sdb1      40    409639    409600   200M EFI System \/dev\/sdb2  411648 312580095 312168448 148.9G Microsoft basic data <\/code><\/pre>\n<p>  \u0423\u0441\u043b\u043e\u0432\u043d\u043e \u043d\u0435\u0438\u0441\u043f\u0440\u0430\u0432\u043d\u044b\u0439 \u0434\u0438\u0441\u043a \u0443 \u043d\u0430\u0441 <b>\/dev\/sdb<\/b> \u0438 \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u044f \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u0443\u044e \u0435\u043c\u043a\u043e\u0441\u0442\u044c \u0438 \u0433\u0435\u043e\u043c\u0435\u0442\u0440\u0438\u044e \u043a\u043e\u043f\u0438\u0440\u0443\u0435\u043c \u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u0440\u0430\u0437\u0434\u0435\u043b\u043e\u0432 1:1 \u0441 \u0438\u0441\u043f\u0440\u0430\u0432\u043d\u043e\u0433\u043e \u0434\u0438\u0441\u043a\u0430 <b>\/dev\/sda<\/b><\/p>\n<pre><code class=\"bash\">root@pve1:~# sgdisk -R \/dev\/sdb \/dev\/sda The operation has completed successfully. <\/code><\/pre>\n<p>  \u0413\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u043c \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u0435 UUID \u0434\u043b\u044f \/dev\/sdb  <\/p>\n<pre><code class=\"bash\">root@pve1:~# sgdisk -G \/dev\/sdb The operation has completed successfully. <\/code><\/pre>\n<p>  \u0421\u0442\u0430\u0432\u0438\u043c \u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a \u043d\u0430 \u0437\u0430\u043c\u0435\u043d\u0435\u043d\u043d\u044b\u0439 \u0434\u0438\u0441\u043a \u0438 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u043c GRUB:<\/p>\n<pre><code class=\"bash\">root@pve1:~# grub-install --recheck \/dev\/sdb Installing for i386-pc platform. Installation finished. No error reported. root@pve1:~# update-grub Generating grub configuration file ... Found linux image: \/boot\/vmlinuz-4.2.3-2-pve Found initrd image: \/boot\/initrd.img-4.2.3-2-pve Found linux image: \/boot\/vmlinuz-4.2.2-1-pve Found initrd image: \/boot\/initrd.img-4.2.2-1-pve Found memtest86+ image: \/ROOT\/pve-1@\/boot\/memtest86+.bin Found memtest86+ multiboot image: \/ROOT\/pve-1@\/boot\/memtest86+_multiboot.bin done root@pve1:~# update-initramfs -u update-initramfs: Generating \/boot\/initrd.img-4.2.3-2-pve <\/code><\/pre>\n<p>  \u041e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c \u0441\u0431\u043e\u0439\u043d\u044b\u0439 \u0434\u0438\u0441\u043a \u0432 \u043c\u0430\u0441\u0441\u0438\u0432\u0435 \u043d\u0430 \u0441\u0432\u0435\u0436\u0435\u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u0439, \u043d\u043e \u0442\u0443\u0442 \u0432\u0441\u043f\u043b\u044b\u0432\u0430\u0435\u0442 \u043e\u0434\u043d\u0430 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430, \u043f\u043e\u0440\u043e\u0436\u0434\u0435\u043d\u043d\u0430\u044f \u043c\u0435\u0442\u043e\u0434\u043e\u043c \u0430\u0434\u0440\u0435\u0441\u0430\u0446\u0438\u0438 \u0434\u0438\u0441\u043a\u043e\u0432 \u0432 \u043c\u0430\u0441\u0441\u0438\u0432\u0435 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u043d\u043e\u0439 \u0432 \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u044f\u0442\u043e\u0440\u0435. \u0410 \u0438\u043c\u0435\u043d\u043d\u043e \u2014 \u0434\u0438\u0441\u043a\u0438 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u044b \u0432 \u043c\u0430\u0441\u0441\u0438\u0432 \u043f\u043e \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u043e\u043c\u0443 \u0430\u0434\u0440\u0435\u0441\u0443 \u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u0430 <i>zpool replace rpool \/dev\/sdb2<\/i> \u043f\u043e\u043a\u0430\u0436\u0435\u0442 \u043d\u0430\u043c \u0432\u043e\u0442 \u0442\u0430\u043a\u0443\u044e \u0444\u0438\u0433\u0443:<\/p>\n<pre><code class=\"bash\">root@pve1:~# zpool replace rpool \/dev\/sdb2 cannot replace \/dev\/sdb2 with \/dev\/sdb2: \/dev\/sdb2 is busy <\/code><\/pre>\n<p>  \u0427\u0442\u043e \u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u043d\u043e \u043b\u043e\u0433\u0438\u0447\u043d\u043e, \u043d\u0435\u043b\u044c\u0437\u044f \u0441\u043c\u0435\u043d\u0438\u0442\u044c \u0441\u0431\u043e\u0439\u043d\u044b\u0439 \u0434\u0438\u0441\u043a \u043d\u0430 <b>\/dev\/sdb2<\/b> \u0442\u0430\u043a \u043a\u0430\u043a \u0441\u0431\u043e\u0439\u043d\u044b\u0439 \u0434\u0438\u0441\u043a \u0438 \u0435\u0441\u0442\u044c <b>\/dev\/sdb2<\/b>, \u0430 \u0437\u0430\u0447\u0435\u043c \u043d\u0430\u043c \u043f\u043e\u0432\u0442\u043e\u0440\u044f\u0442\u044c \u043d\u0435\u0434\u043e\u0440\u0430\u0431\u043e\u0442\u043a\u0443 \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u044f\u0442\u043e\u0440\u0430? \u041f\u0440\u0438\u0432\u044f\u0436\u0435\u043c \u0434\u0438\u0441\u043a \u043f\u043e UUID, \u044f \u0432\u043e\u043e\u0431\u0449\u0435 \u0443\u0436\u0435 \u0437\u0430\u0431\u044b\u043b \u0442\u043e \u0432\u0440\u0435\u043c\u044f \u043a\u043e\u0433\u0434\u0430 \u0434\u0438\u0441\u043a\u0438 \u043f\u0440\u0438\u0431\u0438\u0432\u0430\u043b\u0438\u0441\u044c \u0433\u0432\u043e\u0437\u0434\u044f\u043c\u0438 \u0432\u0438\u0434\u0430 \/dev\/sd\u0425\u0425 \u2014 UUID \u043d\u0430\u0448\u0435 \u0432\u0441\u0435:<\/p>\n<pre><code class=\"bash\">root@pve1:~# zpool replace rpool \/dev\/disk\/by-partuuid\/cf590df4-72b7-4cfc-a965-001ffe56d0c9 Make sure to wait until resilver is done before rebooting. <\/code><\/pre>\n<p>  \u041d\u0430\u0441 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0434\u0438\u043b\u0438 \u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u0434\u043e\u0436\u0434\u0430\u0442\u044c\u0441\u044f \u043e\u043a\u043e\u043d\u0447\u0430\u043d\u0438\u044f \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u0438 \u043f\u0440\u0435\u0436\u0434\u0435 \u0447\u0435\u043c \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0442\u044c\u0441\u044f. \u041f\u0440\u043e\u0432\u0435\u0440\u0438\u043c \u0441\u0442\u0430\u0442\u0443\u0441 \u043c\u0430\u0441\u0441\u0438\u0432\u0430:<\/p>\n<pre><code class=\"bash\">root@pve1:~# zpool status rpool   pool: rpool  state: ONLINE status: One or more devices is currently being resilvered.  The pool will         continue to function, possibly in a degraded state. action: Wait for the resilver to complete.   scan: resilver in progress since Wed Dec  2 18:07:01 2015         92.8M scanned out of 920M at 8.44M\/s, 0h1m to go         92.5M resilvered, 10.09% done config:          NAME                                      STATE     READ WRITE CKSUM         rpool                                     ONLINE       0     0     0           mirror-0                                ONLINE       0     0     0             sda2                                  ONLINE       0     0     0             cf590df4-72b7-4cfc-a965-001ffe56d0c9  ONLINE       0     0     0  (resilvering)  errors: No known data errors <\/code><\/pre>\n<p>  \u0414\u043b\u044f \u043e\u0431\u0449\u0435\u0433\u043e \u043f\u043e\u0440\u044f\u0434\u043a\u0443 \u0432\u043a\u043b\u044e\u0447\u0438\u043c \u0438 sda2 \u0432 \u043c\u0430\u0441\u0441\u0438\u0432 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f UUID:<\/p>\n<pre><code class=\"bash\">root@pve1:~# zpool detach rpool \/dev\/sda2 root@pve1:~# zpool attach rpool \/dev\/disk\/by-partuuid\/cf590df4-72b7-4cfc-a965-001ffe56d0c9 \/dev\/disk\/by-partuuid\/8263d908-e9a8-4ace-b01e-0044fa519037 Make sure to wait until resilver is done before rebooting. <\/code><\/pre>\n<p>  \u041f\u043e\u043a\u0430 \u044f \u043a\u043e\u043f\u0438\u043f\u0430\u0441\u0442\u0438\u043b \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0435 2 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0438\u0437 \u043a\u043e\u043d\u0441\u043e\u043b\u0438 \u0432 \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440 \u043c\u0430\u0441\u0441\u0438\u0432 \u0443\u0436\u0435 \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043b\u0441\u044f:<\/p>\n<pre><code class=\"bash\">root@pve1:~# zpool status rpool   pool: rpool  state: ONLINE   scan: resilvered 920M in 0h1m with 0 errors on Wed Dec  2 18:36:37 2015 config:          NAME                                      STATE     READ WRITE CKSUM         rpool                                     ONLINE       0     0     0           mirror-0                                ONLINE       0     0     0             cf590df4-72b7-4cfc-a965-001ffe56d0c9  ONLINE       0     0     0             8263d908-e9a8-4ace-b01e-0044fa519037  ONLINE       0     0     0  errors: No known data errors <\/code><\/pre>\n<p>  <\/p>\n<h4>\u0412\u044b\u0432\u043e\u0434<\/h4>\n<p>  \u041a\u043e\u0433\u0434\u0430 \u043d\u0435\u0442 \u0430\u043f\u043f\u0430\u0440\u0430\u0442\u043d\u043e\u0433\u043e Raid-\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430 \u0432\u043f\u043e\u043b\u043d\u0435 \u0443\u0434\u043e\u0431\u043d\u043e \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c \u0440\u0430\u0437\u043c\u0435\u0449\u0435\u043d\u0438\u0435 \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u0433\u043e \u0440\u0430\u0437\u0434\u0435\u043b\u0430 \u043d\u0430 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u043c \u0432 Proxmox 4.0 \u00ab\u0438\u0437 \u043a\u043e\u0440\u043e\u0431\u043a\u0438\u00bb zfs RAID1. \u041a\u043e\u043d\u0435\u0447\u043d\u043e-\u0436\u0435 \u0432\u0441\u0435\u0433\u0434\u0430 \u043e\u0441\u0442\u0430\u0435\u0442\u0441\u044f \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u0430 \/boot \u0438 \u043a\u043e\u0440\u043d\u044f \u043d\u0430 \u0437\u0435\u0440\u043a\u0430\u043b\u0430 \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0435 \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0430\u043c\u0438 mdadm, \u0447\u0442\u043e \u0442\u043e\u0436\u0435 \u043d\u0435\u043e\u0434\u043d\u043e\u043a\u0440\u0430\u0442\u043d\u043e \u0431\u044b\u043b\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u043e \u043c\u043d\u043e\u0439 \u0438 \u0434\u043e \u0441\u0438\u0445 \u043f\u043e\u0440 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043d\u0435 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u0441\u0435\u0440\u0432\u0435\u0440\u0430\u0445, \u043d\u043e \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u043d\u044b\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u043f\u0440\u043e\u0449\u0435 \u0438 \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u0442\u0441\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430\u043c\u0438 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0430 \u00ab\u0438\u0437 \u043a\u043e\u0440\u043e\u0431\u043a\u0438\u00bb.       <\/p>\n<div class=\"clear\"><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/272249\/\"> http:\/\/habrahabr.ru\/post\/272249\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>       \u041f\u043e\u0434\u0432\u0435\u0440\u043d\u0443\u043b\u0430\u0441\u044c \u043c\u043d\u0435 \u0437\u0430\u0434\u0430\u0447\u0430 \u2014 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c Proxmox \u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u043e\u043a \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u0432\u0441\u0435\u0433\u043e \u0441 2 \u0434\u0438\u0441\u043a\u0430\u043c\u0438. \u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043b\u043e\u0441\u044c \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0442\u044c \u043d\u0443 \u0445\u043e\u0442\u044c \u043a\u0430\u043a\u0443\u044e-\u0442\u043e \u043d\u0430\u0434\u0435\u0436\u043d\u043e\u0441\u0442\u044c \u0438 \u043f\u0440\u043e\u0441\u0442\u043e\u0442\u0443 \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0445 \u0441 \u0432\u044b\u0445\u043e\u0434\u043e\u043c \u0438\u0437 \u0441\u0442\u0440\u043e\u044f \u043e\u0434\u043d\u043e\u0433\u043e \u0438\u0437 \u0434\u0438\u0441\u043a\u043e\u0432. \u0414\u0430\u043b\u0435\u0435 \u0432 \u0437\u0430\u043c\u0435\u0442\u043a\u0435 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043d\u0430 \u0441\u0442\u0435\u043d\u0434\u0435.  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-269554","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/269554","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=269554"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/269554\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=269554"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=269554"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=269554"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}