LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   RAID 0 striping with openSUSE 11 - was I successful?? (http://www.linuxquestions.org/questions/linux-general-1/raid-0-striping-with-opensuse-11-was-i-successful-723945/)

learning_curve 05-05-2009 03:37 PM

RAID 0 striping with openSUSE 11 - was I successful??
 
Hi,I have no experience with SATA drives and raid arrays and hope that someone could look at the info below and tell what type of array openSUSE 11 gave me.

On my old 32bit ASUS A7N8X Deluxe computer I installed two new 320GB sata Wester Digatal drives, changed the BIOS for raid 0, and then installed openSUSE 11. Below are clips from the screen on bootup; the fstab, the df -a command, and a small part of lspci.

After two days of searching for info to compare against, with no success, any comments will be appreciated. Thanks.


ASUS A7N8X Deluxe

Sil 3112A SATARaid Controller BIOS Version 4.1.50
Copywright (C) 1997-2002 Sillicon Image Inc.

Press <Ctrl-S> or F4 to enter RAID utility
Primary Channel: WDC WD3200AAKS-00L9A 305245 MB
Seconday Channel: WDC WD3200AAKS-00L9A 305245 MB

Sil Striped Set: WDC WD3200AAKS-00L9A
WDC WD3200AAKS-00L9A




# cat /etc/fstab
/dev/mapper/sil_ajafacccagca_part6 swap swap defaults 0 0
/dev/mapper/sil_ajafacccagca_part7 / ext3 acl,user_xattr 1 1
/dev/mapper/sil_ajafacccagca_part5 /boot ext3 acl,user_xattr 1 2
/dev/mapper/sil_ajafacccagca_part8 /home ext3 acl,user_xattr 1 2
proc /proc proc defaults 0 0
sysfs /sys sysfs noauto 0 0
debugfs /sys/kernel/debug debugfs noauto 0 0
usbfs /proc/bus/usb usbfs noauto 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0



# df -a
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/sil_ajafacccagca_part7
20641788 3600308 15992840 19% /
proc 0 0 0 - /proc
sysfs 0 0 0 - /sys
debugfs 0 0 0 - /sys/kernel/debug
udev 1234652 132 1234520 1% /dev
devpts 0 0 0 - /dev/pts
/dev/mapper/sil_ajafacccagca_part5
69940 39943 26386 61% /boot
/dev/mapper/sil_ajafacccagca_part8
592541776 202388 562240008 1% /home
securityfs 0 0 0 - /sys/kernel/security
fusectl 0 0 0 - /sys/fs/fuse/connections
none 0 0 0 - /proc/sys/fs/binfmt_misc



# lspci

00:1e.0 PCI bridge: nVidia Corporation nForce2 AGP (rev c1)
01:0b.0 RAID bus controller: Silicon Image, Inc. SiI 3112 [SATALink/SATARaid] Serial ATA Control ler (rev 01)
02:01.0 Ethernet controller: 3Com Corporation 3C920B-EMB Integrated Fast Ethernet Controller [To rnado] (rev 40)

irishbitte 05-05-2009 04:53 PM

I wonder if you wouldn't mind posting the results of
Code:

df -ah
makes more sense to me that way!
I reckon that you need to boot into the RAID controller to see your config, you probably won't make much sense of it inside linux, since you are using a hardware RAID controller.

learning_curve 05-05-2009 05:38 PM

df -ah
 
Sure...

df -ah
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/sil_ajafacccagca_part7
20G 3.5G 16G 19% /
proc 0 0 0 - /proc
sysfs 0 0 0 - /sys
debugfs 0 0 0 - /sys/kernel/debug
udev 1.3G 116K 1.3G 1% /dev
devpts 0 0 0 - /dev/pts
/dev/mapper/sil_ajafacccagca_part5
69M 40M 26M 61% /boot
/dev/mapper/sil_ajafacccagca_part8
566G 198M 537G 1% /home
securityfs 0 0 0 - /sys/kernel/security
fusectl 0 0 0 - /sys/fs/fuse/connections
none 0 0 0 - /proc/sys/fs/binfmt_misc

irishbitte 05-05-2009 05:45 PM

Well, there you go, under
Quote:

/dev/mapper/sil_ajafacccagca_part8
566G 198M 537G 1% /home
you have a RAID array working! Now, what type it is, you probably cannot find in linux, because you configured it with a hardware RAID controller.

When you are booting the machine, you will see some extra menu after the POST screen, and you want to enter the BIOS or RAID config there.

learning_curve 05-06-2009 05:35 AM

Thanks irishbitte
 
yes, I've looked at the bios after POST and it
shows it's set to a Striped Set, like below:

Press <Ctrl-S> or F4 to enter RAID utility
Primary Channel: WDC WD3200AAKS-00L9A 305245 MB
Seconday Channel: WDC WD3200AAKS-00L9A 305245 MB

Sil Striped Set: WDC WD3200AAKS-00L9A
WDC WD3200AAKS-00L9A


But what I don't understand is the SATA drives are 320GB
each and I thought if I have a striped array it should have a 320GB capacity. The line from df -ah shows that the /home partition has 566G.

irishbitte 05-06-2009 09:57 AM

What do you understand by striped? Do you mean RAID 0, 1 or 5?

irishbitte 05-06-2009 10:00 AM

Take a look at this: http://www.hardwaresecrets.com/article/393, it explains striped (RAID 0) systems quite well. Yes, if it is setup this way, it will look like one large HDD.

johnsfine 05-06-2009 10:29 AM

Quote:

Originally Posted by learning_curve (Post 3531186)
raid 0

If your objective was performance or capacity, raid 0 may be a good choice.

If your objective was reliability/redundancy, it wasn't. From your later comments, I think you thought you were getting redundancy, as in raid 1 (duplicate the data onto two drives so if either fails, all the data is on the other).

Raid 0 means interleave the data on two drives, so you have the full total capacity (double the total of one drive) but the drives are used together, so a better distribution of workload between the drives is likely vs. using them separately and just putting half your files on each.

learning_curve 05-06-2009 03:25 PM

good input
 
Now I understand, that www.hardwaresecrets.com helped. What I wanted from the start was performance, not reliability and it looks like I've got it. Thanks all.

irishbitte 05-06-2009 09:06 PM

Good stuff, glad it's running the way you want it. Don't forget to make backups!

learning_curve 05-07-2009 04:13 PM

Linux uber alles!
 
This is a project computer so I'm not worried about loosing data. I will use this to learn more linux things, like zen, which I've been unsuccessful to get a virtual windows xp on both my 32bit and 64bit computers. I'll be posting questions on this soon and hope again get helpful replies.


All times are GMT -5. The time now is 07:33 AM.