LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-30-2006, 02:36 PM   #1
spammy163
LQ Newbie
 
Registered: Apr 2006
Posts: 8

Rep: Reputation: 0
Question SATA Raid


I am a newbie to Linux and need help with a SATA RAID 5 setup.

I am using a 3ware 9500S-4LP RAID Controller card. I have four (4) WD 250GB RE SATA hard drives. I am running Debian 3.1 (2.6.8 kernal). I have set up the array in the RAID Controller BIOS.

I need to know how to properly set up the RAID drives.

It sees the controller device as /dev/sda. I have tried creating a partition which will list the partition as /dev/sda1. It shows the full array of 750gb (1000gb-250gb for RAID 5). I then used mkfs.ext3 -m 1 -O sparse_super /dev/sda (tried it also using mkfs.ext3 -m 1 -O sparse_super /dev/sda1) and it formats the drives. It will then allow me to mount it using 'mount /dev/sda /music'. However, when I reboot my machine, the drive does not mount. If I manually mount it, it will appear with all data on it. I looked at the /var/log/dmesg file and it contains the following:



3ware 9000 Storage Controller device driver for Linux v2.26.02.001.
ACPI: PCI interrupt 0000:01:08.0[A] -> GSI 18 (level, low) -> IRQ 225
scsi_proc_hostdir_add: proc_mkdir failed for <NULL>
scsi0 : 3ware 9000 Storage Controller
3w-9xxx: scsi0: Found a 3ware 9000 Storage Controller at 0xfcffe000, IRQ: 225.
3w-9xxx: scsi0: Firmware FE9X 2.06.00.009, BIOS BE9X 2.03.01.051, Ports: 4.
Vendor: AMCC Model: 9500S-4LP DISK Rev: 2.06
Type: Direct-Access ANSI SCSI revision: 03
SCSI device sda: 1464778752 512-byte hdwr sectors (749967 MB)
Type: Direct-Access ANSI SCSI revision: 03
SCSI device sda: 1464778752 512-byte hdwr sectors (749967 MB)
SCSI device sda: drive cache: none
/dev/scsi/host0/bus0/target0/lun0: unknown partition table
Attached scsi disk sda at scsi0, channel 0, id 0, lun 0



I am getting the unknown partition table. However, all my data is there and accessible. I am getting very frustrated and would greatly appreciate any help. Thank you.
 
Old 04-30-2006, 02:58 PM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,275

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
Are you trying to mount /dev/sda or /dev/sda1? In theory, you don't need a partition table on the array (it can just act as one giant block device) and I've used that successfully in the past. In any case, if you can mount it successfuly "by hand" than probably all you need to do is add an entry to /etc/fstab to make it mount auitomatically on boot. I'd suggest reading the fstab man page and looking at the entries in there already to figure out how to add it.
 
Old 04-30-2006, 07:32 PM   #3
spammy163
LQ Newbie
 
Registered: Apr 2006
Posts: 8

Original Poster
Rep: Reputation: 0
I am trying to mount /dev/sda. I started over and there were no partitions for /dev/sda. I used the mkfs.ext3 command which completed successfully. I then "by hand" mounted /dev/sda. It let's me use the mounted array. My fstab file has the correct line to mount /dev/sda. However, upon reboot, it is still telling me '/dev/scsi/host0/bus0/target0/lun0: unknown partition table' and only works if I manually re-mount /dev/sda.
 
Old 04-30-2006, 08:48 PM   #4
spammy163
LQ Newbie
 
Registered: Apr 2006
Posts: 8

Original Poster
Rep: Reputation: 0
ok...getting weirder... now I am not getting any error messages. I just won't automount on reboot. So if I can get that problem fixed, I'll be great! Any suggestions? I have edited the fstab file and put the /dev/sda in there. However, I still have to mount it "by hand." Thanks for any help.
 
Old 04-30-2006, 09:44 PM   #5
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,275

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
Can you post your /etc/fstab?
 
Old 04-30-2006, 11:55 PM   #6
spammy163
LQ Newbie
 
Registered: Apr 2006
Posts: 8

Original Poster
Rep: Reputation: 0
Here is my /etc/fstab file:

# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/hda1 / ext3 defaults,errors=remount-ro 0 1
/dev/hdc /media/cdrom0 iso9660 ro,user,noauto 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto 0 0
/dev/sda1 /music ext3 defaults 0 0
 
Old 05-01-2006, 12:18 AM   #7
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,275

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
You said that you're trying to mount /dev/sda, yet you have /dev/sda1 in your fstab file. This could be the source of the problem. I'm still not clear as to whether you actually got sda partitioned, or are using it as one big block device.
 
Old 05-01-2006, 01:20 AM   #8
spammy163
LQ Newbie
 
Registered: Apr 2006
Posts: 8

Original Poster
Rep: Reputation: 0
I have tried it both ways.... as /dev/sda and as /dev/sda1. I have tried both ways with sda partitioned, and tried it as one big block device. it just doesn't mount automatically upon restart. I am wondering if it is trying to mount it before it loads the module for the raid controller.
 
Old 05-01-2006, 10:09 AM   #9
spammy163
LQ Newbie
 
Registered: Apr 2006
Posts: 8

Original Poster
Rep: Reputation: 0
Well... I scrapped Debian last night and installed Fedora. Fedora immediately recognized all of my devices and works great. Thanks for all of your time and help.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
SATA Raid mauli Slackware 2 01-07-2005 04:45 PM
Sata Raid & Ata Raid Marinmo Linux - Hardware 6 08-13-2004 03:19 AM
HElP ME with sata raid meier_12 Linux - Hardware 0 06-22-2004 11:33 PM
Sata RAID with onboard raid controller SourCreamAndOni Linux - Hardware 1 05-21-2004 01:51 AM
does linux support the sata raid and ide raid in k7n2 delta ilsr? spyghost Linux - Hardware 10 04-16-2004 06:27 AM


All times are GMT -5. The time now is 08:40 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration