LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 10-19-2002, 09:35 AM   #1
meshcurrent
Member
 
Registered: Oct 2002
Posts: 38

Rep: Reputation: 15
RAID Device Not Initialized


I am trying to use the configuration below to set up RAID:

raiddev /dev/md0
raid-level linear
nr-raid-disks 2
persistent-superblock 1
chunk-size 4096

device /dev/hda4
raid-disk 0
device /dev/hdb1
raid-disk 1

I did:

mkraid -f /dev/md0

Then:

cat /proc/mdstat

But my device (md0) is not shown:

Personalities : [linear] [raid0] [raid1] [raid5] [multipath]
read_ahead not set
unused devices: <none>

Any thoughts?

Thank you!
 
Old 10-19-2002, 12:31 PM   #2
Vlad_M
Member
 
Registered: Aug 2002
Location: Cape Town, South Africa
Distribution: Red Hat 8.0 (Home), Red Hat 8.0 (Work)
Posts: 388

Rep: Reputation: 30
I think I know where you went wrong. The raidtab man page gives the chunk-size in bytes, incorrectly. The argument is actually in kB. So what you were trying to do is set the chunk (stripe) size to 4 MB, which I think is above the upper limit allowed.

Try to set it up with

chunk-size 4

and see if that works. I think it should.

Two more things:

Consider using RAID 0, as it will give you a nice speed boost as well as being able to see two disks as one logical disk. Unless the two disks are very different in size, there is no need to use linear over RAID 0.

When you are initializing your array, the command is mkraid -R /dev/md0 if you are doing it for the first time or you want to overwrite the superblocks. mkraid -f /dev/md0 will just inform you that you actually need to use -R .

Try this and let us know if it works.
 
Old 10-19-2002, 05:45 PM   #3
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
'raidstart /dev/md0'
 
Old 10-19-2002, 07:47 PM   #4
Vlad_M
Member
 
Registered: Aug 2002
Location: Cape Town, South Africa
Distribution: Red Hat 8.0 (Home), Red Hat 8.0 (Work)
Posts: 388

Rep: Reputation: 30
Quote:
Originally posted by mcleodnine
'raidstart /dev/md0'
Yeah, provided that it has been set up correctly with mkraid /dev/md0 first. And since cat /proc/mdstat didn't show himw anything, perhaps it wasn't.

Anyway, once he sets it up, it will be autodetected at boot, as he is using persistent superblocks.
 
Old 10-20-2002, 02:51 AM   #5
meshcurrent
Member
 
Registered: Oct 2002
Posts: 38

Original Poster
Rep: Reputation: 15
That did work! Thank you. LinuxQuestions.org is awesome.
 
Old 10-20-2002, 04:46 AM   #6
Vlad_M
Member
 
Registered: Aug 2002
Location: Cape Town, South Africa
Distribution: Red Hat 8.0 (Home), Red Hat 8.0 (Work)
Posts: 388

Rep: Reputation: 30
Pleasure
Glad we could be of assistance.
 
  


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
Should Raid come up as a Block Device? tantrix Programming 0 05-17-2005 01:41 PM
Hardware Raid 5 device files ray_h Linux - Hardware 2 04-16-2005 05:31 PM
RedHat Install device cant be initialized? m-f Linux - Networking 1 10-29-2003 12:54 AM
New RAID device wytyspy Linux - Software 1 08-28-2003 01:54 PM
raid device - please help jmarsh Linux - Networking 0 04-09-2003 10:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:47 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
Open Source Consulting | Domain Registration