View previous topic :: View next topic |
Author |
Message |
cyr0n_k0r n00b
Joined: 06 May 2003 Posts: 26
|
Posted: Sat May 10, 2003 12:50 am Post subject: gentoo wont find my RAID |
|
|
I am trying to install gentoo on a RAID1.
The array is there and everything, and in the kernel I said "loadataraid" or whatever the command was to manually load raid drivers.
But when I try and fdisk, it tells me to type "/dev/rd/c0d0" for raid devices. When I type that is says unable to open. What do I do? |
|
Back to top |
|
|
jlg Guru
Joined: 31 May 2002 Posts: 360 Location: Montreal, CANADA
|
Posted: Sat May 10, 2003 2:13 am Post subject: |
|
|
first are you trying to do hardware or software raid?
don't mix the two!
on my system I have a hardware raid. Meaning that I have a special card which does all the raid setup. Then in linux I don't need to do anything special. Just load the driver for my card and thats it. It just sees the raid array has /dev/sda |
|
Back to top |
|
|
cyr0n_k0r n00b
Joined: 06 May 2003 Posts: 26
|
Posted: Sat May 10, 2003 2:19 am Post subject: |
|
|
Im trying to do hardware raid with a promise onboard controller.
Ive been in the gentoo irc channel for an hour and noone can help me. What do I do?
Everything is setup, fdisk just wont find the array. |
|
Back to top |
|
|
cyrillic Watchman
Joined: 19 Feb 2003 Posts: 7313 Location: Groton, Massachusetts USA
|
Posted: Sat May 10, 2003 2:57 am Post subject: |
|
|
When you boot with the Gentoo 1.4_rc4 CD :
Code: | boot : gentoo noraid doataraid |
Once it finishes booting, "lsmod" should show the modules ataraid and pdcraid (and a bunch of others)
You should now be able to see your array and partition it :
Code: | # fdisk /dev/ataraid/disc0/disc |
|
|
Back to top |
|
|
jlg Guru
Joined: 31 May 2002 Posts: 360 Location: Montreal, CANADA
|
Posted: Sat May 10, 2003 3:01 am Post subject: |
|
|
all you need is the right driver for your card loaded in the kernel. Is it ide or scsi raid?
at this point you are trying to do the fdisk from what? the gentoo installation cd? if so you will probably have to load the right module using modprobe before you can do the fdisk!
example on when I installed mine on adaptec scsi raid card:
modprobe dpt_i2o
fdisk /dev/sda
thats it! nothing more to do.. then when I compiled my kernel I made sure that dpt_i2o was compiled in and not as a module so that I could put the os on it |
|
Back to top |
|
|
cyr0n_k0r n00b
Joined: 06 May 2003 Posts: 26
|
Posted: Sat May 10, 2003 3:26 am Post subject: |
|
|
I did the modprobe in the install instructions. How do I find out what a better raid drive is for.
Its IDE RAID |
|
Back to top |
|
|
cyrillic Watchman
Joined: 19 Feb 2003 Posts: 7313 Location: Groton, Massachusetts USA
|
Posted: Sat May 10, 2003 3:30 am Post subject: |
|
|
When you "modprobe pdcraid", does it give you any errors ?
Type "dmesg" and see if the kernel detects your Promise controller. |
|
Back to top |
|
|
Pigeon Guru
Joined: 21 Jun 2002 Posts: 307
|
Posted: Sat May 10, 2003 8:39 pm Post subject: |
|
|
Yeah, it should be under /dev/ataraid/disc0/ To fdisk it type fdisk /dev/ataraid/disc0/disc Your partitions will be /dev/ataraid/disc0/(part1|part2|part3) etc rather than /dev/(hda1|hda2|hda3).
It *might* be fdisk /dev/ataraid/d0 if the kernel doesn't use the /dev filesystem.
Also, when you boot the kernel, you'll have to boot it with root=/dev/ataraid/d<x>p<y> rather than /dev/ataraid/disc<x>/part<y> that you'd normally use. |
|
Back to top |
|
|
patbe n00b
Joined: 17 Mar 2003 Posts: 39
|
Posted: Mon May 12, 2003 5:40 pm Post subject: |
|
|
i have the same problem, when I do modprobe pdcraid I get no such device....
dmesg shows:
PDC20267: chipset revision2
PDC20267: not 100% native mode: will probe irqs later
PDC20267: (U)DMA Burst Bit ENABLED Primary MASTER Mode Secondary MASTER mode
PDC20267: first interface base=0xdff0, second interface base=0xdfa8
ide2: BM-DMA at 0xdf00-0xdf07, BIOS setting: hde_pio, hdf:pio
ide3: BM-DMA at 0xdf08-0xdf0f, BIOS setting: hdg:pio, hdh:pio
.
.
.
Promise Fasttrak(tm) Softwareraid driver 0.03beta: No raid array found
in bios it's sa raid 1 setup that is functional
any ideas?
.p |
|
Back to top |
|
|
SoVeryWrong n00b
Joined: 21 Jul 2002 Posts: 4 Location: Mechanicsburg, PA
|
Posted: Wed May 14, 2003 12:22 am Post subject: *sigh* |
|
|
That's the exact same error I'm getting.
With the same Promise Controller (PDC20267)
:/ |
|
Back to top |
|
|
cyrillic Watchman
Joined: 19 Feb 2003 Posts: 7313 Location: Groton, Massachusetts USA
|
|
Back to top |
|
|
SoVeryWrong n00b
Joined: 21 Jul 2002 Posts: 4 Location: Mechanicsburg, PA
|
Posted: Wed May 14, 2003 12:40 am Post subject: Heh |
|
|
Just tried the 1.2 CD and get a whole different error ;)
It locks up on Partition Checking (looking around for fixes to that) |
|
Back to top |
|
|
patbe n00b
Joined: 17 Mar 2003 Posts: 39
|
Posted: Wed May 14, 2003 5:05 pm Post subject: |
|
|
same here, hangs on partiton check, plz let me know if you find anything on that..
.p |
|
Back to top |
|
|
dook43 Tux's lil' helper
Joined: 11 Jun 2002 Posts: 116 Location: Baton Rouge, LA
|
Posted: Wed May 14, 2003 6:34 pm Post subject: My promise ATA RAID setup: |
|
|
Here is my modules.autoload:
I am using a promise dual channel fasttrak100.
Code: |
# /etc/modules.autoload: kernel modules to load when system boots.
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/modules.autoload,v 1.5 2002/11/18 19:39:22 azarah Exp $
#
# Add the names of modules that you'd like to load when the system
# starts into this file, one per line. Comments begin with # and
# are ignored. Read man modules.autoload for additional details.
# For example:
3c59x
ataraid
pdcraid
|
Here is my /etc/fstab:
Code: |
# /etc/fstab: static file system information.
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/fstab,v 1.10 2002/11/18 19:39:22 azarah Exp $
#
# noatime turns of atimes for increased performance (atimes normally aren't
# needed; notail increases performance of ReiserFS (at the expense of storage
# efficiency). It's safe to drop the noatime options if you want and to
# switch between notail and tail freely.
# <fs> <mountpoint> <type> <opts> <dump/pass>
# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/hda1 /boot ext2 noauto,noatime 1 1
/dev/hda3 / reiserfs noatime,notail 0 0
/dev/hda2 none swap sw 0 0
/dev/raid0 /server ext3 noatime 0 0
/dev/cdroms/cdrom0 /mnt/cdrom iso9660 noauto,ro 0 0
proc /proc proc defaults 0 0
# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink). Adding the following
# line to /etc/fstab should take care of this:
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will use almost no
# memory if not populated with files)
tmpfs /dev/shm tmpfs defaults 0 0
|
/dev/raid0 is a symlink to
atlantis disc0 # ls -la /dev/raid0
lr-xr-xr-x 1 root root 24 Sep 30 1999 /dev/raid0 -> /dev/ataraid/disc0/part1
This is a raid0 setup.[/code] _________________ "We who are about to die salute you!" |
|
Back to top |
|
|
ctford0 l33t
Joined: 25 Oct 2002 Posts: 774 Location: Lexington, KY,USA
|
Posted: Sat May 17, 2003 2:19 pm Post subject: |
|
|
I've had success with this particular promise controller using the rc2 cd...
I haven't tried it with rc4.
Chris |
|
Back to top |
|
|
|