{"id":119,"date":"2009-05-05T09:34:00","date_gmt":"2009-05-05T09:34:00","guid":{"rendered":"http:\/\/antynet.pl\/index.php\/2009\/05\/05\/linux-raid\/"},"modified":"2009-05-05T09:34:00","modified_gmt":"2009-05-05T09:34:00","slug":"linux-raid","status":"publish","type":"post","link":"https:\/\/www.antynet.pl\/index.php\/2009\/05\/05\/linux-raid\/","title":{"rendered":"LINUX RAID"},"content":{"rendered":"<p><span style=\"font-weight: bold;\">1. Disk partioning:<\/span><\/p>\n<div class=\"console\">fdisk \/dev\/sda<\/div>\n<p>n &#8211; create new partition<br \/>t &#8211; create partition with type RAID (fd &#8211; Linux raid autodetect)<\/p>\n<div><span style=\"font-weight: bold;\">2. Create array:<\/span><\/p>\n<div class=\"console\">mdadm &#8211;create \/dev\/md[nr] &#8211;level=[0|1|etc] &#8211;raid-devices=2 \/dev\/sda1 \/dev\/sdb1<\/div>\n<p><span style=\"font-weight: bold;\">3. Format array:<\/span><\/p>\n<div class=\"console\">mkfs.ext3 \/dev\/md[nr]<\/div>\n<p><span style=\"font-weight: bold;\">4. Create directory<\/span><br \/><span style=\"font-weight: bold;\">5. Mount array<\/span><br \/><span style=\"font-weight: bold;\"> 6. Add to \/etc\/fstab<\/span><\/p>\n<div class=\"console\">echo &#8222;\/dev\/md[nr] \/[katalog] defaults 0 2&#8221; >>etc\/fstab<\/div>\n<p><span style=\"font-weight: bold;\">7. Create file \/etc\/mdadm.conf<\/span><\/p>\n<div class=\"console\">echo &#8222;DEVICE \/dev\/sda1 \/dev\/sdb1&#8221; > \/etc\/mdadm.conf<br \/>mdadm &#8211;detail &#8211;scan >> \/etc\/mdadm.conf<\/div>\n<p><span style=\"font-weight: bold;\">General:<\/span><\/div>\n<div><span style=\"font-weight: bold;\"><span style=\"font-weight: normal;\">mdadm &#8211;add \/dev\/md[nr] \/dev\/sda2 #add disk to synchronize with array<\/span><br \/><\/span>mdadm -E \/dev\/sda1 #info about device inside array<br \/>cat \/proc\/mdstat #present state of array<br \/>mdadm &#8211;stop \/dev\/md[nr] #stop array, free devices<br \/>mdadm &#8211;assemble #mount arrary<br \/>mdadm &#8211;detail &#8211;scan #info about components from \/proc\/mdstat<\/div>\n","protected":false},"excerpt":{"rendered":"<p>1. Disk partioning: fdisk \/dev\/sda n &#8211; create new partitiont &#8211; create partition with type RAID (fd &#8211; Linux raid autodetect) 2. Create array: mdadm &#8211;create \/dev\/md[nr] &#8211;level=[0|1|etc] &#8211;raid-devices=2 \/dev\/sda1 \/dev\/sdb1 3. Format array: mkfs.ext3 \/dev\/md[nr] 4. Create directory5. Mount array 6. Add to \/etc\/fstab echo &#8222;\/dev\/md[nr] \/[katalog] defaults 0 2&#8221; >>etc\/fstab 7. Create file [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"categories":[1],"tags":[36],"class_list":["post-119","post","type-post","status-publish","format-standard","hentry","category-bez-kategorii","tag-linux-raid"],"_links":{"self":[{"href":"https:\/\/www.antynet.pl\/index.php\/wp-json\/wp\/v2\/posts\/119","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.antynet.pl\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.antynet.pl\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.antynet.pl\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.antynet.pl\/index.php\/wp-json\/wp\/v2\/comments?post=119"}],"version-history":[{"count":0,"href":"https:\/\/www.antynet.pl\/index.php\/wp-json\/wp\/v2\/posts\/119\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.antynet.pl\/index.php\/wp-json\/wp\/v2\/media?parent=119"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.antynet.pl\/index.php\/wp-json\/wp\/v2\/categories?post=119"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.antynet.pl\/index.php\/wp-json\/wp\/v2\/tags?post=119"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}