{"id":210856,"date":"2014-01-30T16:02:03","date_gmt":"2014-01-30T12:02:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=210856"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=210856","title":{"rendered":"<span class=\"post_title\">\u041e \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 Thin Provision \u0432 LVM2<\/span>"},"content":{"rendered":"<div class=\"content html_format\">   \t\u0421 \u0432\u0435\u0440\u0441\u0438\u0438 RHEL 6.4 \u0432 LVM2 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0430 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 thin provision. \u041d\u0430 \u0440\u0443\u0441\u0441\u043a\u0438\u0439 \u044f \u0431\u044b \u043f\u0435\u0440\u0435\u0432\u0451\u043b \u044d\u0442\u043e \u043a\u0430\u043a \u00ab\u0442\u043e\u043d\u043a\u043e\u0435 \u0440\u0435\u0437\u0435\u0440\u0432\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u00bb, \u0445\u043e\u0442\u044f \u043f\u0435\u0440\u0435\u0432\u043e\u0434 \u043d\u0435\u0442\u043e\u0447\u0435\u043d \u0438 \u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u043d\u043e \u043d\u0435 \u0441\u043e\u0433\u043b\u0430\u0441\u0443\u0435\u0442\u0441\u044f \u0441 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u044c\u044e, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0434\u0430\u043b\u0435\u0435 \u043d\u0430\u0440\u0430\u0432\u043d\u0435 \u0441 \u0440\u0443\u0441\u0441\u043a\u0438\u043c \u0431\u0443\u0434\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0430\u043d\u0433\u043b\u0438\u0439\u0441\u043a\u043e\u0435 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u0435. <\/p>\n<p>  <b>Thin provisioning <\/b> \u2014 \u044d\u0442\u043e \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0442\u043e\u043c\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043c\u0435\u0441\u0442\u0430 \u0438 \u00ab\u0440\u0430\u0441\u0442\u0443\u0442\u00bb \u043f\u043e \u043c\u0435\u0440\u0435 \u0437\u0430\u043f\u0438\u0441\u0438 \u0432 \u043d\u0438\u0445 \u0434\u0430\u043d\u043d\u044b\u0445. \u0412 ZFS \u044d\u0442\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043e \u0434\u0430\u0432\u043d\u043e \u043f\u043e \u0441\u0430\u043c\u043e\u0439 \u0444\u0438\u043b\u043e\u0441\u043e\u0444\u0438\u0438 \u044d\u0442\u043e\u0439 \u0424\u0421. \u0412 VMware \u044d\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0432 \u043a\u0430\u0436\u0434\u043e\u043c \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0435. \u0414\u043e\u0448\u043b\u043e \u0434\u0435\u043b\u043e \u0434\u043e LVM2, \u0448\u0438\u0440\u043e\u043a\u043e \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u043c\u043e\u043c \u0432 Linux \u0432 \u043d\u0430\u0448\u0438 \u0434\u043d\u0438. \u0422\u0430\u043a\u0436\u0435 \u043e\u0434\u043d\u0438\u043c \u0438\u0437 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0445 \u043d\u043e\u0432\u043e\u0432\u0432\u0435\u0434\u0435\u043d\u0438\u0439 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f thin snapshots, \u043a\u043e\u0433\u0434\u0430 \u0434\u043b\u044f \u0441\u043d\u044d\u043f\u0448\u043e\u0442\u043e\u0432 \u043d\u0435\u0442 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u0440\u0435\u0437\u0435\u0440\u0432\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043c\u0435\u0441\u0442\u043e \u0437\u0430\u0440\u0430\u043d\u0435\u0435, \u0430 \u043e\u043d \u00ab\u0440\u0430\u0441\u0442\u0451\u0442\u00bb \u0432\u043c\u0435\u0441\u0442\u0435 \u0441 \u0438\u0437\u043c\u0435\u043d\u0451\u043d\u043d\u044b\u043c\u0438 \u0434\u0430\u043d\u043d\u044b\u043c\u0438. \u0422\u0430\u043a\u0436\u0435 \u0440\u0430\u0437\u0440\u0435\u0448\u0430\u044e\u0442\u0441\u044f \u0438 \u043f\u043e\u043e\u0449\u0440\u044f\u044e\u0442\u0441\u044f \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0435 \u0441\u043d\u044d\u043f\u0448\u043e\u0442\u044b (\u0441\u043d\u044d\u043f\u0448\u043e\u0442\u044b \u0441\u043d\u044d\u043f\u0448\u043e\u0442\u043e\u0432 \u0432 \u043b\u044e\u0431\u043e\u0439 \u0433\u043b\u0443\u0431\u0438\u043d\u043e\u0439), \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u0437\u0430\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043e\u0431 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0438 \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u043f\u0430\u0434\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438. \u041e \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u043d\u044e\u0430\u043d\u0441\u0430\u0445 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u043d\u043e \u0432 \u0441\u0442\u0430\u0442\u044c\u0435.<\/p>\n<p>  \u0414\u043b\u044f \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u044b thin provision \u0432 LVM2 \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u044f\u0434\u0440\u043e 3.4. \u0412 Red Hat \u0431\u044d\u043a\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043e \u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043d\u0430 \u0438\u0445 \u00ab\u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u043e\u043c\u00bb 2.6.32.<br \/>  \u0412 \u0431\u043b\u0438\u0437\u043a\u043e\u0439 \u043c\u043d\u0435 Debian Wheezy thin provisioning \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u0432\u0432\u0438\u0434\u0443 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u044f \u043a\u043b\u044e\u0447\u0430 \u043f\u0440\u0438 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438 lvm2 &#8212;with-thin=internal \u0438 \u0434\u0440\u0443\u0433\u0438\u0445 \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u0435\u0439. \u041f\u0440\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438, \u0434\u043b\u044f \u0446\u0435\u043b\u0435\u0439 \u0442\u0435\u0441\u0442\u0430, \u043c\u043e\u0436\u043d\u043e \u0441\u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u044d\u0442\u043e\u0442 \u043f\u0430\u043a\u0435\u0442 \u0438\u0437 \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u043e\u0432.<\/p>\n<p>  \u041c\u0435\u043d\u044f \u0431\u043e\u043b\u044c\u0448\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043e\u0432\u0430\u043b\u0438 \u043d\u0435 \u0441\u043d\u044d\u043f\u0448\u043e\u0442\u044b, \u0430 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u00ab\u0442\u043e\u043d\u043a\u0438\u0445 \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0442\u043e\u043c\u043e\u0432\u00bb (Thin Logical Volume) \u0434\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0430\u0445. \u0414\u043b\u044f \u043d\u0435\u0442\u0435\u0440\u043f\u0435\u043b\u0438\u0432\u044b\u0445 \u0441\u043a\u0430\u0436\u0443 \u0441\u0440\u0430\u0437\u0443 \u2014 \u043f\u0430\u0434\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u043d\u0430\u0431\u043b\u044e\u0434\u0430\u0435\u0442\u0441\u044f, \u0438 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0435. \u041f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0441\u0442\u0438 \u043d\u0438\u0436\u0435.<br \/>  <a name=\"habracut\"><\/a><br \/>  \u041d\u0430 \u043e\u0434\u043d\u043e\u043c \u0438 \u0442\u043e\u043c \u0436\u0435 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u0441 CentOS 6.4 2.6.32-279.2.1.el6.x86_64 \u0441\u043e\u0437\u0434\u0430\u0451\u043c \u00ab\u043f\u0443\u043b \u0442\u043e\u043d\u043a\u043e\u0433\u043e \u0440\u0435\u0437\u0435\u0440\u0432\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f\u00bb (thin pool):<\/p>\n<pre><code class=\"bash\">lvcreate -L 50G -T \/dev\/VG\/thin_pool<\/code><\/pre>\n<p>  \u0438 \u043e\u0431\u044b\u0447\u043d\u044b\u0439 \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0442\u043e\u043c (LV):<\/p>\n<pre><code class=\"bash\">lvcreate -L 50G \/dev\/VG\/thick_vol<\/code><\/pre>\n<p>  \u0418\u0437\u043c\u0435\u0440\u0438\u043c \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u043b\u0438\u043d\u0435\u0439\u043d\u043e\u0433\u043e \u0447\u0442\u0435\u043d\u0438\u044f \u0438 \u0437\u0430\u043f\u0438\u0441\u0438 \u043d\u0430 \u044d\u0442\u0438 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430:<\/p>\n<h5>Thin pool:<\/h5>\n<h6>\u0417\u0430\u043f\u0438\u0441\u044c:<\/h6>\n<p>  <\/p>\n<pre><code class=\"bash\">dd if=\/dev\/zero of=\/dev\/mapper\/VG-thin_pool  bs=1M count=1000 oflag=direct 1000+0 records in 1000+0 records out 1048576000 bytes (1.0 GB) copied, 15.9126 s, 65.9 MB\/s<\/code><\/pre>\n<h6>\u0427\u0442\u0435\u043d\u0438\u0435:<\/h6>\n<p>  <\/p>\n<pre><code class=\"bash\">dd if=\/dev\/mapper\/VG-thin_pool of=\/dev\/null bs=1M count=1000 iflag=direct              1000+0 records in 1000+0 records out 1048576000 bytes (1.0 GB) copied, 4.19247 s, 250 MB\/s<\/code><\/pre>\n<h5>LV:<\/h5>\n<p>   \u2014 \u0417\u0430\u043f\u0438\u0441\u044c:<\/p>\n<pre><code class=\"bash\">FIO: \u0417\u0430\u043f\u0438\u0441\u044c: iodepth=2, bw=943120 B\/s, iops=230, avg=8645.48 usec<\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\"># dd if=\/dev\/zero of=\/dev\/VG\/thick_vol  bs=1M count=1000 oflag=direct  1000+0 records in 1000+0 records out 1048576000 bytes (1.0 GB) copied, 15.8432 s, 66.2 MB\/s<\/code><\/pre>\n<p>   \u2014 \u0427\u0442\u0435\u043d\u0438\u0435:  <\/p>\n<pre><code class=\"bash\">FIO: \u0427\u0442\u0435\u043d\u0438\u0435: iodepth=2, bw=775490 B\/s, iops=189, avg=10536.95 usec<\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\"># dd if=\/dev\/VG\/thick_vol of=\/dev\/null bs=1M count=1000 iflag=direct 1000+0 records in 1000+0 records out 1048576000 bytes (1.0 GB) copied, 4.04925 s, 259 MB\/s<\/code><\/pre>\n<p>  \u041a\u0430\u043a \u0432\u0438\u0434\u043d\u043e \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u043d\u0435 \u0440\u0430\u0437\u043b\u0438\u0447\u0430\u0435\u0442\u0441\u044f \u0434\u043b\u044f LV \u0438 thin pool. <\/p>\n<h4>\u0421\u043e\u0437\u0434\u0430\u0451\u043c thin volume (\u0442\u043e\u043d\u043a\u0438\u0439 \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0442\u043e\u043c) \u0432 thin pool<\/h4>\n<p>  <\/p>\n<pre><code class=\"bash\">lvcreate -V 100G -T -n thin_vol \/dev\/mapper\/VG-thin_pool<\/code><\/pre>\n<p>  \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c:<\/p>\n<h6>\u0417\u0430\u043f\u0438\u0441\u044c:<\/h6>\n<p>  <\/p>\n<pre><code class=\"bash\">FIO: \u0417\u0430\u043f\u0438\u0441\u044c: iodepth=2, bw=1100.5KB\/s, iops=275, avg=7241.55 usec<\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\">dd if=\/dev\/zero of=\/dev\/mapper\/VG-thin_vol  bs=1M count=1000 oflag=direct 1000+0 records in 1000+0 records out 1048576000 bytes (1.0 GB) copied, 38.7505 s, 27.1 MB\/s<\/code><\/pre>\n<h6>\u0427\u0442\u0435\u043d\u0438\u0435:<\/h6>\n<p>  <\/p>\n<pre><code class=\"bash\">FIO: \u0427\u0442\u0435\u043d\u0438\u0435: iodepth=256, bw=86100KB\/s, iops=21524, avg=11860.53 usec<\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\">dd if=\/dev\/mapper\/VG-thin_vol of=\/dev\/null bs=1M count=1000 iflag=direct      1000+0 records in 1000+0 records out 1048576000 bytes (1.0 GB) copied, 4.45363 s, 235 MB\/s<\/code><\/pre>\n<p>  \u041e\u0447\u0435\u043d\u044c \u0445\u043e\u0440\u043e\u0448\u043e \u0437\u0430\u043c\u0435\u0442\u043d\u043e, \u0447\u0442\u043e \u043b\u0438\u043d\u0435\u0439\u043d\u0430\u044f \u0437\u0430\u043f\u0438\u0441\u044c \u043d\u0430 thin volume \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u0432 2 \u0440\u0430\u0437\u0430 \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u0435\u0435, \u0447\u0435\u043c \u043d\u0430 \u043e\u0431\u044b\u0447\u043d\u044b\u0439 LV (27.1 MB\/s \u043f\u0440\u043e\u0442\u0438\u0432 66.2 MB\/s). \u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e\u0439 \u0437\u0430\u043f\u0438\u0441\u0438 \u0434\u0430\u0436\u0435 \u0432\u043e\u0437\u0440\u0430\u0441\u0442\u0430\u0435\u0442, \u0430 \u0434\u043b\u044f \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e\u0433\u043e \u0447\u0442\u0435\u043d\u0438\u044f \u0432\u043e\u043e\u0431\u0449\u0435 \u043d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u0437\u0430\u043c\u0435\u0440\u0438\u0442\u044c \u0440\u0435\u0430\u043b\u044c\u043d\u0443\u044e \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u2014 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u0447\u0442\u0435\u043d\u0438\u044f \u0438\u0437 \u043a\u0435\u0448\u0430, \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u0441\u0431\u0440\u043e\u0441 \u043a\u0435\u0448\u0430 \u043d\u0435 \u043f\u043e\u043c\u043e\u0433.<\/p>\n<p>  \u041f\u0430\u0434\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u043b\u0438\u043d\u0435\u0439\u043d\u043e\u0439 \u0437\u0430\u043f\u0438\u0441\u0438 \u043d\u0430\u0441\u0442\u043e\u0440\u0430\u0436\u0438\u0432\u0430\u0435\u0442, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u043f\u0440\u043e\u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043d\u0430 \u0434\u0440\u0443\u0433\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u0435, \u0442\u0430\u043a\u0436\u0435 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043d\u0430 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u043d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 \u0444\u0430\u0439\u043b\u043e\u0432\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b. Debian Wheezy 7.3 3.10-0.bpo.3-amd64 SSD \u0434\u0438\u0441\u043a<\/p>\n<p>  \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c:<\/p>\n<h4>LV:<\/h4>\n<h6>\u0417\u0430\u043f\u0438\u0441\u044c:<\/h6>\n<p>  <\/p>\n<pre><code class=\"bash\">dd if=\/dev\/zero of=\/delete.img bs=1M count=1000 oflag=direct 1000+0 records in 1000+0 records out 1048576000 bytes (1.0 GB) copied, 3.49623 s, 300 MB\/s<\/code><\/pre>\n<h6>\u0427\u0442\u0435\u043d\u0438\u0435:<\/h6>\n<p>  <\/p>\n<pre><code class=\"bash\">FIO: \u0427\u0442\u0435\u043d\u0438\u0435: iodepth=384, bw=158839KB\/s, iops=39709, avg= 9.64 msec<\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\">dd if=\/delete.img of=\/dev\/null bs=1M count=1000 iflag=direct 1000+0 records in 1000+0 records out 1048576000 bytes (1.0 GB) copied, 2.31352 s, 453 MB\/s<\/code><\/pre>\n<h4>Thin LV:<\/h4>\n<h6>\u0417\u0430\u043f\u0438\u0441\u044c:<\/h6>\n<p>  <\/p>\n<pre><code class=\"bash\">dd if=\/dev\/zero of=\/mnt\/thin\/delete.img bs=1M count=1000 oflag=direct     1000+0 records in 1000+0 records out 1048576000 bytes (1.0 GB) copied, 7.15546 s, 147 MB\/s<\/code><\/pre>\n<h6>\u0427\u0442\u0435\u043d\u0438\u0435:<\/h6>\n<p>  <\/p>\n<pre><code class=\"bash\">FIO: \u0427\u0442\u0435\u043d\u0438\u0435: iodepth=384, bw=176574KB\/s, iops=44143, avg=8675.36 usec<\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\">dd if=\/mnt\/thin\/delete.img of=\/dev\/null bs=1M count=1000 iflag=direct 1000+0 records in 1000+0 records out 1048576000 bytes (1.0 GB) copied, 2.33435 s, 449 MB\/s<\/code><\/pre>\n<p>  \u041f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e\u0439 \u0437\u0430\u043f\u0438\u0441\u0438 \u0438\u0437\u043c\u0435\u0440\u0438\u0442\u044c \u043d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c.<br \/>  \u0418 \u0441\u043d\u043e\u0432\u0430 \u043d\u0430\u0431\u043b\u044e\u0434\u0430\u0435\u043c \u043f\u0430\u0434\u0435\u043d\u0438\u0435 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u0438 \u043b\u0438\u043d\u0435\u0439\u043d\u043e\u0439 \u0437\u0430\u043f\u0438\u0441\u0438 \u0432 \u0434\u0432\u0430 \u0440\u0430\u0437\u0430, \u043a\u0430\u043a \u0438 \u0432 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u043c \u0442\u0435\u0441\u0442\u0435.<\/p>\n<h4>\u0418\u0422\u041e\u0413\u0418:<\/h4>\n<p>  <\/p>\n<ol>\n<li>\u041f\u0440\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 thin volume \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u043f\u0430\u0434\u0435\u043d\u0438\u0435 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u0438 \u043b\u0438\u043d\u0435\u0439\u043d\u043e\u0439 \u0437\u0430\u043f\u0438\u0441\u0438 \u043d\u0430 \u043d\u0435\u0433\u043e \u0432 2 \u0440\u0430\u0437\u0430 \u043f\u043e \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044e \u0441 \u00ab\u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u0438\u043c\u00bb LV;<\/li>\n<li>\u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u0443 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e\u0439 \u0437\u0430\u043f\u0438\u0441\u0438 \u043d\u0430 thin volume \u0442\u0430\u043a\u043e\u0433\u043e \u043f\u0430\u0434\u0435\u043d\u0438\u044f \u043d\u0435 \u0437\u0430\u043c\u0435\u0447\u0435\u043d\u043e \u0438 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u043d\u0430 \u0442\u043e\u043c \u0436\u0435 \u0443\u0440\u043e\u0432\u043d\u0435, \u0447\u0442\u043e \u044f \u0434\u043b\u044f LV;<\/li>\n<li>\u041d\u0430 Debian \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432 \u043f\u0440\u043e\u0434\u0430\u043a\u0448\u043d\u0435 \u043f\u043e\u043a\u0430 \u043d\u0435 \u0431\u0443\u0434\u0443 \u0432\u0432\u0438\u0434\u0443 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u044f \u0432 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0445 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f\u0445;<\/li>\n<\/ol>\n<div class=\"clear\"><\/div>\n<\/p><\/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\/210856\/\"> http:\/\/habrahabr.ru\/post\/210856\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">   \t\u0421 \u0432\u0435\u0440\u0441\u0438\u0438 RHEL 6.4 \u0432 LVM2 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0430 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 thin provision. \u041d\u0430 \u0440\u0443\u0441\u0441\u043a\u0438\u0439 \u044f \u0431\u044b \u043f\u0435\u0440\u0435\u0432\u0451\u043b \u044d\u0442\u043e \u043a\u0430\u043a \u00ab\u0442\u043e\u043d\u043a\u043e\u0435 \u0440\u0435\u0437\u0435\u0440\u0432\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u00bb, \u0445\u043e\u0442\u044f \u043f\u0435\u0440\u0435\u0432\u043e\u0434 \u043d\u0435\u0442\u043e\u0447\u0435\u043d \u0438 \u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u043d\u043e \u043d\u0435 \u0441\u043e\u0433\u043b\u0430\u0441\u0443\u0435\u0442\u0441\u044f \u0441 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u044c\u044e, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0434\u0430\u043b\u0435\u0435 \u043d\u0430\u0440\u0430\u0432\u043d\u0435 \u0441 \u0440\u0443\u0441\u0441\u043a\u0438\u043c \u0431\u0443\u0434\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0430\u043d\u0433\u043b\u0438\u0439\u0441\u043a\u043e\u0435 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u0435. <\/p>\n<p>  <b>Thin provisioning <\/b> \u2014 \u044d\u0442\u043e \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0442\u043e\u043c\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043c\u0435\u0441\u0442\u0430 \u0438 \u00ab\u0440\u0430\u0441\u0442\u0443\u0442\u00bb \u043f\u043e \u043c\u0435\u0440\u0435 \u0437\u0430\u043f\u0438\u0441\u0438 \u0432 \u043d\u0438\u0445 \u0434\u0430\u043d\u043d\u044b\u0445. \u0412 ZFS \u044d\u0442\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043e \u0434\u0430\u0432\u043d\u043e \u043f\u043e \u0441\u0430\u043c\u043e\u0439 \u0444\u0438\u043b\u043e\u0441\u043e\u0444\u0438\u0438 \u044d\u0442\u043e\u0439 \u0424\u0421. \u0412 VMware \u044d\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0432 \u043a\u0430\u0436\u0434\u043e\u043c \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0435. \u0414\u043e\u0448\u043b\u043e \u0434\u0435\u043b\u043e \u0434\u043e LVM2, \u0448\u0438\u0440\u043e\u043a\u043e \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u043c\u043e\u043c \u0432 Linux \u0432 \u043d\u0430\u0448\u0438 \u0434\u043d\u0438. \u0422\u0430\u043a\u0436\u0435 \u043e\u0434\u043d\u0438\u043c \u0438\u0437 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0445 \u043d\u043e\u0432\u043e\u0432\u0432\u0435\u0434\u0435\u043d\u0438\u0439 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f thin snapshots, \u043a\u043e\u0433\u0434\u0430 \u0434\u043b\u044f \u0441\u043d\u044d\u043f\u0448\u043e\u0442\u043e\u0432 \u043d\u0435\u0442 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u0440\u0435\u0437\u0435\u0440\u0432\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043c\u0435\u0441\u0442\u043e \u0437\u0430\u0440\u0430\u043d\u0435\u0435, \u0430 \u043e\u043d \u00ab\u0440\u0430\u0441\u0442\u0451\u0442\u00bb \u0432\u043c\u0435\u0441\u0442\u0435 \u0441 \u0438\u0437\u043c\u0435\u043d\u0451\u043d\u043d\u044b\u043c\u0438 \u0434\u0430\u043d\u043d\u044b\u043c\u0438. \u0422\u0430\u043a\u0436\u0435 \u0440\u0430\u0437\u0440\u0435\u0448\u0430\u044e\u0442\u0441\u044f \u0438 \u043f\u043e\u043e\u0449\u0440\u044f\u044e\u0442\u0441\u044f \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0435 \u0441\u043d\u044d\u043f\u0448\u043e\u0442\u044b (\u0441\u043d\u044d\u043f\u0448\u043e\u0442\u044b \u0441\u043d\u044d\u043f\u0448\u043e\u0442\u043e\u0432 \u0432 \u043b\u044e\u0431\u043e\u0439 \u0433\u043b\u0443\u0431\u0438\u043d\u043e\u0439), \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u0437\u0430\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043e\u0431 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0438 \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u043f\u0430\u0434\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438. \u041e \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u043d\u044e\u0430\u043d\u0441\u0430\u0445 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u043d\u043e \u0432 \u0441\u0442\u0430\u0442\u044c\u0435.<\/p>\n<p>  \u0414\u043b\u044f \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u044b thin provision \u0432 LVM2 \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u044f\u0434\u0440\u043e 3.4. \u0412 Red Hat \u0431\u044d\u043a\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043e \u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043d\u0430 \u0438\u0445 \u00ab\u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u043e\u043c\u00bb 2.6.32.<br \/>  \u0412 \u0431\u043b\u0438\u0437\u043a\u043e\u0439 \u043c\u043d\u0435 Debian Wheezy thin provisioning \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u0432\u0432\u0438\u0434\u0443 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u044f \u043a\u043b\u044e\u0447\u0430 \u043f\u0440\u0438 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438 lvm2 &#8212;with-thin=internal \u0438 \u0434\u0440\u0443\u0433\u0438\u0445 \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u0435\u0439. \u041f\u0440\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438, \u0434\u043b\u044f \u0446\u0435\u043b\u0435\u0439 \u0442\u0435\u0441\u0442\u0430, \u043c\u043e\u0436\u043d\u043e \u0441\u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u044d\u0442\u043e\u0442 \u043f\u0430\u043a\u0435\u0442 \u0438\u0437 \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u043e\u0432.<\/p>\n<p>  \u041c\u0435\u043d\u044f \u0431\u043e\u043b\u044c\u0448\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043e\u0432\u0430\u043b\u0438 \u043d\u0435 \u0441\u043d\u044d\u043f\u0448\u043e\u0442\u044b, \u0430 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u00ab\u0442\u043e\u043d\u043a\u0438\u0445 \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0442\u043e\u043c\u043e\u0432\u00bb (Thin Logical Volume) \u0434\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0430\u0445. \u0414\u043b\u044f \u043d\u0435\u0442\u0435\u0440\u043f\u0435\u043b\u0438\u0432\u044b\u0445 \u0441\u043a\u0430\u0436\u0443 \u0441\u0440\u0430\u0437\u0443 \u2014 \u043f\u0430\u0434\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u043d\u0430\u0431\u043b\u044e\u0434\u0430\u0435\u0442\u0441\u044f, \u0438 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0435. \u041f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0441\u0442\u0438 \u043d\u0438\u0436\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-210856","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/210856","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=210856"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/210856\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=210856"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=210856"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=210856"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}