Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Drive assignments in RAID
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
superdeez
n00b
n00b


Joined: 10 May 2015
Posts: 59

PostPosted: Sun Aug 16, 2020 4:44 am    Post subject: Drive assignments in RAID Reply with quote

I have an ancient Pentium 4 I am trying to make a router out of. I've gotten some FastTrack SATA RAID cards, put two identical drives in and made an array of them. The BIOS appears to see the card's array as a "drive". My question is when I partition the drive should the linux kernel just see this array as one logical drive, like /dev/sda? Or is there more I need to do?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54300
Location: 56N 3W

PostPosted: Sun Aug 16, 2020 11:49 am    Post subject: Reply with quote

superdeez,

Maybe. :)

Raid controllers vary. Some are real hardware raid. You will need the right kernel driver.
Others are fakeraid. Fakeraid behaves like hardware raid up to a point. Again you need a kernel driver but fakeraid and software raid differ only in where the software is located.
For fakeraid, its in your BIOS, software raid, its in the kernel.

With two drives, you are limited to Raid0 or Raid1. There is almost nothing for a raid controller to do.

Post the
Code:
lspci -nnk
output showing your raid controller.

If its a real hardware raid card, the kernel will only see the raid set. The raid controller will hide the drives.
With fakeraid or software raid, the kernel will see the raid set and the underlying drives.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7470

PostPosted: Sun Aug 16, 2020 3:42 pm    Post subject: Reply with quote

https://forums.gentoo.org/viewtopic-t-1007788.html
at end, you will see a method to match who is sda,sdb... with your raid array and see your raid disks, look at Howto: know what disk is attach to what kernel name.
Back to top
View user's profile Send private message
superdeez
n00b
n00b


Joined: 10 May 2015
Posts: 59

PostPosted: Mon Aug 17, 2020 2:58 am    Post subject: Reply with quote

lspci gives me this:

Code:
02:02.0 RAID bus controller [0104]: Promise Technology, Inc. PDC20319 (FastTrak S150 TX4) [105a:3319] (rev 02)
        Subsystem: Promise Technology, Inc. FastTrak S150 TX4 4 port SATA PCI board [105a:3319]
        Kernel driver in use: sata_promise
        Kernel modules: sata_promise


Additionally, ls -l /sys/block gives me:

Code:
lrwxrwxrwx 1 root root 0 Aug 16 17:52 sda -> ../devices/pci0000:00/0000:00:1e.0/0000:02:02.0/ata2/host1/target1:0:0/1:0:0:0/block/sda
lrwxrwxrwx 1 root root 0 Aug 16 17:52 sdb -> ../devices/pci0000:00/0000:00:1e.0/0000:02:02.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb


It would appear this is fakeraid done via the BIOS? I built the array via the card's firmware utility. Make identical partitions and set it up via mdadm?

I'm just trying to mirror the disks so that if one goes out I still have the router. Also, at some point I'll be replacing my curent mainbox and I want to get practice here so I can mirror my home directory.

If it helps, there are two SATA drives running off of this card, no other hard drives in the machine.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54300
Location: 56N 3W

PostPosted: Mon Aug 17, 2020 11:57 am    Post subject: Reply with quote

superdeez,

It looks like fakeraid as the user manual offers raid0, raid1 and raid10.
Raid levels that need parity caculations are not supported.

Use mdadm and the SATA parts on the motherboard, if there are any.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
superdeez
n00b
n00b


Joined: 10 May 2015
Posts: 59

PostPosted: Mon Aug 17, 2020 2:01 pm    Post subject: Reply with quote

That card has a mode to allow the drives to be reported as standalone drives. I'm trying to use existing hardware rather than buying at the used computer store and paying for software that will be promptly overwritten.

Finally looking to replace 2000 Server as my router OS. 2k worked well when I rented and had to use a WiFi connection. Plus a USB backup of a few files meant if I had to start from scratch, I could have it back running in 4 hours or so. Gentoo takes longer than 4 hours lol.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54300
Location: 56N 3W

PostPosted: Mon Aug 17, 2020 2:33 pm    Post subject: Reply with quote

superdeez,

Yep, it has a JBOD (Just a Bunch Of Drives) mode.
My main point was that if you don't need it because your motherboard supports SATA1 (or better) don't use it.

It looks like its a PCI card, not PCIe, so your motherboard SATA ports will be faster than a card in a PCI slot.
Even one SATA drive can max out a whole 33MHz PCI bus.
PCI buses came in two speeds, 33MHz and 66MHz. They all uset the same parts but it was difficult to get 66MHz operation on a bus.

Devices on the motherboard often ran at 66MHz as they did not need to meet the PCI bus specification.
Even better, later PCI based systems used PCI as a point to point interconnect system. That's a bus with only two devices on it.
So your on board PCI devices may operate at 66MHz and have a whole bus to themselves.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
superdeez
n00b
n00b


Joined: 10 May 2015
Posts: 59

PostPosted: Mon Aug 17, 2020 4:40 pm    Post subject: Reply with quote

No native SATA ports, unfortunately. It's not optimal, but I suspect it will be plenty fast for just routing packets. This was a free computer plus the cost of RAM and two hard drives
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54300
Location: 56N 3W

PostPosted: Mon Aug 17, 2020 5:45 pm    Post subject: Reply with quote

superdeez,

Go for it.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
superdeez
n00b
n00b


Joined: 10 May 2015
Posts: 59

PostPosted: Tue Aug 18, 2020 3:45 am    Post subject: Reply with quote

I'll miss my little distractions though. When I do my daily logins to check on the router, I have a Dilbert comic-a-day program and I usually play a round of solitaire and/or pinball. If I win at solitaire, I know tomorrow's going to be a good day. :lol:
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54300
Location: 56N 3W

PostPosted: Tue Aug 18, 2020 10:35 am    Post subject: Reply with quote

superdeez,

You need to install "The notorious fortune program" and configure it to display a fortune at login.
A lot of the fortune databases have been removed from portage due to potential copyright issues but they are still on the web.

Code:
eix fortune
for more information.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum