{"id":84,"date":"2008-10-12T11:20:05","date_gmt":"2008-10-12T07:20:05","guid":{"rendered":"http:\/\/www.unixpin.com\/wordpress\/?p=84"},"modified":"2008-11-28T01:46:10","modified_gmt":"2008-11-27T21:46:10","slug":"%d0%b7%d0%b0%d0%bc%d0%b5%d0%bd%d0%b0-%d0%b4%d0%b8%d1%81%d0%ba%d0%b0-%d0%b2-linux","status":"publish","type":"post","link":"https:\/\/www.unixpin.com\/?p=84","title":{"rendered":"\u0417\u0430\u043c\u0435\u043d\u0430 \u0434\u0438\u0441\u043a\u0430 \u0432 Linux"},"content":{"rendered":"<p>\u0417\u0430\u0434\u0430\u0447\u0430 &#8212; \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c \u0434\u0438\u0441\u043a \u043d\u0430 Linux-\u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u043d\u0430 \u0434\u0438\u0441\u043a \u0431\u043e\u043b\u044c\u0448\u0435\u0433\u043e \u043e\u0431\u044a\u0435\u043c\u0430.  RHEL, \u043d\u043e \u043f\u0440\u0438\u043d\u0446\u0438\u043f \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u043c \u0438 \u043a \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0445 \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432\u0430\u043c.\u0422\u0435\u043e\u0440\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u0438, \u0437\u0430\u0434\u0430\u0447\u0443 \u043c\u043e\u0436\u043d\u043e \u0440\u0435\u0448\u0438\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u043c\u0438 \u043f\u0443\u0442\u044f\u043c\u0438 (\u043d\u0443 \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043d\u0430\u0440\u0435\u0437\u0430\u0442\u044c \u0447\u0435\u0440\u0435\u0437 LVM \u0442\u043e\u043c\u0430, \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043d\u043e\u0432\u044b\u0439 \u0434\u0438\u0441\u043a, \u043e\u0442\u0437\u0435\u0440\u043a\u0430\u043b\u0438\u0442\u044c; \u0438\u043b\u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043f\u043e\u0442\u043e\u043c \u044d\u0442\u043e\u0442 \u0434\u0438\u0441\u043a \u043d\u0430 \u0432\u0442\u043e\u0440\u043e\u0439 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440 \u0438 \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u043d\u0443 \u0438\u0442\u0434). \u041d\u043e \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0440\u0435\u0448\u0430\u0442\u044c \u0437\u0430\u0434\u0430\u0447\u0443 \u0432 \u043b\u043e\u0431:<br \/>\n\u041f\u0435\u0440\u0435\u0439\u0442\u0438 \u0432 single user mode \u0438 \u0441\u0434\u0435\u043b\u0430\u0442\u044c <a href=\"https:\/\/www.unixpin.com\/2008\/05\/21\/remote-backup\/\">\u0431\u044d\u043a\u0430\u043f \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0445 \u043f\u0430\u0440\u0442\u0438\u0446\u0438\u0439 \u043d\u0430 \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u044b\u0439 \u0445\u043e\u0441\u0442<\/a>.<br \/>\n<code># dump 0f - \/ | ssh user@remote.host 'cat &gt; \/path\/root.dump'<br \/>\n# dump 0f - \/var | ssh user@remote.host 'cat &gt; \/path\/var.dump'<\/code><br \/>\n<!--more--><br \/>\n\u0412\u043d\u0438\u043c\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0441\u043c\u043e\u0442\u0440\u0438\u043c, \u043f\u043e \u043a\u0430\u043a\u0438\u043c \u043f\u0443\u0442\u044f\u043c \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u043e\u0447\u043d\u044b\u0439 \u0434\u0438\u0441\u043a \u0438 \u0441\u0435\u0442\u0435\u0432\u044b\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438. <strong>\u0417\u0430\u043f\u0438\u0448\u0438\u0442\u0435 \u0438\u0445<\/strong> \u043a\u0443\u0434\u0430-\u043d\u0438\u0431\u0443\u0434\u044c (\u0435\u0441\u043b\u0438 \u043d\u0435 \u0437\u0430\u043f\u0438\u0441\u0430\u043b\u0438, \u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0440\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u044c \u043f\u043e\u0442\u043e\u043c \u044d\u0442\u0443 \u0438\u043d\u0444\u0443 \u0438\u0437 \u0434\u0430\u043c\u043f\u0430 &#8212; \u043d\u043e \u044d\u0442\u043e \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0443\u0441\u0438\u043b\u0438\u0439).<\/p>\n<p><code># shutdown -y -g0<\/code><br \/>\n\u041c\u0435\u043d\u044f\u0435\u043c \u0434\u0438\u0441\u043a.<br \/>\n\u0417\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c\u0441\u044f \u0441 CDROM.<br \/>\n\u0421\u0440\u0430\u0437\u0443 \u043d\u0430\u0436\u0438\u043c\u0430\u0435\u043c <strong>F5<\/strong> \u0438 \u043d\u0430\u0431\u0438\u0440\u0430\u0435\u043c &gt; linux rescue<\/p>\n<p>\u0420\u0430\u0437\u0431\u0438\u0432\u0430\u0435\u043c \u0434\u0438\u0441\u043a\u0438. \u041e\u0431\u044b\u0447\u043d\u043e \u043f\u0435\u0440\u0432\u044b\u0439 \u0434\u0438\u0441\u043a &#8212; hda, \u043d\u043e \u0435\u0441\u043b\u0438 \u0435\u0441\u0442\u044c raid-\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440, \u0442\u043e \u043f\u0443\u0442\u0438 \u043a \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0443 \u0431\u0443\u0434\u0443\u0442 \u0434\u0440\u0443\u0433\u0438\u0435 (\u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430).<br \/>\n<code>fdisk \/dev\/cciss\/c0d0<\/code><br \/>\n\u041a\u043e\u043c\u0430\u043d\u0434\u043e\u0447\u043a\u0438 n, p, w ( \u043d\u0435 \u0437\u0430\u0431\u044b\u0442\u044c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043f\u0430\u0440\u0442\u0438\u0446\u0438\u044e )<\/p>\n<p>\u0411\u0435\u0437 \u043f\u0435\u0440\u0435\u0433\u0440\u0443\u0437\u043a\u0438 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043f\u0430\u0440\u0442\u0438\u0446\u0438\u0438<br \/>\n# parted<br \/>\n&gt;mkfs<\/p>\n<p>\u0421\u0434\u0435\u043b\u0430\u0442\u044c \u0444\u0430\u0439\u043b\u043e\u0432\u044b\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u044b<br \/>\n<code>mkfs.ext2 \u0438\u043b\u0438 mke2fs \/dev\/cciss\/c0d0p2<br \/>\nmkswap \/dev\/cciss\/c0d0p3<\/code><\/p>\n<p>\u041a\u043e\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c ext2 \u0432 ext3<br \/>\n<code>tune2fs -j \/dev\/cciss\/c0d0p2<\/code><\/p>\n<p><strong><span style=\"color: #ff0000;\">\u041d\u0435 \u043d\u0430\u0434\u043e \u0434\u0435\u043b\u0430\u0442\u044c chroot !!! (Linux \u043a\u0440\u0438\u0432\u043e \u0432\u0438\u0434\u0438\u0442 \u0442\u043e\u0433\u0434\u0430 \u043f\u0443\u0442\u0438 \u0434\u043e \u0434\u0438\u0441\u043a\u043e\u0432)<\/span><\/strong><\/p>\n<p>\u041f\u043e\u0434\u043d\u0438\u043c\u0430\u0435\u043c \u0441\u0435\u0442\u0435\u0432\u044b\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0438 \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c <a href=\"https:\/\/www.unixpin.com\/2008\/05\/21\/remote-backup\/\">\u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435<\/a>:<br \/>\n<code># ifconfig eth0 192.168.0.101 up; route add default 192.168.0.254<br \/>\n# mkdir \/tmp\/1<br \/>\n# mount \/dev\/cciss\/c0d0p2 \/tmp\/1; cd \/tmp\/1<br \/>\n# ssh user@remote.host 'cat \/path\/root.dump' | restore xf -<\/code><\/p>\n<p>\u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0437\u0430\u0433\u0440\u0443\u0437\u043e\u0447\u043d\u044b\u0439 \u0441\u0435\u043a\u0442\u043e\u0440 \u0438 \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u0438\u0440\u0443\u0435\u043c \u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a grub (\u043d\u0435 \u043d\u0430\u0434\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c grub-install)<br \/>\n\u043d\u0430\u0431\u0440\u0430\u0442\u044c<br \/>\n<code>grub<br \/>\ndevice (hd0) \/dev\/cciss\/c0d0<br \/>\nfind (hd0,0)\/boot\/grub\/stage1<br \/>\nsetup (hd0) \u0438\u043b\u0438 install (hd0,0)\/boot\/grub\/stage1 (hd0) (hd0,0)\/boot\/grub\/stage2<\/code><br \/>\n( <a href=\"http:\/\/www.opennet.ru\/base\/sys\/grub_info.txt.html\">http:\/\/www.opennet.ru\/base\/sys\/grub_info.txt.html<\/a> )<br \/>\n(<a href=\"http:\/\/grub.enbug.org\/GrubLegacy\">http:\/\/grub.enbug.org\/GrubLegacy<\/a>)<br \/>\n\u0412 \/boot\/grub\/grub.conf<br \/>\n\u043f\u043e\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0441\u0442\u0440\u043e\u0447\u043a\u0438, \u043e\u0442\u043d\u043e\u0441\u044f\u0449\u0438\u0435\u0441\u044f \u043a ro root=LABEL=\/ \u0438\u0442\u0434<br \/>\n\u043d\u0443\u0436\u043d\u043e \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c ro root=\/dev\/cciss\/c0d0p2<\/p>\n<p>\u0412 \/etc\/fstab \u0432\u043c\u0435\u0441\u0442\u043e \u0441\u0442\u0440\u043e\u043a LABEL \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u0442\u044c \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u044b\u0435 \u043f\u0443\u0442\u0438<br \/>\n<code># cat \/etc\/fstab<br \/>\n#LABEL=\/                 \/                       ext3    defaults        1 1<br \/>\n#LABEL=\/boot             \/boot                   ext3    defaults        1 2<br \/>\n\/dev\/cciss\/c0d0p2       \/                       ext3    defaults        1 1<br \/>\n\/dev\/cciss\/c0d0p1       \/boot                   ext3    defaults        1 2<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0417\u0430\u0434\u0430\u0447\u0430 &#8212; \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c \u0434\u0438\u0441\u043a \u043d\u0430 Linux-\u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u043d\u0430 \u0434\u0438\u0441\u043a \u0431\u043e\u043b\u044c\u0448\u0435\u0433\u043e \u043e\u0431\u044a\u0435\u043c\u0430. RHEL, \u043d\u043e \u043f\u0440\u0438\u043d\u0446\u0438\u043f \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u043c \u0438 \u043a \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0445 \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432\u0430\u043c.\u0422\u0435\u043e\u0440\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u0438, \u0437\u0430\u0434\u0430\u0447\u0443 \u043c\u043e\u0436\u043d\u043e \u0440\u0435\u0448\u0438\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u043c\u0438 \u043f\u0443\u0442\u044f\u043c\u0438 (\u043d\u0443 \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043d\u0430\u0440\u0435\u0437\u0430\u0442\u044c \u0447\u0435\u0440\u0435\u0437 LVM \u0442\u043e\u043c\u0430, \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043d\u043e\u0432\u044b\u0439 \u0434\u0438\u0441\u043a, \u043e\u0442\u0437\u0435\u0440\u043a\u0430\u043b\u0438\u0442\u044c; \u0438\u043b\u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043f\u043e\u0442\u043e\u043c \u044d\u0442\u043e\u0442 \u0434\u0438\u0441\u043a \u043d\u0430 \u0432\u0442\u043e\u0440\u043e\u0439 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440 \u0438 \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u043d\u0443 \u0438\u0442\u0434). \u041d\u043e \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0440\u0435\u0448\u0430\u0442\u044c \u0437\u0430\u0434\u0430\u0447\u0443 \u0432 \u043b\u043e\u0431: \u041f\u0435\u0440\u0435\u0439\u0442\u0438 \u0432 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22,25],"tags":[337,51,130,123,330,336,126,328,1021,329,332,333,167,335,327,331,334,338],"class_list":["post-84","post","type-post","status-publish","format-standard","hentry","category-other","category-linux","tag-backup","tag-disk","tag-fedora","tag-hdd","tag-mode","tag-red-hat","tag-rhel","tag-single","tag-linux","tag-user","tag-332","tag-333","tag-167","tag-335","tag-327","tag-331","tag-334","tag-338"],"_links":{"self":[{"href":"https:\/\/www.unixpin.com\/index.php?rest_route=\/wp\/v2\/posts\/84","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.unixpin.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.unixpin.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.unixpin.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.unixpin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=84"}],"version-history":[{"count":6,"href":"https:\/\/www.unixpin.com\/index.php?rest_route=\/wp\/v2\/posts\/84\/revisions"}],"predecessor-version":[{"id":248,"href":"https:\/\/www.unixpin.com\/index.php?rest_route=\/wp\/v2\/posts\/84\/revisions\/248"}],"wp:attachment":[{"href":"https:\/\/www.unixpin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=84"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.unixpin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=84"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.unixpin.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=84"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}