LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 02-27-2005, 04:55 PM   #1
xrado
Member
 
Registered: Dec 2004
Distribution: Zenwalk/Slackware
Posts: 98

Rep: Reputation: 15
making raid 1


i created degradated raid1 using only hdc, and copy all system from hda to it.
then i got this error booting from second disk (hdc):
"Kernel panic: No init found. Try passing init= option to kernel"

using grub menu:
# RAID
title Raid
root (hd0,0)
kernel /boot/vmlinuz root=/dev/md1 ro
savedefault
boot

what shoud i do?
 
Old 02-28-2005, 08:34 AM   #2
edgood1
Member
 
Registered: Jan 2005
Distribution: fedora, redhat, gentoo, suse
Posts: 30

Rep: Reputation: 15
how did you copy the 'system' ??


are you sure there is a bootloader (grub) installed on the disk?
 
Old 02-28-2005, 08:52 AM   #3
xrado
Member
 
Registered: Dec 2004
Distribution: Zenwalk/Slackware
Posts: 98

Original Poster
Rep: Reputation: 15
first i got system installed on hda,
then i mounted /dev/hdc1 to /mnt and copyed all directories except /proc and /mnt on it,
then i made empty /proc on /mnt
grub is still instaled on hda, but im booting from hdc wich is md1 for now

is this wrong?
 
Old 02-28-2005, 10:01 AM   #4
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
root (hd0,0) = hda1
I guess that's wrong...
 
Old 02-28-2005, 10:06 AM   #5
edgood1
Member
 
Registered: Jan 2005
Distribution: fedora, redhat, gentoo, suse
Posts: 30

Rep: Reputation: 15
install grub on /dev/hdc to make it boot.

if you used 'cp -a' to copy everything it doesn't copy grub....

don't forget to make a mountpoint /sys either
 
Old 02-28-2005, 12:11 PM   #6
xrado
Member
 
Registered: Dec 2004
Distribution: Zenwalk/Slackware
Posts: 98

Original Poster
Rep: Reputation: 15
thx guys! its working now
it is first time im using grub

but now i have another problem

when i add hda to md1 array using #mdadm /dev/md0 -a /dev/hda1
everything works fine, drives get sync as #cat /proc/mdstat shows
but when i reboot the machine hda1 is missing from the array
the array doesnt get autostart at boot, just hdc1 is in array after reboot
partitions on booth drives have "fd" id

what am i missing?
 
Old 02-28-2005, 12:17 PM   #7
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
I think that writting mdadm /dev/md0 -a /dev/hda1 in /etc/rc.d/rc.local will do the job.
 
Old 02-28-2005, 12:23 PM   #8
xrado
Member
 
Registered: Dec 2004
Distribution: Zenwalk/Slackware
Posts: 98

Original Poster
Rep: Reputation: 15
thx for advice!

but isnt there any more elegant option
 
Old 02-28-2005, 12:35 PM   #9
edgood1
Member
 
Registered: Jan 2005
Distribution: fedora, redhat, gentoo, suse
Posts: 30

Rep: Reputation: 15
did you wait fot the reconstruction process to complete?

i spend many hours at my desk watching 'cat /proc/mdstat' over and over and over and over......


ive seen weird things happen if you don't let the process complete before a reboot....
 
Old 02-28-2005, 01:11 PM   #10
xrado
Member
 
Registered: Dec 2004
Distribution: Zenwalk/Slackware
Posts: 98

Original Poster
Rep: Reputation: 15
i did
i installed only minimal system to test and learn raid, its about 1Gb all together
so it took about 10min to complete the array

i tryed again and looks like is working now
i tryed also "mdadm -As" after completing the array, maybe it did some trick
 
  


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
Making Disk RAID ilnli Linux - General 3 07-18-2005 09:52 AM
Perc3Di SCSI RAID + Adaptec 2810SA RAID = Fatal Grub Error? LinuxOnTheEdge Linux - General 2 03-19-2005 02:35 PM
Promise SX6000 and making bootable raid 5 The Jesus Linux - Hardware 6 07-12-2004 10:01 PM
does linux support the sata raid and ide raid in k7n2 delta ilsr? spyghost Linux - Hardware 10 04-16-2004 05:27 AM
Expert opinion partioning hard drive & making raid 1 coskun Linux - General 0 07-07-2003 08:40 PM

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

All times are GMT -5. The time now is 09:32 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