{"id":1061,"date":"2013-12-27T15:00:55","date_gmt":"2013-12-27T07:00:55","guid":{"rendered":"http:\/\/sashakrasnoyarsk.ru\/?p=1061"},"modified":"2013-12-27T15:00:55","modified_gmt":"2013-12-27T07:00:55","slug":"%d1%81%d0%b8%d0%b6%d1%83-raid-%d1%8b-%d0%bf%d0%be%d1%87%d0%b8%d0%bd%d1%8f%d1%8e","status":"publish","type":"post","link":"https:\/\/sashakrasnoyarsk.ru\/?p=1061","title":{"rendered":"\u0421\u0438\u0436\u0443, raid-\u044b \u043f\u043e\u0447\u0438\u043d\u044f\u044e&#8230;"},"content":{"rendered":"<p>\u041d\u0435 \u0433\u0440\u0443\u0437\u0438\u0442\u0441\u044f \u0441\u0435\u0440\u0432\u0435\u0440 \u0441 \u0441\u043e\u0444\u0442\u043e\u0432\u043e\u0433\u043e \u0440\u044d\u0439\u0434\u0430? \u0427\u0442\u043e \u0434\u0435\u043b\u0430\u0442\u044c?<\/p>\n<p><a href=\"https:\/\/sashakrasnoyarsk.ru\/wp-content\/uploads\/2013\/12\/raid-repair.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignright  wp-image-1062\" alt=\"raid-repair\" src=\"https:\/\/sashakrasnoyarsk.ru\/wp-content\/uploads\/2013\/12\/raid-repair.jpg\" width=\"448\" height=\"336\" srcset=\"https:\/\/sashakrasnoyarsk.ru\/wp-content\/uploads\/2013\/12\/raid-repair.jpg 640w, https:\/\/sashakrasnoyarsk.ru\/wp-content\/uploads\/2013\/12\/raid-repair-300x225.jpg 300w\" sizes=\"auto, (max-width: 448px) 100vw, 448px\" \/><\/a>1. \u041f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0441\u0435\u0440\u0432\u0435\u0440, \u0443\u0431\u0435\u0434\u0438\u0442\u044c\u0441\u044f, \u0447\u0442\u043e \u043e\u043d \u043d\u0435 \u0433\u0440\u0443\u0437\u0438\u0442\u0441\u044f \u0438 \u0432\u044b\u0432\u0430\u043b\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0432 initramfs.<br \/>\n2. \u041d\u0430\u0439\u0442\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043e\u0447\u043d\u044b\u0439 \u0434\u0438\u0441\u043a Debian \u0441 \u0442\u043e\u0439 \u0436\u0435 \u0440\u0430\u0437\u0440\u044f\u0434\u043d\u043e\u0441\u0442\u044c\u044e, \u0447\u0442\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u0430\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0430. \u0415\u0441\u043b\u0438 \u0440\u0430\u0437\u0440\u044f\u0434\u043d\u043e\u0441\u0442\u044c \u043d\u0435 \u0441\u043e\u0432\u043f\u0430\u0434\u0451\u0442, chroot \u043d\u0435 \u0441\u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442.<br \/>\n3. \u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c\u0441\u044f \u0432 \u0440\u0435\u0436\u0438\u043c\u0435 \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f, \u043f\u0440\u043e\u0439\u0442\u0438 \u0432\u0441\u0435 \u0441\u0442\u0430\u0434\u0438\u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0434\u043e &#171;\u0412\u043e\u0439\u0442\u0438 \u0432 \u0440\u0435\u0436\u0438\u043c \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f&#187;, \u0433\u0434\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0449\u0438\u043a\u0443 \u043d\u0443\u0436\u043d\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u043e\u0435 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0444\u0430\u0439\u043b\u043e\u0432\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b. \u041d\u0430\u0436\u0430\u0442\u044c &#171;\u0412\u0435\u0440\u043d\u0443\u0442\u044c\u0441\u044f&#187;.<br \/>\n4. \u0412\u044b\u0431\u0440\u0430\u0442\u044c \u0448\u0430\u0433 &#171;\u0420\u0430\u0437\u043c\u0435\u0442\u043a\u0430 \u0434\u0438\u0441\u043a\u0430&#187;. \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0449\u0438\u043a \u043f\u043e\u0434\u0433\u0440\u0443\u0437\u0438\u0442 \u0442\u0440\u0435\u0431\u0443\u0435\u043c\u044b\u0435 \u043c\u043e\u0434\u0443\u043b\u0438 \u0438 \u0441\u043e\u0431\u0435\u0440\u0451\u0442 sw raid-\u044b. \u041c\u043e\u0436\u043d\u043e \u0437\u0430\u0439\u0442\u0438 \u0432 \u0440\u0435\u0436\u0438\u043c \u0440\u0443\u0447\u043d\u043e\u0439 \u0440\u0430\u0437\u043c\u0435\u0442\u043a\u0438 \u0438 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0438\u0445 \u0438\u043c\u0435\u043d\u0430. \u041d\u0430\u0436\u0430\u0442\u044c &#171;\u0412\u0435\u0440\u043d\u0443\u0442\u044c\u0441\u044f&#187;.<br \/>\n5. \u041d\u0430\u0436\u0430\u0442\u044c Alt+F2, \u043d\u0430\u0436\u0430\u0442\u044c Enter. \u0412\u0432\u0435\u0441\u0442\u0438 uname -a, \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c, \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043b\u0438 \u0440\u0430\u0437\u0440\u044f\u0434\u043d\u043e\u0441\u0442\u044c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043e\u0447\u043d\u043e\u0433\u043e \u0434\u0438\u0441\u043a\u0430 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u043e\u043c\u0443 \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432\u0443.<!--more--><br \/>\n6. \u041f\u0440\u0438\u043c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0440\u0430\u0437\u0434\u0435\u043b\u044b \u0432 \/target \u0442\u0430\u043a, \u043a\u0430\u043a \u043e\u043d\u0438 \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0442\u044c \u043f\u0440\u0438\u043c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u044b \u0432 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0435\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u0435. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440:<br \/>\nmount \/dev\/md0 \/target<br \/>\nmount \/dev\/md1 \/target\/home<br \/>\n7. \u041f\u0440\u0438\u0431\u0438\u043d\u0434\u0438\u0442\u044c \u0441\u043b\u0443\u0436\u0435\u0431\u043d\u044b\u0435 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438:<br \/>\nmount -o bind \/dev \/target\/dev<br \/>\nmount -o bind \/sys \/target\/sys<br \/>\nmount -o bind \/proc \/target\/proc<br \/>\n8. \u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u043a\u043e\u043f\u0438\u044e fstab \u0438 \u0441\u0431\u0440\u043e\u0441\u0438\u0442\u044c \u0432 fstab \u0441\u043f\u0438\u0441\u043e\u043a uuid-\u0438\u043c\u0451\u043d \u0440\u0430\u0437\u0434\u0435\u043b\u043e\u0432:<br \/>\ncp \/target\/etc\/fstab \/target\/etc\/fstab.bak<br \/>\nls -l \/dev\/disk\/by-uuid -l &gt;&gt;\/target\/etc\/fstab<br \/>\n9. \u041e\u0442\u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c fstab:<br \/>\nnano \/etc\/fstab<br \/>\n\u0423\u043a\u0430\u0437\u0430\u0442\u044c \u0432 \u0441\u0442\u0440\u043e\u043a\u0430\u0445 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f uuid-\u0438\u043c\u0435\u043d\u0430 \u0440\u0430\u0437\u0434\u0435\u043b\u043e\u0432, \u043a\u0430\u043a \u043e\u043d\u0438 \u0434\u043e\u043f\u0438\u0441\u0430\u043b\u0438\u0441\u044c \u0432 \u043a\u043e\u043d\u0435\u0446 \u0444\u0430\u0439\u043b\u0430 \u0432 \u043f.8. \u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0444\u0430\u0439\u043b.<br \/>\n10. \u0427\u0440\u0443\u0442\u043d\u0443\u0442\u044c\u0441\u044f \u0432 \/target:<br \/>\nchroot \/target<br \/>\n11. \u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u043a\u043e\u043f\u0438\u044e \u043a\u043e\u043d\u0444\u0438\u0433\u0430 \u0438 \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043d\u043e\u0432\u044b\u0439 \u043a\u043e\u043d\u0444\u0438\u0433 mdadm:<br \/>\ncp \/etc\/mdadm\/mdadm.conf \/etc\/mdadm\/mdadm.conf.bak<br \/>\nmdadm &#8212;detail &#8212;scan &#8212;verbose&gt;\/etc\/mdadm\/mdadm.conf<br \/>\n12. \u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c grub:<br \/>\nupdate-grub<br \/>\n13. \u041f\u0435\u0440\u0435\u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0438\u0442\u044c mdadm, \u043e\u043d \u043e\u0431\u043d\u043e\u0432\u0438\u0442 initramfs:<br \/>\ndpkg-reconfigure mdadm<br \/>\n\u0423\u043a\u0430\u0437\u0430\u0442\u044c \u0438\u043c\u044f raid-\u0430, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0430 \u043a\u043e\u0440\u043d\u0435\u0432\u0430\u044f \/ \u0424\u0421. \u041a\u0441\u0442\u0430\u0442\u0438, \u0435\u0441\u043b\u0438 \/boot \u0442\u043e\u0436\u0435 \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d \u043d\u0430 raid-\u0435, \u0435\u0433\u043e \u0442\u043e\u0436\u0435 \u0436\u0435\u043b\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c.<br \/>\n\u0423\u043a\u0430\u0437\u0430\u0442\u044c \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u043c\u0430\u0441\u0441\u0438\u0432\u044b, \u043d\u0435 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u0435 \u0432 \u043a\u043e\u043d\u0444\u0438\u0433\u0435: Yes.<br \/>\n\u0423\u043a\u0430\u0437\u0430\u0442\u044c \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u043c\u0430\u0441\u0441\u0438\u0432\u044b \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438: Yes.<br \/>\n\u0423\u043a\u0430\u0437\u0430\u0442\u044c \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c \u0446\u0435\u043b\u043e\u0441\u0442\u043d\u043e\u0441\u0442\u044c \u043c\u0430\u0441\u0441\u0438\u0432\u043e\u0432 \u0435\u0436\u0435\u043c\u0435\u0441\u044f\u0447\u043d\u043e: Yes.<br \/>\n\u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u0434\u0435\u043c\u043e\u043d \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433\u0430: Yes.<br \/>\n\u0423\u043a\u0430\u0437\u0430\u0442\u044c \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f, \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u0431\u0443\u0434\u0443\u0442 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c\u0441\u044f \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f \u043e \u0441\u043e\u0431\u044b\u0442\u0438\u044f\u0445, \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d\u043d\u044b\u0445 \u0434\u0435\u043c\u043e\u043d\u043e\u043c \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433\u0430.<br \/>\n14. \u0412\u044b\u0439\u0442\u0438 \u0438\u0437 chroot-\u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f:<br \/>\nexit<br \/>\n15. \u041f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c\u0441\u044f, \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u043e \u0442\u043e\u043c, \u0447\u0442\u043e raid-\u044b \u0441\u0442\u0430\u0440\u0442\u0430\u043d\u0443\u043b\u0438 \u0441 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u043c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e\u043c \u0434\u0438\u0441\u043a\u043e\u0432 \u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0433\u0440\u0443\u0437\u0438\u0442\u0441\u044f \u043a\u0430\u043a \u0440\u0430\u043d\u044c\u0448\u0435.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041d\u0435 \u0433\u0440\u0443\u0437\u0438\u0442\u0441\u044f \u0441\u0435\u0440\u0432\u0435\u0440 \u0441 \u0441\u043e\u0444\u0442\u043e\u0432\u043e\u0433\u043e \u0440\u044d\u0439\u0434\u0430? \u0427\u0442\u043e \u0434\u0435\u043b\u0430\u0442\u044c? 1. \u041f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0441\u0435\u0440\u0432\u0435\u0440, \u0443\u0431\u0435\u0434\u0438\u0442\u044c\u0441\u044f, \u0447\u0442\u043e \u043e\u043d \u043d\u0435 \u0433\u0440\u0443\u0437\u0438\u0442\u0441\u044f \u0438 \u0432\u044b\u0432\u0430\u043b\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0432 initramfs. 2. \u041d\u0430\u0439\u0442\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043e\u0447\u043d\u044b\u0439 \u0434\u0438\u0441\u043a Debian \u0441 \u0442\u043e\u0439 \u0436\u0435 \u0440\u0430\u0437\u0440\u044f\u0434\u043d\u043e\u0441\u0442\u044c\u044e, \u0447\u0442\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u0430\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0430. \u0415\u0441\u043b\u0438 \u0440\u0430\u0437\u0440\u044f\u0434\u043d\u043e\u0441\u0442\u044c \u043d\u0435 \u0441\u043e\u0432\u043f\u0430\u0434\u0451\u0442, chroot \u043d\u0435 \u0441\u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442. &hellip; <a href=\"https:\/\/sashakrasnoyarsk.ru\/?p=1061\">\u0427\u0438\u0442\u0430\u0442\u044c \u0434\u0430\u043b\u0435\u0435 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[337,17,19,6,7],"tags":[1550,1233,115,1544,1379,1432,1433],"class_list":["post-1061","post","type-post","status-publish","format-standard","hentry","category-debian","category-hardware","category-linux","category-pc","category-software","tag-debian","tag-dpkg-reconfigure","tag-grub","tag-linux","tag-mdadm","tag-sw-raid","tag-update-grub"],"_links":{"self":[{"href":"https:\/\/sashakrasnoyarsk.ru\/index.php?rest_route=\/wp\/v2\/posts\/1061","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sashakrasnoyarsk.ru\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sashakrasnoyarsk.ru\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sashakrasnoyarsk.ru\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sashakrasnoyarsk.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1061"}],"version-history":[{"count":1,"href":"https:\/\/sashakrasnoyarsk.ru\/index.php?rest_route=\/wp\/v2\/posts\/1061\/revisions"}],"predecessor-version":[{"id":1063,"href":"https:\/\/sashakrasnoyarsk.ru\/index.php?rest_route=\/wp\/v2\/posts\/1061\/revisions\/1063"}],"wp:attachment":[{"href":"https:\/\/sashakrasnoyarsk.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1061"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sashakrasnoyarsk.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1061"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sashakrasnoyarsk.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1061"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}