LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 07-09-2007, 06:34 PM   #1
tunasashimi
Member
 
Registered: Jun 2005
Posts: 82

Rep: Reputation: 15
Question Hardware Raid picked up as two disks in Linux


Hi

I am afraid of using the mdadm tool in linux, in fear of destroying my perfectly functioning RAID (In Windows) - that is picked up as /dev/sda and /dev/sdb in Linux.

Has anybody worked with these before?
01:0d.0 RAID bus controller: Silicon Image, Inc. SiI 3512 [SATALink/SATARaid] Serial ATA Controller (rev 01)

Any help or advice much appreciated
 
Old 07-09-2007, 06:51 PM   #2
rupertwh
Member
 
Registered: Sep 2006
Location: Munich, Germany
Distribution: Debian / Ubuntu
Posts: 297

Rep: Reputation: 49
I hate to break it to you, but you don't have a hardware raid. It's software raid.

Making a backup of your Windows partition is probably not a bad idea before playing around, but I don't see a problem with using mdadm to create raid partitions on the remaining free space on the drives.

You might also want to check out dmraid.
 
Old 07-09-2007, 06:51 PM   #3
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 331Reputation: 331Reputation: 331Reputation: 331
I think you are absolutely right to be concerned. I would never try to use one RAID array with two different RAID software packages. Keep one RAID software for the array. Buy new disks for a Linux RAID array.

Or get a hardware RAID card. Then you wouldn't need to use the software RAID on the operating systems. That would be the only way that I would share a RAID array between two different operating systems.

[Oh rupertwh. You beat me by mere seconds! ]

Last edited by stress_junkie; 07-09-2007 at 06:53 PM.
 
Old 07-09-2007, 07:07 PM   #4
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Squeeze 2.6.32.9 SMP AMD64
Posts: 3,245

Rep: Reputation: 121Reputation: 121
In order to access the data on your array you'll need to run dmraid. Do a search here on LQ and you'll probably find several posts from me and others on how to use it. I use dmraid to dual boot Windows and Linux on my test machine on a really old FastTrak66 FakeRaid card. It seems to work just fine.
 
Old 07-09-2007, 07:35 PM   #5
almatic
Member
 
Registered: Mar 2007
Distribution: Debian
Posts: 547

Rep: Reputation: 67
dmraid works perfectly for me (ich7 controller). Just do dmraid -a and then look in /dev/mapper if it found something.
 
Old 07-13-2007, 10:49 AM   #6
tunasashimi
Member
 
Registered: Jun 2005
Posts: 82

Original Poster
Rep: Reputation: 15
Hurray for DMRAID!!

Thanks a lot for the info. I have managed to mount my 1.4TB NTFS Raid1 under Linux with no effort.

I am using Ubuntu 7.04 which is truly the first Linux that I can give to anybody to install and be sure that they'll be able to do a lot more than with Windows!

I simply did an:
root@ubuntu:/mnt# apt-get install dmraid

The install autodetected some stuff, shortly after:

root@ubuntu:/mnt# ls /dev/mapper
control sil_agajdfbicfab sil_agajdfbicfab1
root@ubuntu:/mnt# mkdir /media/RAID
root@ubuntu:/mnt# mount /dev/mapper/sil_agajdfbicfab1 /media/RAID

And Whalla... my RAID is visible from Linux. From here it's trivial to add an entry to /etc/fstab, or probably use some built-in Ubuntu tool I have yet to come across, to make sure the drive mounts automatically when I need it.

PS "dmraid -a y" is the correct command, but as I said, Ubuntu ran this automatically.

dmraid: Device-Mapper Software RAID tool

*wooot*
 
Old 07-13-2007, 10:54 AM   #7
tunasashimi
Member
 
Registered: Jun 2005
Posts: 82

Original Poster
Rep: Reputation: 15
Permissions

PS you probably want to use the following mount options:
-o uid=<username>,gid=users

Like:
mount /dev/mapper/sil_agajdfbicfab1 /media/RAID/ -o uid=ubuntu,gid=users

So that you don't have to run your file manager as root in order to access the disk!
 
Old 09-07-2007, 04:11 AM   #8
digity
Member
 
Registered: Apr 2005
Posts: 105

Rep: Reputation: 15
so even after using dmraid with ya raid on Linux are you able to take that hardware card and drive set to windows and have it just work (meaning the data pops up and all)?
 
  


Reply

Tags
dmraid, image, linux, mdadm, raid, sata, sataraid, silicon, software


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
Migrating an existing linux install to new disks/hardware quiffhanger Linux - Software 4 02-24-2006 01:40 PM
Hardware RAID on IDE disks czezz Linux - Hardware 3 08-05-2005 09:22 AM
Disks in h/w RAID not recognized by multiple Linux installers deltwalrus Linux - Hardware 7 07-27-2005 07:35 AM


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