{"id":43,"date":"2006-05-29T19:00:43","date_gmt":"2006-05-30T03:00:43","guid":{"rendered":"http:\/\/www.11h.net\/blog\/?p=43"},"modified":"2010-08-20T12:13:02","modified_gmt":"2010-08-20T19:13:02","slug":"making-raid-array-in-slackware-because-its-easy-as-pie","status":"publish","type":"post","link":"https:\/\/11h.net\/blog\/making-raid-array-in-slackware-because-its-easy-as-pie\/","title":{"rendered":"Making RAID array in Slackware (because it&#8217;s easy as pie!)"},"content":{"rendered":"<p>Let&#8217;s say that you needed to store a large amount of data in a central location (I.E. directory) but the largest drive that you can afford and find for a reasonable price is a 400GB Seagate SATA drive.<\/p>\n<p>Unlike other OSes that I have used, Slackware has an awesome \u2018autoraid\u2019 capability that is idiot proof.  Believe me!  I\u2019m not only the president, I\u2019m also a client!<\/p>\n<p>In four easy steps you too can have a RAID 0, 1, or 5 setup.<\/p>\n<p><strong>Step 1<\/strong>:  Use fdisk to prepare the disk<\/p>\n<blockquote><p><em># fdisk \/dev\/sda<\/em> # sd just happens to be the SCSI\/SATA controller on my system<\/p>\n<p>Disk \/dev\/sda: 400.0 GB, 400088457216 bytes<\/p>\n<p>255 heads, 63 sectors\/track, 48641 cylinders<br \/>\nUnits = cylinders of 16065 * 512 = 8225280 bytes<br \/>\nDevice Boot      Start         End      Blocks   Id  System<br \/>\nCommand (m for help): n<\/p>\n<p>Command action<\/p>\n<p>e   extended<br \/>\np   primary partition (1-4)<br \/>\np<br \/>\nPartition number (1-4): 1<br \/>\nFirst cylinder (1-48641, default 1):<br \/>\nUsing default value 1<br \/>\nLast cylinder or +size or +sizeM or +sizeK (1-48641, default 48641):<br \/>\nUsing default value 48641<\/p>\n<p>Command (m for help): t<br \/>\nSelected partition 1<br \/>\nHex code (type L to list codes): fd                 #fd is \u201cLinux raid auto\ufffd?<br \/>\nChanged system type of partition 1 to fd (Linux raid autodetect)<\/p>\n<p>Repeat the same step for each drive.<\/p><\/blockquote>\n<p><strong>Step 2<\/strong>:  Creating the configuration file<\/p>\n<blockquote><p>Edit or create the file <em>\/etc\/raidtab<\/em> with the following content<\/p><\/blockquote>\n<blockquote><p>raiddev \/dev\/md0<br \/>\nraid-level 0<br \/>\nnr-raid-disks 2<br \/>\nnr-spare-disks 0<br \/>\npersistent-superblock 1<br \/>\nchunk-size 128<br \/>\ndevice \/dev\/sda1<br \/>\nraid-disk 0<br \/>\ndevice \/dev\/sdb1<br \/>\nraid-disk 1<\/p>\n<p># repeat for each \u2018raid\u2019 disk:<\/p>\n<p># device \/dev\/xdaz<br \/>\n# raid-disk n<\/p><\/blockquote>\n<p><strong>Step 3<\/strong>: Making the RAID<\/p>\n<blockquote><p><em># mkraid \/dev\/md0<\/em><\/p><\/blockquote>\n<p><strong>Step 4<\/strong>: Formatting the new RAID device<\/p>\n<blockquote><p><em># mkfs.reiserfs \/dev\/md0<\/em><\/p><\/blockquote>\n<p>Be sure to add the \/dev\/md0 device to your fstab so it will mount the next time the system reboots.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Let&#8217;s say that you needed to store a large amount of data in a central location (I.E. directory) but the largest drive that you can afford and find for a reasonable price is a 400GB Seagate SATA drive.<\/p>\n<p>Unlike other OSes that I have used, Slackware has an awesome \u2018autoraid\u2019 capability that is idiot proof. Believe me! I\u2019m not only the president, I\u2019m also a client!<\/p>\n<p>In four easy steps you too can have a RAID 0, 1, or 5 setup.<\/p>\n<p>Step 1: Use fdisk to prepare the disk<\/p>\n<p># fdisk \/dev\/sda # sd just happens to be the SCSI\/SATA controller on my system<\/p>\n<p>Disk \/dev\/sda: 400.0 GB, 400088457216 bytes<\/p>\n<p> <a href=\"https:\/\/11h.net\/blog\/making-raid-array-in-slackware-because-its-easy-as-pie\/\">&#8230;<\/p>\n<p>[Continue reading]<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[],"_links":{"self":[{"href":"https:\/\/11h.net\/blog\/wp-json\/wp\/v2\/posts\/43"}],"collection":[{"href":"https:\/\/11h.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/11h.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/11h.net\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/11h.net\/blog\/wp-json\/wp\/v2\/comments?post=43"}],"version-history":[{"count":1,"href":"https:\/\/11h.net\/blog\/wp-json\/wp\/v2\/posts\/43\/revisions"}],"predecessor-version":[{"id":95,"href":"https:\/\/11h.net\/blog\/wp-json\/wp\/v2\/posts\/43\/revisions\/95"}],"wp:attachment":[{"href":"https:\/\/11h.net\/blog\/wp-json\/wp\/v2\/media?parent=43"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/11h.net\/blog\/wp-json\/wp\/v2\/categories?post=43"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/11h.net\/blog\/wp-json\/wp\/v2\/tags?post=43"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}