LinuxQuestions.org
Register a domain and help support LQ
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 06-20-2005, 03:07 PM   #1
michaelsanford
Member
 
Registered: Feb 2005
Location: Ottawa/Montréal
Distribution: Slackware + Darwin (MacOS X)
Posts: 468

Rep: Reputation: 30
Software RAID1 problems, won't take /dev/sdb2 ?


http://slacksite.com/slackware/raid.html

I have only two partitions, swap and /, which ar identical in every respect on both disks. I boot from /dev/sdb2. I've managed to create the /dev/md0 device and add /dev/sda2 but when I try to issue `raidhotadd /dev/md0 /dev/sdb2` I get the error /dev/md0: can not hot-add disk: invalid argument.

Why is it an invalid argument? I can add /dev/sdb (which I did accidentally a few times) which of course just wipes the whole disk.

Is it because it's still a failed-disk in /etc/raidtab ?
 
Old 06-20-2005, 03:17 PM   #2
marvin00001
Member
 
Registered: Apr 2005
Posts: 59

Rep: Reputation: 15
Please can you post your partition table
 
Old 06-20-2005, 03:25 PM   #3
michaelsanford
Member
 
Registered: Feb 2005
Location: Ottawa/Montréal
Distribution: Slackware + Darwin (MacOS X)
Posts: 468

Original Poster
Rep: Reputation: 30
Gladly

Code:
gateway:~# fdisk -l /dev/sda

Disk /dev/sda: 122.9 GB, 122942324736 bytes
255 heads, 63 sectors/track, 14946 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1           14823       14946      996030    5  Extended
/dev/sda2   *           1       14822   119057683+  fd  Linux raid autodetect
/dev/sda5           14823       14946      995998+  82  Linux swap

Partition table entries are not in disk order
root@gateway:~# fdisk -l /dev/sdb

Disk /dev/sdb: 122.9 GB, 122942324736 bytes
255 heads, 63 sectors/track, 14946 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1           14823       14946      996030    5  Extended
/dev/sdb2   *           1       14822   119057683+  fd  Linux raid autodetect
/dev/sdb5           14823       14946      995998+  82  Linux swap

Partition table entries are not in disk order
EDIT I may have just totally fluked myself the answer. I'll post more when the recovery is done--around 32 minutes.

SECOND EDIT Yeah I got it working. I also found a MUCH simpler way of doing software RAID than that guide above (though it relies on a clean system). I'll write a how-to later.

Last edited by michaelsanford; 06-20-2005 at 04:13 PM.
 
Old 01-08-2006, 05:35 AM   #4
kicko
LQ Newbie
 
Registered: Nov 2005
Distribution: Slackware 10, Mandriva 2006
Posts: 10

Rep: Reputation: 0
Could you please post your guide to make RAID?
 
Old 01-08-2006, 08:46 PM   #5
michaelsanford
Member
 
Registered: Feb 2005
Location: Ottawa/Montréal
Distribution: Slackware + Darwin (MacOS X)
Posts: 468

Original Poster
Rep: Reputation: 30
Yeah, guess I never got around to doing that

My guide is simple. Make both disks the same partition scheme, type RAID Autodetect (except for the swap partitions) and THEN install the system as you would normally. Slackware should recognize only one installation device: md0. You'll; have to play around with the installation location of lilo to get it to work on your setup. I believe I installed mine on the 'root partition (potentially unsafe)'.



Additional: The first time you boot it will warn you that "The RAID array md0 is not clean! Repairing" or somehting like that. You'll then notice the HD access lights going nuts for a good long time, and a process called 'raidchk' or 'repair_raid' or something of that nature taking up some CPU cycles. That's normal; it's rebuilding your RAID array, let it finish ! And don't worry, it may take a long time, but it won't take forever.

On my Athlon64 2.4 GHz with 2 GB RAM and nothing running it took something like 3 hours...

Last edited by michaelsanford; 01-08-2006 at 08:48 PM.
 
  


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
linux software raid1 porlock Linux - Newbie 1 03-18-2013 07:40 PM
Software RAID1 monitoring Sushy Slackware 1 10-05-2005 09:52 AM
Creating Software Raid1 Jimi_l Suse/Novell 3 04-29-2005 05:54 AM
Software RAID1 problems robbow52 Debian 7 11-15-2004 11:52 AM
Software RAID1 problems robbow52 Linux - Software 1 07-28-2004 10:32 AM


All times are GMT -5. The time now is 11:22 AM.

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