{"id":1976,"date":"2011-11-25T12:37:22","date_gmt":"2011-11-25T10:37:22","guid":{"rendered":"http:\/\/skeletor.org.ua\/?p=1976"},"modified":"2014-07-23T12:24:29","modified_gmt":"2014-07-23T09:24:29","slug":"%d0%bf%d0%b5%d1%80%d0%b5%d0%bd%d0%be%d1%81-%d0%b7%d0%be%d0%bd%d1%8b-%d1%81-%d0%be%d0%b4%d0%bd%d0%be%d0%b3%d0%be-%d1%81%d0%b5%d1%80%d0%b2%d0%b5%d1%80%d0%b0-%d0%bd%d0%b0-%d0%b4%d1%80%d1%83%d0%b3%d0%be","status":"publish","type":"post","link":"https:\/\/skeletor.org.ua\/?p=1976","title":{"rendered":"\u041f\u0435\u0440\u0435\u043d\u043e\u0441 \u0437\u043e\u043d\u044b \u0441 \u043e\u0434\u043d\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u043d\u0430 \u0434\u0440\u0443\u0433\u043e\u0439"},"content":{"rendered":"<p>\u0412 \u0441\u0442\u0430\u0442\u044c\u0435 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u043d \u0432\u043e\u043f\u0440\u043e\u0441 \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u0430 \u0437\u043e\u043d\u044b \u0441 \u043e\u0434\u043d\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u043d\u0430 \u0434\u0440\u0443\u0433\u043e\u0439. \u041f\u0440\u0438\u0447\u0451\u043c \u043f\u0435\u0440\u0435\u043d\u043e\u0441 \u0431\u0443\u0434\u0435\u0442 \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u0451\u043d \u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0441 \u0431\u043e\u043b\u0435\u0435 \u0441\u0442\u0430\u0440\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0435\u0439 \u043d\u0430 \u0431\u043e\u043b\u0435\u0435 \u043d\u043e\u0432\u0443\u044e, \u0442\u043e \u0435\u0441\u0442\u044c \u0437\u0430\u0442\u0440\u043e\u043d\u0435\u0442\u0441\u044f \u0432\u043e\u043f\u0440\u043e\u0441 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u0437\u043e\u043d\u044b \u043d\u0430 \u043d\u043e\u0432\u043e\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u0435.<\/p>\n<p><em><strong><span style=\"color: #008000;\">\u0422\u0435\u0441\u0442\u043e\u0432\u044b\u0439 \u0441\u0442\u0435\u043d\u0434:<\/span><\/strong><\/em><\/p>\n<p><em><span style=\"color: #800080;\">\u0441\u0442\u0430\u0440\u044b\u0439 \u0441\u0435\u0440\u0432\u0435\u0440<\/span><\/em>: <strong>SunOS 5.10 Generic_141445-09 i86pc i386 i86pc<\/strong><br \/>\n<em><span style=\"color: #800080;\">\u043d\u043e\u0432\u044b\u0439 \u0441\u0435\u0440\u0432\u0435\u0440<\/span><\/em>: <strong>SunOS 5.10 Generic_147441-01 i86pc i386 i86pc<\/strong><\/p>\n<p><!--more--><\/p>\n<p>\u041f\u0435\u0440\u0435\u043d\u043e\u0441 \u0437\u043e\u043d\u044b \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u0441\u0442\u043e\u044f\u0442\u044c \u0438\u0437 \u0442\u0430\u043a\u0438\u0445 \u044d\u0442\u0430\u043f\u043e\u0432: \u043e\u0442\u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u0437\u043e\u043d\u044b, \u043f\u0435\u0440\u0435\u043d\u043e\u0441 \u0444\u0430\u0439\u043b\u043e\u0432 \u0437\u043e\u043d\u044b, \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f \u0437\u043e\u043d\u044b \u043d\u0430 \u043d\u043e\u0432\u043e\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u0438 \u043f\u0440\u0438\u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 (\u0432\u043c\u0435\u0441\u0442\u0435 \u0441 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435\u043c)<\/p>\n<p><strong><span style=\"color: #ff0000;\">0) \u0412\u0432\u0435\u0434\u0435\u043d\u0438\u0435<\/span><\/strong><\/p>\n<p>\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u0432\u0435\u0440\u0441\u0438\u044e \u0437\u043e\u043d\u044b:<\/p>\n<p><code># zlogin test<br \/>\n[Connected to zone 'test' pts\/3]<br \/>\nLast login: Mon Nov 21 12:45:21 on console<br \/>\nSun Microsystems Inc. SunOS 5.10 Generic January 2005<br \/>\n# uname -a<br \/>\nSunOS zonetest 5.10 Generic_141445-09\u00a0i86pc i386 i86pc<br \/>\n<\/code><br \/>\n<em><strong><span style=\"color: #ff6600;\">\u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435.<\/span><\/strong><\/em><\/p>\n<p>\u041d\u0430 \u0441\u0442\u0430\u0440\u043e\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u0437\u043e\u043d\u0430 \u043d\u0430\u0437\u044b\u0432\u0430\u043b\u0430\u0441\u044c <strong>test<\/strong>, \u043d\u0430 \u043d\u043e\u0432\u043e\u043c <strong>old_zone<\/strong><\/p>\n<p><span style=\"text-decoration: underline;\"><strong><span style=\"color: #ff0000; text-decoration: underline;\">\u0412\u043d\u0438\u043c\u0430\u043d\u0438\u0435!<\/span><\/strong><\/span><\/p>\n<p>\u041f\u0435\u0440\u0435\u0434 \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u043e\u043c \u0437\u043e\u043d\u044b, \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u0442\u0441\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u043d\u0430 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0437\u043e\u043d\u0443 \u043d\u0430 \u043d\u043e\u0432\u043e\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u0435. \u042d\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043e\u0434\u043d\u043e\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439:<\/p>\n<p><code># zoneadm -z my-zone detach -n | ssh remotehost zoneadm attach -n -<\/code><\/p>\n<p>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0432\u044b\u0432\u043e\u0434\u044f\u0442\u0441\u044f \u043d\u0430 \u044d\u043a\u0440\u0430\u043d \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u0433\u043e \u0443\u0437\u043b\u0430, \u0442.\u0435. \u043d\u0430\u00a0<strong>stdout<\/strong>.<\/p>\n<p><strong><span style=\"color: #ff0000;\">1) \u041e\u0442\u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 (detach)<\/span><\/strong><\/p>\n<p>\u041e\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0437\u043e\u043d\u0443 \u0438 \u043e\u0442\u0441\u043e\u0435\u0434\u0438\u043d\u044f\u0435\u043c:<\/p>\n<p><code>#zoneadm -z test halt<br \/>\n#zoneadm -z test detach<\/code><\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0437\u043e\u043d\u0430 \u0433\u043e\u0442\u043e\u0432\u0430 \u043a \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u0443.<\/p>\n<p><strong><span style=\"color: #ff0000;\">2) \u041f\u0435\u0440\u0435\u043d\u043e\u0441<\/span><\/strong><\/p>\n<p>\u041a\u0440\u0430\u0439\u043d\u0435 \u0441\u043e\u0432\u0435\u0442\u0443\u044e \u0434\u0435\u043b\u0430\u0442\u044c \u043f\u0435\u0440\u0435\u043d\u043e\u0441 \u0444\u0430\u0439\u043b\u043e\u0432 \u0437\u043e\u043d\u044b \u0447\u0435\u0440\u0435\u0437 \u043f\u0435\u0440\u0435\u043d\u043e\u0441 <strong>zfs<\/strong>. \u041f\u043e\u0447\u0435\u043c\u0443 \u0442\u0430\u043a:<\/p>\n<p><em><span style=\"color: #ff6600;\">&#8211; \u0431\u044b\u0441\u0442\u0440\u0435\u0435, \u0447\u0435\u043c \u0434\u0435\u043b\u0430\u0442\u044c tar\/gzin\/gunzip\/untar<\/span><\/em><br \/>\n<em><span style=\"color: #ff6600;\"> &#8211; \u043f\u0440\u043e\u0449\u0435 (\u0437\u0430\u043f\u0443\u0441\u043a 1-\u043e\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0432\u043c\u0435\u0441\u0442\u043e 3)<\/span><\/em><br \/>\n<em><span style=\"color: #ff6600;\"> &#8211; \u0431\u0435\u0437 \u043f\u043e\u0442\u0435\u0440\u0438 \u0444\u0430\u0439\u043b\u043e\u0432<\/span><\/em><br \/>\n<em><span style=\"color: #ff6600;\"> &#8211; \u043c\u043e\u0436\u043d\u043e \u0434\u0435\u043b\u0430\u0442\u044c \u043d\u0430\u0436\u0438\u0432\u0443\u044e (\u0431\u0435\u0437 \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0437\u043e\u043d\u044b)<\/span><\/em><\/p>\n<p><span style=\"color: #0000ff;\">\u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435.<\/span><\/p>\n<p>\u041b\u0443\u0447\u0448\u0435 \u0438 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u0435\u0435 \u044d\u0442\u043e \u0434\u0435\u043b\u0430\u0442\u044c \u0447\u0435\u0440\u0435\u0437 <a rel=\"nofollow\" href=\"http:\/\/docs.oracle.com\/cd\/E26502_01\/html\/E29024\/migrat.html\" target=\"_blank\">\u0430\u0440\u0445\u0438\u0432<\/a>, \u0442\u0430\u043a \u043a\u0430\u043a, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0435\u0441\u043b\u0438 \u043f\u043e\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0434\u043e\u043c\u0430\u0448\u043d\u0438\u0445 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u043e\u0432, \u0442\u043e \u0437\u043e\u043d\u0443 \u0437\u0430\u0430\u0442\u0442\u0430\u0447\u0438\u0442\u044c \u043d\u0435\u043b\u044c\u0437\u044f \u0431\u0443\u0434\u0435\u0442.<\/p>\n<p>\u0418 \u0442\u0430\u043a, \u0434\u043b\u044f \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u0430 \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435:<\/p>\n<p>&#8211; \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0441\u043d\u0430\u043f\u0448\u043e\u0442:<\/p>\n<p><code>#zfs snapshot\u00a0rpool\/log@backup<\/code><\/p>\n<p>&#8211; \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u043d\u0430\u043f\u0448\u043e\u0442\u0430 \u0441 \u043f\u043e\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u0440\u0430\u0437\u0432\u043e\u0440\u043e\u0442\u043e\u043c \u043d\u0430 <strong>zfs<\/strong> \u043d\u0430 \u043d\u043e\u0432\u043e\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u0435:<\/p>\n<p><code>#zfs send -v rpool\/log@backup | ssh skeletor@XX.XX.XX.XX \"sudo \/usr\/sbin\/zfs receive -Fd rpool\"<\/code><\/p>\n<p>\u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c <strong>skeletor<\/strong> \u0434\u043e\u043b\u0436\u0435\u043d \u0438\u043c\u0435\u0442\u044c \u043f\u0440\u0430\u0432\u043e \u0431\u0435\u0437 \u043f\u0430\u0440\u043e\u043b\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u043e\u0442 <strong>root&#8217;a<\/strong> (\u044d\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043b\u0438\u0431\u043e <strong>sudo<\/strong>, \u043b\u0438\u0431\u043e <strong>pfexec<\/strong>)<\/p>\n<p>\u0415\u0441\u043b\u0438 \u0436\u0435 \u0432\u044b \u043d\u0435 \u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043c\u0435\u0442\u043e\u0434 <strong>zfs<\/strong>, \u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u0434\u0440\u0443\u0433\u043e\u0439 \u043c\u0435\u0442\u043e\u0434, \u043e\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0439 \u043d\u0438\u0436\u0435<\/p>\n<p>\u041f\u0435\u0440\u0435\u043d\u043e\u0441 \u0437\u043e\u043d\u044b &#8211; \u044d\u0442\u043e \u0444\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u0435\u0440\u0435\u043d\u043e\u0441 \u0432\u0441\u0435\u0445 \u0444\u0430\u0439\u043b\u043e\u0432 \u0432\u043d\u0443\u0442\u0440\u0438 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0430 \u0437\u043e\u043d\u044b.\u00a0\u0417\u0430\u0430\u0440\u0445\u0438\u0432\u0438\u0440\u0443\u0435\u043c \u0444\u0430\u0439\u043b\u044b \u0437\u043e\u043d\u044b:<\/p>\n<p><code>#tar cf \/test | gzip &gt; test.tar.gz<\/code><\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043f\u0435\u0440\u0435\u043d\u0435\u0441\u0451\u043c \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0439 \u0430\u0440\u0445\u0438\u0432 \u043d\u0430 \u043d\u043e\u0432\u044b\u0439 \u0441\u0435\u0440\u0432\u0435\u0440. \u042d\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e <strong>scp<\/strong>. \u0418 \u0440\u0430\u0441\u043f\u0430\u043a\u0443\u0435\u043c \u0437\u043e\u043d\u0443 \u0432 \u043a\u0430\u0442\u0430\u043b\u043e\u0433 <strong>\/old_zone<\/strong> \u043d\u0430 \u043d\u043e\u0432\u043e\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u0435<\/p>\n<p><code># scp test.tar.bz2 1.1.1.1:\/tmp\/<br \/>\n#(new server) gzcat filename.tar.gz | tar -xpf - test.tar.bz2<\/code><\/p>\n<p><strong><span style=\"color: #ff0000;\">3) \u041a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f \u0437\u043e\u043d\u044b \u043d\u0430 \u043d\u043e\u0432\u043e\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u0435<\/span><\/strong><\/p>\n<p>\u041f\u0440\u0435\u0436\u0434\u0435 \u0432\u0441\u0435\u0433\u043e \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0443\u044e \u0444\u0430\u0439\u043b\u043e\u0432\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443:<\/p>\n<p><code>#zfs create rpool\/old_zone<br \/>\n#zfs set mountpoint=\/old_zone rpool\/old_zone<\/code><\/p>\n<p>\u0410 \u0442\u0435\u043f\u0435\u0440\u044c \u043f\u0435\u0440\u0435\u0439\u0434\u0451\u043c \u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043a \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435 \u0441\u0430\u043c\u043e\u0439 \u0437\u043e\u043d\u044b<\/p>\n<p><code># zonecfg -z old_zone<br \/>\nold_zone: No such zone configured<br \/>\nUse 'create' to begin configuring a new zone.<\/code><\/p>\n<p>\u0414\u043b\u044f \u0443\u043a\u0430\u0437\u0430\u043d\u0438\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u043d\u0430\u0448\u0430 \u0437\u043e\u043d\u0430 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0432\u0441\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u0444\u0430\u0439\u043b\u044b \u0438 \u044d\u0442\u043e \u043f\u043e \u0441\u0443\u0442\u0438 \u043d\u0435 \u043d\u043e\u0432\u0430\u044f \u0437\u043e\u043d\u0430, \u043f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u0443\u043a\u0430\u0436\u0435\u043c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 <strong>-a<\/strong> \u0438 \u043f\u043e\u043b\u043d\u044b\u0439 \u043f\u0443\u0442\u044c \u043a \u0437\u043e\u043d\u0435<\/p>\n<p><code>zonecfg:old_zone&gt; create -a \/old_zone\/test<\/code><\/p>\n<p>\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e \u0437\u043e\u043d\u0435:<\/p>\n<p><code>zonecfg:old_zone&gt; info<br \/>\nzonename: old_zone<br \/>\nzonepath: \/old_zone\/test<br \/>\nbrand: native<br \/>\nautoboot: true<br \/>\nbootargs:<br \/>\npool:<br \/>\nlimitpriv:<br \/>\nscheduling-class:<br \/>\nip-type: shared<br \/>\nhostid:<br \/>\n[max-shm-memory: 512]<br \/>\nnet:<br \/>\naddress: 22.22.22.133\/24<br \/>\nphysical: e1000g1<br \/>\ndefrouter not specified<br \/>\ndevice<br \/>\nmatch: \/dev\/dsk\/*<br \/>\nrctl:<br \/>\nname: zone.max-shm-memory<br \/>\nvalue: (priv=privileged,limit=512,action=deny)<\/code><\/p>\n<p>\u041a\u0430\u043a \u0432\u0438\u0434\u0438\u043c, \u043e\u0441\u0442\u0430\u043b\u0438\u0441\u044c \u0441\u0442\u0430\u0440\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 (\u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0441\u0435\u0442\u0438, \u043f\u0440\u0438\u043c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u0434\u0435\u0432\u0430\u0439\u0441\u044b). \u041f\u0435\u0440\u0435\u043d\u0430\u0441\u0442\u0440\u043e\u0438\u043c \u0441\u0435\u0442\u044c:<\/p>\n<p><code>zonecfg:old_zone&gt; remove net<br \/>\nzonecfg:old_zone&gt; add net<br \/>\nzonecfg:old_zone:net&gt; set physical=e1000g0<br \/>\nzonecfg:old_zone:net&gt; set address=33.33.33.135<br \/>\nzonecfg:old_zone:net&gt; end<br \/>\nzonecfg:old_zone&gt; info<br \/>\nzonename: old_zone<br \/>\nzonepath: \/old_zone\/test<br \/>\nbrand: native<br \/>\nautoboot: true<br \/>\nbootargs:<br \/>\npool:<br \/>\nlimitpriv:<br \/>\nscheduling-class:<br \/>\nip-type: shared<br \/>\nhostid:<br \/>\n[max-shm-memory: 512]<br \/>\nnet:<br \/>\naddress: 33.33.33.135<br \/>\nphysical: e1000g0<br \/>\ndefrouter not specified<br \/>\ndevice<br \/>\nmatch: \/dev\/dsk\/*<br \/>\nrctl:<br \/>\nname: zone.max-shm-memory<br \/>\nvalue: (priv=privileged,limit=512,action=deny)<br \/>\nzonecfg:old_zone&gt; verify<br \/>\nzonecfg:old_zone&gt; commit<br \/>\nzonecfg:old_zone&gt; exit<\/code><\/p>\n<p><strong><span style=\"color: #ff0000;\">4) \u041f\u043e\u0434\u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u0437\u043e\u043d\u044b<\/span><\/strong><\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0432\u0441\u0451 \u0433\u043e\u0442\u043e\u0432\u043e \u0434\u043b\u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043d\u043e\u0432\u043e\u0439 \u0437\u043e\u043d\u044b. \u0412\u044b\u043f\u043e\u043b\u043d\u0438\u043c \u0442\u0430\u043a\u0443\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u0443 (\u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 <strong>-u<\/strong> \u0443\u043a\u0430\u0437\u0430\u043d \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u0431\u044b \u0437\u043e\u043d\u0430 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043e\u0431\u043d\u043e\u0432\u0438\u043b\u0430\u0441\u044c \u0434\u043e \u043d\u0443\u0436\u043d\u043e\u0433\u043e \u0440\u0435\u043b\u0438\u0437\u0430):<\/p>\n<p><code># zoneadm -z old_zone attach -u<br \/>\nGetting the list of files to remove<br \/>\nRemoving 65 files<br \/>\nRemove 6 of 6 packages<br \/>\nInstalling 7068 files<br \/>\nAdd 218 of 218 packages<br \/>\nUpdating editable files<br \/>\nThe file within the zone contains a log of the zone update.<\/code><\/p>\n<p><em><strong><span style=\"color: #ff6600;\">\u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435.<\/span><\/strong><\/em><\/p>\n<p>\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u00a0<kbd><strong>-F<\/strong><\/kbd>\u00a0(\u0434\u043b\u044f \u043e\u043f\u0446\u0438\u0438 <strong>attach<\/strong>) \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043f\u0440\u0438\u043d\u0443\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044e\u00a0<tt>attach\u00a0<\/tt>\u0431\u0435\u0437 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u043e\u0441\u0442\u0438. \u042d\u0442\u043e \u0443\u0434\u043e\u0431\u043d\u043e \u0432 \u0440\u044f\u0434\u0435 \u0441\u043b\u0443\u0447\u0430\u0435\u0432, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0432 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u043d\u043e\u0439 \u0441\u0440\u0435\u0434\u0435 \u0438\u043b\u0438 \u043f\u0440\u0438 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f\u0445 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0433\u043e \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0438 \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f, \u043e\u0434\u043d\u0430\u043a\u043e \u0432\u0430\u0436\u043d\u0430 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u0430\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0434\u043b\u044f \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438 \u0437\u043e\u043d\u044b. \u041d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u0430\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u043c\u043e\u0436\u0435\u0442 \u0432\u043f\u043e\u0441\u043b\u0435\u0434\u0441\u0442\u0432\u0438\u0438 \u043f\u0440\u0438\u0432\u0435\u0441\u0442\u0438 \u043a \u043d\u0435\u043f\u0440\u0435\u0434\u0432\u0438\u0434\u0435\u043d\u043d\u043e\u043c\u0443 \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u044e.<\/p>\n<p>\u0421\u043c\u043e\u0442\u0440\u0438\u043c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u0437\u043e\u043d:<\/p>\n<p><code># zoneadm list -cv<br \/>\nID NAME STATUS PATH BRAND IP<br \/>\n0 global running \/ native shared<br \/>\n6 test running \/test native shared<br \/>\n- old_zone installed \/old_zone\/test native shared<\/code><\/p>\n<p>\u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0437\u043e\u043d\u0443 <strong>old_zone<\/strong><\/p>\n<p><code># zoneadm -z old_zone boot<br \/>\n# zoneadm list -cv<br \/>\nID NAME STATUS PATH BRAND IP<br \/>\n0 global running \/ native shared<br \/>\n6 test running \/test native shared<br \/>\n10 old_zone running \/old_zone\/test native shared<br \/>\n# zlogin old_zone<br \/>\n[Connected to zone 'old_zone' pts\/3]<br \/>\nLast login: Mon Nov 21 16:21:19 on console<br \/>\nSun Microsystems Inc. SunOS 5.10 Generic January 2005<br \/>\n# uname -a<br \/>\nSunOS zonetest 5.10 Generic_147441-01 i86pc i386 i86pc<\/code><\/p>\n<p>\u041a\u0430\u043a \u0432\u0438\u0434\u0438\u043c, \u0432\u0435\u0440\u0441\u0438\u044f \u0437\u043e\u043d\u044b \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u0430\u0441\u044c.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0412 \u0441\u0442\u0430\u0442\u044c\u0435 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u043d \u0432\u043e\u043f\u0440\u043e\u0441 \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u0430 \u0437\u043e\u043d\u044b \u0441 \u043e\u0434\u043d\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u043d\u0430 \u0434\u0440\u0443\u0433\u043e\u0439. \u041f\u0440\u0438\u0447\u0451\u043c \u043f\u0435\u0440\u0435\u043d\u043e\u0441 \u0431\u0443\u0434\u0435\u0442 \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u0451\u043d \u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0441 \u0431\u043e\u043b\u0435\u0435 \u0441\u0442\u0430\u0440\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0435\u0439 \u043d\u0430 \u0431\u043e\u043b\u0435\u0435 \u043d\u043e\u0432\u0443\u044e, \u0442\u043e \u0435\u0441\u0442\u044c \u0437\u0430\u0442\u0440\u043e\u043d\u0435\u0442\u0441\u044f \u0432\u043e\u043f\u0440\u043e\u0441 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u0437\u043e\u043d\u044b \u043d\u0430 \u043d\u043e\u0432\u043e\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u0435. \u0422\u0435\u0441\u0442\u043e\u0432\u044b\u0439 \u0441\u0442\u0435\u043d\u0434: \u0441\u0442\u0430\u0440\u044b\u0439 \u0441\u0435\u0440\u0432\u0435\u0440: SunOS 5.10 Generic_141445-09 i86pc i386 i86pc \u043d\u043e\u0432\u044b\u0439 \u0441\u0435\u0440\u0432\u0435\u0440: SunOS 5.10 Generic_147441-01 i86pc i386 i86pc<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[24],"tags":[],"class_list":["post-1976","post","type-post","status-publish","format-standard","hentry","category-solaris"],"_links":{"self":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/1976","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1976"}],"version-history":[{"count":18,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/1976\/revisions"}],"predecessor-version":[{"id":4324,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/1976\/revisions\/4324"}],"wp:attachment":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1976"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1976"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1976"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}