LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 05-25-2002, 03:56 PM   #1
Sigmund Gudvang
LQ Newbie
 
Registered: Apr 2002
Posts: 14

Rep: Reputation: 0
Software RAID


Hi, it appears that I am not the only one having trubble installing RAID on the HPT370 UDNA/ATA100. Haveing failed to to install SUSE 8.0 on ABIT KT7A-RAID, with two 80GB Western Digital 7200 rpm HDDs I thought I would try software-RAID instead. It probably wouldn't be any slower, as the HPT370 seems to require quite a lot of CPU intervention.

So I am trying to configure software RAID 0 (striping). To this end I have temporely installed Linux on on old 3 GB disk. I then:

1) Configured, recompiled and installed the kernel with RAID-0 (striping) mode
2) Installed raidtools
3) Created the following /etc/raidtab file:

raiddev /dev/md0
raid-level 0
nr-raid-disks 2
persistent-superblock 1
chunk-size 4
device /dev/hde
raid-disk 0
device /dev/hdg
raid-disk 1

4) Created a RAID-array with the command
# mkraid /dev/md0

# cat /proc/mdstat

then responds with:

Personalities: [linear] [raid0] [raid1] [raid5]
read_ahead 1024 sectors
md0 : active raid0 hdg[1] hde[0]
156301312 blocks 4k chunks

unused device <none>

5) Hence, it appears that a RAID 0 array has been created. YaST, however, does not seem to recognise the RAID array. I therefore attemted to partition the array with cfdisk, which gives me the following table:

Partition Table for /dev/md0

---Starting--- ----Ending---- Start Number of
# Flags Head Sect Cyl ID Head Sect Cyl Sector Sectors
-- ----- ---- ---- ---- ---- ---- ---- ---- -------- ---------
1 0x80 1 1 0 0x83 1 4 1023 4 31244
2 0x00 1 4 1023 0xFD 1 4 1023 31248 390624
3 0x00 1 4 1023 0x82 1 4 1023 421872 1953128
4 0x00 1 4 1023 0x05 1 4 1023 2375000 310227624
5 0x00 1 4 1023 0xFD 1 4 1023 4 390620
6 0x00 1 4 1023 0xFD 1 4 1023 4 3906244
7 0x00 1 4 1023 0xFD 1 4 1023 4 1953124
8 0x00 1 4 1023 0xFD 1 4 1023 4 1953124
9 0x00 1 4 1023 0xFD 1 4 1023 4 9765620
10 0x00 1 4 1023 0xFD 1 4 1023 4 126953124
11 0x00 1 4 1023 0xFD 1 4 1023 4 117187500
12 0x00 1 4 1023 0xFD 1 4 1023 4 48118236


or:

Partition Table for /dev/md0

First Last
# Type Sector Sector Offset Length Filesystem Type (ID) Flags
-- ------- -------- --------- ------ --------- ---------------------- ---------
1 Primary 0 31247 4 31248 Linux (83) Boot (80)
2 Primary 31248 421871 0 390624 Linux raid autode (FD) None (00)
3 Primary 421872 2374999 0 1953128 Linux swap (82) None (00)
4 Primary 2375000 312602623 0 310227624 Extended (05) None (00)
5 Logical 2375000 2765623 4 390624 Linux raid autode (FD) None (00)
6 Logical 2765624 6671871 4 3906248 Linux raid autode (FD) None (00)
7 Logical 6671872 8624999 4 1953128 Linux raid autode (FD) None (00)
8 Logical 8625000 10578127 4 1953128 Linux raid autode (FD) None (00)
9 Logical 10578128 20343751 4 9765624 Linux raid autode (FD) None (00)
10 Logical 20343752 147296879 4 126953128 Linux raid autode (FD) None (00)
11 Logical 147296880 264484383 4 117187504 Linux raid autode (FD) None (00)
12 Logical 264484384 312602623 4 48118240 Linux raid autode (FD) None (00)

So far, so god. However, I am not able to format the new partitions with mkreiserfs. Any clues anyone?

Regards

sgudvang@online.no
 
  


Reply



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
Why can't I mount this md0 raid? (mdadm and software raid) cruiserparts Linux - Software 35 01-05-2013 03:35 PM
Software RAID to recover data from HW RAID ocschwar Linux - Hardware 5 02-25-2005 10:05 PM
Can fake raid be converted to linux software raid? jmacdonald801 Linux - General 3 01-30-2005 12:33 PM
moving system from ide software raid to new box with scsi raid ftumsh Linux - General 0 10-28-2003 09:34 AM
Software RAID vs Hardware RAID system Linux - General 3 12-25-2001 08:11 PM

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

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