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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
10-19-2002, 09:35 AM
|
#1
|
Member
Registered: Oct 2002
Posts: 38
Rep:
|
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!
|
|
|
10-19-2002, 12:31 PM
|
#2
|
Member
Registered: Aug 2002
Location: Cape Town, South Africa
Distribution: Red Hat 8.0 (Home), Red Hat 8.0 (Work)
Posts: 388
Rep:
|
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.
|
|
|
10-19-2002, 05:45 PM
|
#3
|
Senior Member
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731
Rep:
|
'raidstart /dev/md0'
|
|
|
10-19-2002, 07:47 PM
|
#4
|
Member
Registered: Aug 2002
Location: Cape Town, South Africa
Distribution: Red Hat 8.0 (Home), Red Hat 8.0 (Work)
Posts: 388
Rep:
|
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.
|
|
|
10-20-2002, 02:51 AM
|
#5
|
Member
Registered: Oct 2002
Posts: 38
Original Poster
Rep:
|
That did work! Thank you. LinuxQuestions.org is awesome.
|
|
|
10-20-2002, 04:46 AM
|
#6
|
Member
Registered: Aug 2002
Location: Cape Town, South Africa
Distribution: Red Hat 8.0 (Home), Red Hat 8.0 (Work)
Posts: 388
Rep:
|
Pleasure
Glad we could be of assistance.
|
|
|
All times are GMT -5. The time now is 03:47 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|