LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 10-13-2004, 05:09 PM   #1
Lleb_KCir
Senior Member
 
Registered: Nov 2003
Location: Orlando FL
Distribution: Debian
Posts: 1,765

Rep: Reputation: 45
Debian and software RAID


i have 2 40G WG ATA hard drives and i would like to try and RAID them up on a debian install. i am very inexperianced with linux fdisk and i have no clue how to make a raid with those 2 disks so i can make the system install to 1 80G drive.

sujestions, pointers, etc. all welcome
 
Old 10-14-2004, 04:12 AM   #2
melazyboy
LQ Newbie
 
Registered: Feb 2004
Posts: 5

Rep: Reputation: 0
If these drives are IDE (esp if connect via exp card) you might have to set them up first using major/minor inodes -- this only applies if you can't mount them -- IF YOU CAN MOUNT THEM SKIP THIS PART -- To set them up type 'cat /proc/partitions' it shuld read with 2.6.x kernel major/minor/blocks/name, for ex
'3 2 058086083 hda1'
take the paritions you want, copy the major and minor block numbers and type this in: 'mknod /dev/[NAME] [major] [minor]'


NEXT PART HERE.
-------------------------
assuming the first partition is /dev/hda1 and the second is /dev/hdb1 and you want a linear array:

apt-get update & apt-get install raidtools & hdparm -d1 /dev/hda1 /dev/hdb1; #get raid tools and turn on DMA or be forever slow

edit /etc/raidtab with your favorite text editor (vim!) make it read: (you should have a folder /dev/md0)

raiddev /dev/md0
raid-level 1
nr-raid-disks 1
nr-spare-disks 0
persistent-superblock 1
chunk-size 32
device /dev/hda1
raid-disk 0
device /dev/hdb1
raid-disk 1

issue command "mkraid /dev/md0" done;

-melazyboy
 
Old 10-14-2004, 04:15 AM   #3
melazyboy
LQ Newbie
 
Registered: Feb 2004
Posts: 5

Rep: Reputation: 0
correction maybe

might not need to specify chunk size on linear (<lvl(3)) array sry -- coulden't hurt unless raidtools refuses it though.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing Debian after CentOS with software RAID arsham Linux - Distributions 0 11-07-2005 05:12 AM
Nforce 3 ultra software raid while installing debian Devrethman Linux - Hardware 2 08-27-2005 08:25 AM
SATA software RAID woes with 2.6.8 debian Jaxon Linux - Hardware 0 10-05-2004 05:29 PM
Debian sarge netinstall software raid major problem araldit Linux - Newbie 0 07-22-2004 05:58 PM
moving system from ide software raid to new box with scsi raid ftumsh Linux - General 0 10-28-2003 09:34 AM


All times are GMT -5. The time now is 02:24 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration