LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-13-2008, 10:02 AM   #1
indabhutt
LQ Newbie
 
Registered: Nov 2008
Posts: 13

Rep: Reputation: 0
slackware 11 and software RAID ?


i need help setting up RAID in my slackware 11 system

i was following this guide
http://slackware.osuosl.org/slackwar...EADME_RAID.TXT

and so far reached here

http://img259.imageshack.us/img259/2752/33881396zr1.png

when i try to use mdadm from the slackware cd it says there is no such file .. am i doing something wrong ?

edit:+: and in which partition would i install slackware ? (the pic above)

Last edited by indabhutt; 11-13-2008 at 10:14 AM.
 
Old 11-13-2008, 11:28 AM   #2
indienick
Senior Member
 
Registered: Dec 2005
Location: London, ON, Canada
Distribution: Arch, Ubuntu, Slackware, OpenBSD, FreeBSD
Posts: 1,853

Rep: Reputation: 65
First things first, I used this guide when I set up a RAID at work - it hasn't failed me, yet.

I get this idea that mdadm is not installed on the Slackware install DVD - I could be proven wrong by running
Code:
# find / -iname mdadm
. As for which partition to install Slackware to, I really do not know.

My tried-and-true method for doing funky hardware arrangements (from RAID arrays, to setups with more than one HD) is to have a dedicated boot drive to work from.
 
Old 11-13-2008, 12:16 PM   #3
bgeddy
Senior Member
 
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810

Rep: Reputation: 232Reputation: 232Reputation: 232
Quote:
I get this idea that mdadm is not installed on the Slackware install DVD - I could be proven wrong by running
It should be - on a Slackware 12.1 install dvd it's in /sbin when booted.
 
Old 11-13-2008, 12:48 PM   #4
indabhutt
LQ Newbie
 
Registered: Nov 2008
Posts: 13

Original Poster
Rep: Reputation: 0
@indienick

i have read that , but i guess i need to read that again .. i might have missed something earlier ..

@bgeddy

its not in slackware 11 , anyway am using slax live cd to mdadm RAID ...

as for installation of slackware 11 to the partition .. am still confused too :|
 
Old 11-13-2008, 12:59 PM   #5
bgeddy
Senior Member
 
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810

Rep: Reputation: 232Reputation: 232Reputation: 232
Quote:
its not in slackware 11 , anyway am using slax live cd to mdadm RAID ...
Well the guide you give the link to here is from Slackware 12.1 so that wouldn't surprise me.

In any case using a guide from one version (12.1) to setup another (11) may well give you problems.
 
Old 11-13-2008, 01:51 PM   #6
mRgOBLIN
Slackware Contributor
 
Registered: Jun 2002
Location: New Zealand
Distribution: Slackware
Posts: 999

Rep: Reputation: 231Reputation: 231Reputation: 231
Yes mdadm was introduced to the initrd in slackware-12.0. Versions prior to that will use raidtools.

An article dealing with slackware and raidtools is here. http://www.userlocal.com/articles/ra...ware-linux.php
 
Old 11-13-2008, 02:45 PM   #7
indabhutt
LQ Newbie
 
Registered: Nov 2008
Posts: 13

Original Poster
Rep: Reputation: 0
i still cant figure out where to install the actuall operating system (slackware 11) . is it possible to install slackware on a partition formatted with linux raid autodetect ?
 
Old 11-13-2008, 03:21 PM   #8
mRgOBLIN
Slackware Contributor
 
Registered: Jun 2002
Location: New Zealand
Distribution: Slackware
Posts: 999

Rep: Reputation: 231Reputation: 231Reputation: 231
Check to see that the raid is started with.

Code:
cat /proc/mdstat
Should show something like /dev/md0

That is where you need to install to (may be md1 md2 etc..)
 
Old 11-13-2008, 03:27 PM   #9
indabhutt
LQ Newbie
 
Registered: Nov 2008
Posts: 13

Original Poster
Rep: Reputation: 0
thanks a lot
 
Old 11-14-2008, 01:00 AM   #10
indabhutt
LQ Newbie
 
Registered: Nov 2008
Posts: 13

Original Poster
Rep: Reputation: 0
Quote:
Start by creating the RAID array for your root filesystem.

- RAID 0:
mdadm --create /dev/md0 --level 0 --raid-devices 2 \
/dev/sda2 /dev/sdb2

- RAID 1:
mdadm --create /dev/md0 --level 1 --raid-devices 2 \
/dev/sda1 /dev/sdb1

- RAID 5:
mdadm --create /dev/md0 --level 5 --raid-devices 3 \
/dev/sda2 /dev/sdb2 /dev/sdc2
one more doubt .. thats ^^ from the guide ...

err same /dev/md0 block device for all the raid ? that cant be right ...
 
Old 11-14-2008, 01:39 AM   #11
mRgOBLIN
Slackware Contributor
 
Registered: Jun 2002
Location: New Zealand
Distribution: Slackware
Posts: 999

Rep: Reputation: 231Reputation: 231Reputation: 231
No they are 3 different examples for 3 different levels of raid 0,1 and 5.

Just choose the one that applies to you.
 
Old 11-14-2008, 01:51 AM   #12
indabhutt
LQ Newbie
 
Registered: Nov 2008
Posts: 13

Original Poster
Rep: Reputation: 0
ah ok .. thanks

so its possible to create different RAID setups on the same HDD .. but on different partition .. right ?

these stupid doubts keep coming up
 
Old 11-14-2008, 02:28 AM   #13
indabhutt
LQ Newbie
 
Registered: Nov 2008
Posts: 13

Original Poster
Rep: Reputation: 0
@mRgOBLIN ,John Jenkins ?

i was reading your guide ... very helpfull .. thanks a lot
 
Old 11-14-2008, 04:56 PM   #14
mRgOBLIN
Slackware Contributor
 
Registered: Jun 2002
Location: New Zealand
Distribution: Slackware
Posts: 999

Rep: Reputation: 231Reputation: 231Reputation: 231
Quote:
Originally Posted by indabhutt View Post
ah ok .. thanks

so its possible to create different RAID setups on the same HDD .. but on different partition .. right ?

these stupid doubts keep coming up
Yes it is.

you can for example have

md0 raid0 sda1,sdb1
md1 raid1 sda2,sdb2
md2 raid0 sda3,sdb3 etc...

Last edited by mRgOBLIN; 11-14-2008 at 05:00 PM.
 
Old 11-15-2008, 06:37 AM   #15
indabhutt
LQ Newbie
 
Registered: Nov 2008
Posts: 13

Original Poster
Rep: Reputation: 0
ah ok .. thanks very much
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
software RAID 0 slackware ? cyberiapost Slackware 1 11-09-2008 01:13 AM
software raid 1 in slackware julc Slackware 1 11-25-2005 03:21 PM
Slackware 10.1 and Software RAID Mow Slackware - Installation 2 04-08-2005 07:11 AM
Slackware 10 Autodetects Software RAID ?!?!?! SiegeX Slackware 3 07-27-2004 05:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration