{"id":238,"date":"2011-01-11T09:37:43","date_gmt":"2011-01-11T08:37:43","guid":{"rendered":"https:\/\/thebc.ch\/blog\/?p=238"},"modified":"2013-06-27T17:29:24","modified_gmt":"2013-06-27T15:29:24","slug":"linux-software-raid-recovery","status":"publish","type":"post","link":"https:\/\/thebc.ch\/blog\/?p=238","title":{"rendered":"Linux Software-Raid Recovery"},"content":{"rendered":"<ol>\n<li>Finde heraus welche HD defekt ist und trage sie in \/etc\/raidtab als failed-disk ein (anstatt raid-disk, failed-disk).<\/li>\n<li>Fahre nun den PC herunter und wechsle die defekte Disk aus.<\/li>\n<li>Stoppe Samba; \/etc\/init.d\/smb stop<\/li>\n<li>Alle Raiddevices unmounten.<\/li>\n<li>Alle Raiddevices stoppen.<\/li>\n<li>Lege nun auf der neuen Disk ein Filesystem an: fdisk, mke2fs.<\/li>\n<li>Wechsle nun den Eintrag in \/etc\/raidtab von failed-disk wieder zu raid-disk.<\/li>\n<li>ACHTUNG! Dies funktioniert wenn keine Fehler gemacht wurden, die Disks gleich gross sind, die eine formatiert und die Aktualisierung in \/etc\/raidtab richtig gemacht wurde. Um sicher zu gehen UNBEDINGT ein Backup anlegen.<\/li>\n<\/ol>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;width:100%;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/><\/div><\/td><td><div class=\"text codecolorer\">mkraid -f \/dev\/md0 resp. mkraid -R \/dev\/md0<\/div><\/td><\/tr><\/tbody><\/table><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Finde heraus welche HD defekt ist und trage sie in \/etc\/raidtab als failed-disk ein (anstatt raid-disk, failed-disk). Fahre nun den PC herunter und wechsle die defekte Disk aus. Stoppe Samba; \/etc\/init.d\/smb stop Alle Raiddevices unmounten. Alle Raiddevices stoppen. Lege nun &hellip; <a href=\"https:\/\/thebc.ch\/blog\/?p=238\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7,5,16],"tags":[],"class_list":["post-238","post","type-post","status-publish","format-standard","hentry","category-hardware","category-linux","category-software"],"_links":{"self":[{"href":"https:\/\/thebc.ch\/blog\/index.php?rest_route=\/wp\/v2\/posts\/238","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thebc.ch\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thebc.ch\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thebc.ch\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/thebc.ch\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=238"}],"version-history":[{"count":8,"href":"https:\/\/thebc.ch\/blog\/index.php?rest_route=\/wp\/v2\/posts\/238\/revisions"}],"predecessor-version":[{"id":3151,"href":"https:\/\/thebc.ch\/blog\/index.php?rest_route=\/wp\/v2\/posts\/238\/revisions\/3151"}],"wp:attachment":[{"href":"https:\/\/thebc.ch\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=238"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thebc.ch\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=238"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thebc.ch\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=238"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}