<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-245535679440451552</id><updated>2012-02-16T18:19:14.166-08:00</updated><category term='slackware'/><category term='raid'/><category term='software'/><category term='howto'/><title type='text'>Slackware Masochistic Blog</title><subtitle type='html'>This is my collection of things related to a distribution I think rarely gets the attention it deserves: Slackware Linux.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://slackish.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/245535679440451552/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://slackish.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Xackery</name><uri>http://www.blogger.com/profile/03650348991141441828</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://1.bp.blogspot.com/_iS47ZNBa8I4/SiXRHxxy1_I/AAAAAAAAAD8/CXSNKF3iJ9o/S220/disgaia4cd.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>1</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-245535679440451552.post-188709365292784007</id><published>2007-11-09T15:16:00.000-08:00</published><updated>2007-11-09T16:11:19.226-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='raid'/><category scheme='http://www.blogger.com/atom/ns#' term='howto'/><category scheme='http://www.blogger.com/atom/ns#' term='slackware'/><category scheme='http://www.blogger.com/atom/ns#' term='software'/><title type='text'>Software Raid in Slackware</title><content type='html'>As my first article, I wanted to discuss Slackware's configuration of software raid. For my example I'm going to use a RAID-1 (Mirror) configuration. The advantage I can see of Software RAID over Hardware RAID is the fact you can raid partitions instead of entire hard drives. Since your drive has swap information typically on it, this means you are mirroring swap space with the Hardware RAID setup. This also means that when you do a Software RAID configuration, you are doubling the capacity of your swap between the two drives where hardware would simply mirror the swap.&lt;br /&gt; &lt;br /&gt;First you need to set up what drives are going to be used in the mirror. In my example, I'm going to be using sda and sdb as my mirrored drives. Change this as you deem fit.&lt;br /&gt;&lt;br /&gt;Take the amount of RAM in your system, double it, and that's my usual rule of thumb on how large to make the swap space.&lt;br /&gt;&lt;br /&gt;&lt;font color=#aadd99&gt;cfdisk /dev/sda&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;Delete all current partitions (obviously, this erases all data!) and create a new primary partition with the size of (Max space - (Your RAM size)). Ex. with 1 gig of ram you would  do a 499gigabyte partition on a 500gigabyte drive. Create a second primary partition with the remaining space (1gig). Now select the first partition and go to Type. You want to change it to FD. You also want to  make it BOOTABLE. Now select the second partition and go to Type and press enter a bunch until you return to main screen again. This will set it to Linux Swap.&lt;br /&gt;&lt;br /&gt;now that you have the first drive set up, you want the second drive to 1:1 image it, right? You could follow all the steps above, but it's just easier to do this command:&lt;br /&gt;&lt;br /&gt;&lt;font color=#aadd99&gt;sfdisk -d /dev/sda | sfdisk /dev/sdb&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;This will make an exact copy of the partition setup of sda and place it on sdb. You can now run &lt;font color=#aadd99&gt;cfdisk /dev/sdb&lt;/font&gt; and verify that they indeed match.&lt;br /&gt;&lt;br /&gt;Now set up a md device.&lt;br /&gt;&lt;font color=#aadd99&gt;mdadm --create /dev/md0 --level=1 --raid-devices=2 /dev/sda1 /dev/sdb1&lt;br /&gt;&lt;/font&gt;&lt;font color=#aadd99&gt;&lt;br /&gt;&lt;/font&gt;Run "setup" to get Slackware going. When asked for swap drives, make sure both /dev/sda2 and /dev/sdb2 are highlighted (They should be by default). Also make sure you select /dev/md0 when asked what partition to install, NOT /dev/sda1 or /dev/sdb1, they would defeat the point of mirroring.&lt;br /&gt;&lt;br /&gt;When doing LILO also make sure your device is configured as /dev/md0 and not /dev/sda1 or /dev/sdb1&lt;br /&gt;&lt;font color=#aadd99&gt;&lt;br /&gt;&lt;/font&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/245535679440451552-188709365292784007?l=slackish.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://slackish.blogspot.com/feeds/188709365292784007/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=245535679440451552&amp;postID=188709365292784007' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/245535679440451552/posts/default/188709365292784007'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/245535679440451552/posts/default/188709365292784007'/><link rel='alternate' type='text/html' href='http://slackish.blogspot.com/2007/11/software-raid-in-slackware.html' title='Software Raid in Slackware'/><author><name>Xackery</name><uri>http://www.blogger.com/profile/03650348991141441828</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://1.bp.blogspot.com/_iS47ZNBa8I4/SiXRHxxy1_I/AAAAAAAAAD8/CXSNKF3iJ9o/S220/disgaia4cd.jpg'/></author><thr:total>0</thr:total></entry></feed>
