LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 04-01-2005, 04:16 AM   #1
kamalsharif
LQ Newbie
 
Registered: Apr 2005
Location: Kuala Lumpur
Posts: 12

Rep: Reputation: 0
Howto Format a new RAID 5 HDD


Hi,

I'm trying to mount a 70G x3 HDD - configured as RAID 5.

I'm currently running Red Hat Linux 7.3. From the /var/log/messages it tells me that my RAID 5 HDD sits on sdb. But when I tried to mount it I'll get this message :

[root@neptune root]# mount /dev/sdb /mnt/adaptec
mount: /dev/sdb is not a valid block device


I have to mount it and then format it before I could partition it right?

How do I do this?

Regards,
Kamal
 
Old 04-01-2005, 04:38 AM   #2
musicman_ace
Senior Member
 
Registered: May 2001
Location: Indiana
Distribution: Gentoo, Debian, RHEL, Slack
Posts: 1,555

Rep: Reputation: 46
I've only done raid 5 once, but shouldn't a raid drive be /dev/md0. What you posted looks like the second SCSI drive connected to your machine instead of a raid array. Now, I think you can define what you want the array called, and if that is true then you could have defined sdb in the /etc/raidtab.

Is there any errors when you do a raidstart?
 
Old 04-01-2005, 05:01 AM   #3
kamalsharif
LQ Newbie
 
Registered: Apr 2005
Location: Kuala Lumpur
Posts: 12

Original Poster
Rep: Reputation: 0
Howto Format a new RAID 5 HDD

hi musicman_ace,

thanks for your reply. maybe not enough info from my part.

my machine's architecture:

80G x2 SATA HDD - configured as h/w RAID 0 . Silicon image.

We've installed Red Hat 7.3 on it.

After installing the OS, it's time for me to configure my 73 x3 HDD:

73 x3 - using aacraid_drv_1.1.4-2322.rpm as the driver.

The OS could detect it. This is from my /var/log/messages :

Apr 1 06:55:10 neptune kernel: scsi2 : aacraid
Apr 1 06:55:10 neptune kernel: blk: queue f7427818, I/O limit 4095Mb (mask 0xffffffff)
Apr 1 06:55:10 neptune kernel: Vendor: ADAPTEC Model: raider_5 Rev: V1.0
Apr 1 06:55:10 neptune kernel: Type: Direct-Access ANSI SCSI revision: 02
Apr 1 06:55:10 neptune kernel: blk: queue f7427a18, I/O limit 4095Mb (mask 0xffffffff)
Apr 1 06:55:10 neptune kernel: Attached scsi disk sdb at scsi2, channel 0, id 0, lun 0
Apr 1 06:55:10 neptune kernel: SCSI device sdb: 290230016 512-byte hdwr sectors (148598 MB)

this is how i though that i should mount it as /dev/sdb . but i can't ...

any suggestions on how do i mount it, format it n later partition it?

regards,
kamal
 
Old 04-01-2005, 05:28 AM   #4
musicman_ace
Senior Member
 
Registered: May 2001
Location: Indiana
Distribution: Gentoo, Debian, RHEL, Slack
Posts: 1,555

Rep: Reputation: 46
To make the filesystem (before mounting)
EXT3: mkefs -j /dev/sdb
Reiser: mkreiserfs /dev/sdb
XFS: mkxfs /dev/sdb

Once formatted,
mount -t reiserfs /dev/sdb /mnt/place

My question remains. Are the 3 73GB drives a software raid or are they hardware raid?


Last edited by musicman_ace; 04-01-2005 at 05:34 AM.
 
Old 04-01-2005, 05:32 AM   #5
kamalsharif
LQ Newbie
 
Registered: Apr 2005
Location: Kuala Lumpur
Posts: 12

Original Poster
Rep: Reputation: 0
Howto Format a new RAID 5 HDD

it's a hardware raid musicman_ace
 
Old 04-01-2005, 05:35 AM   #6
musicman_ace
Senior Member
 
Registered: May 2001
Location: Indiana
Distribution: Gentoo, Debian, RHEL, Slack
Posts: 1,555

Rep: Reputation: 46
Then you should be able to apply whichever filsystem on the array before mounting it to its destination.
 
Old 04-01-2005, 05:46 AM   #7
kamalsharif
LQ Newbie
 
Registered: Apr 2005
Location: Kuala Lumpur
Posts: 12

Original Poster
Rep: Reputation: 0
i got this when i run mkfs -t ext2 /dev/sdb :

[root@neptune root]# mkfs -t ext2 /dev/hdb
mke2fs 1.27 (8-Mar-2002)
/dev/hdb is entire device, not just one partition!
Proceed anyway? (y,n) y
mkfs.ext2: No such device or address while trying to determine filesystem size
 
Old 04-01-2005, 06:24 AM   #8
musicman_ace
Senior Member
 
Registered: May 2001
Location: Indiana
Distribution: Gentoo, Debian, RHEL, Slack
Posts: 1,555

Rep: Reputation: 46
Which filesystem were you trying to apply? You wrote down two different commands for the filesytem, and two different hard drive devices in your post.
 
Old 04-01-2005, 07:48 AM   #9
kamalsharif
LQ Newbie
 
Registered: Apr 2005
Location: Kuala Lumpur
Posts: 12

Original Poster
Rep: Reputation: 0
mounting HDD

hi musicman_ace,

i'm trying to mount /dev/sdb ... but i can't ...

from my previous msg, i got this error when i tried to mount /dev/sdb :

mkfs.ext2: No such device or address while trying to determine filesystem size

did i read it wrongly from the /var/log/messages?

then , what does this mean?


Apr 1 06:55:10 neptune kernel: scsi2 : aacraid
Apr 1 06:55:10 neptune kernel: blk: queue f7427818, I/O limit 4095Mb (mask 0xffffffff)
Apr 1 06:55:10 neptune kernel: Vendor: ADAPTEC Model: raider_5 Rev: V1.0
Apr 1 06:55:10 neptune kernel: Type: Direct-Access ANSI SCSI revision: 02
Apr 1 06:55:10 neptune kernel: blk: queue f7427a18, I/O limit 4095Mb (mask 0xffffffff)
Apr 1 06:55:10 neptune kernel: Attached scsi disk sdb at scsi2, channel 0, id 0, lun 0
Apr 1 06:55:10 neptune kernel: SCSI device sdb: 290230016 512-byte hdwr sectors (148598 MB)

regards,
kamal
 
Old 04-01-2005, 04:13 PM   #10
musicman_ace
Senior Member
 
Registered: May 2001
Location: Indiana
Distribution: Gentoo, Debian, RHEL, Slack
Posts: 1,555

Rep: Reputation: 46
Apr 1 06:55:10 neptune kernel: scsi2 : aacraid
Apr 1 06:55:10 neptune kernel: blk: queue f7427818, I/O limit 4095Mb (mask 0xffffffff)
Apr 1 06:55:10 neptune kernel: Vendor: ADAPTEC Model: raider_5 Rev: V1.0
Apr 1 06:55:10 neptune kernel: Type: Direct-Access ANSI SCSI revision: 02
Apr 1 06:55:10 neptune kernel: blk: queue f7427a18, I/O limit 4095Mb (mask 0xffffffff)
Apr 1 06:55:10 neptune kernel: Attached scsi disk sdb at scsi2, channel 0, id 0, lun 0
Apr 1 06:55:10 neptune kernel: SCSI device sdb: 290230016 512-byte hdwr sectors (148598 MB)

I understand that you have a hardware raid setup, but I read that message as saying sdb (2nd drive on scsi bus) is 150GB. Now three 73GB drives in raid 5 would equal that amount. So the next question I guess is do you have all the necessary kernel options either configured into the kernel or loaded as modules?
 
Old 04-02-2005, 01:33 AM   #11
kamalsharif
LQ Newbie
 
Registered: Apr 2005
Location: Kuala Lumpur
Posts: 12

Original Poster
Rep: Reputation: 0
hi musicman_ace ...

i'm not sure how to answer your question.

if i have all the necessary kernel options configured into the kernel what do i do? or what do i need to do if it is loaded as modules?
 
Old 04-02-2005, 03:42 AM   #12
musicman_ace
Senior Member
 
Registered: May 2001
Location: Indiana
Distribution: Gentoo, Debian, RHEL, Slack
Posts: 1,555

Rep: Reputation: 46
Check to see if the kernel has the SCSI adapter driver built in, or if it is using some type of generic support.

cd /usr/src/linux
make menuconfig

It is always a good idea (in my mind) to compile a kernel for your hardware rather than a distrobutions CD trying to do it for you. Verify that each device is supported and remove unwanted or un-used support that you don't need.

You can gather the necessary infomation about your system by typing
lsmod
lspci

Also, you can look at many files inside of /proc to get more info.

Is your RAID controller onboard or is it a PCI card?
 
Old 04-02-2005, 10:24 AM   #13
kamalsharif
LQ Newbie
 
Registered: Apr 2005
Location: Kuala Lumpur
Posts: 12

Original Poster
Rep: Reputation: 0
my RAID controller is a PCI card
 
Old 04-02-2005, 11:44 AM   #14
ironwalker
Member
 
Registered: Feb 2003
Location: Jersey shore,north
Distribution: Siduction the only way to do Debian Sid!
Posts: 500

Rep: Reputation: 30
What kernel are you useing?
What type of raid...software hardware?
What exact raid card are you useing?
Is it supported for that kernel version you are useing?
 
Old 04-02-2005, 06:09 PM   #15
Electro
Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
You can not mount and you can not format raw devices like /dev/sdb. You have to make a partition before formatting. After you have made the partition, you have to reboot and then you can format /dev/sdb1. Rebooting is needed after you created the partition with fdisk, cfdisk, or sfdisk.

Silicon Image is not a hardware RAID controller. It is a software RAID controller. It uses the main processor to handle the RAID requests. RAID 0 does not improve OS performance. RAID 1 increases OS performance because it can read two files instead of one file at a time. Also RAID 1, is more reliable than RAID 0 for a server or for any system that is using it to store the OS. Use RAID 0 for video capturing, huge graphic files, sound, but never use for an OS drive.

For RAID 5 to be effective, you need atleast four hard drives. Using three hard drives for RAID 5 is not enough if one hard drive fails.

Saying "We've installed Red Hat 7.3" does not give you any credit. Sheesh, say "I installed blah, blah" to give yourself credit. Please do not mix third person in first person.
 
  


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
Linux Raid 1 Mirror bad on SCSI HDD. Howto fix? blkcamarozr28 Linux - Enterprise 1 10-17-2005 07:19 PM
format hdd jorasmi Slackware 4 03-09-2005 04:25 AM
How to format & mount 2nd hdd after FedCor1 has been installed on 1st hdd? clay394 Fedora 1 05-18-2004 01:50 PM
cannot format hdd quickk Linux - Hardware 6 07-20-2003 03:33 PM
Format HDD bytebrowser Linux - Hardware 1 07-02-2003 06:33 AM


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