Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[mini-howto] using dac960 raid-devices with devfsd
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
Polynomial-C
Developer
Developer


Joined: 01 Jun 2003
Posts: 1422
Location: germany

PostPosted: Thu Nov 04, 2004 5:51 pm    Post subject: [mini-howto] using dac960 raid-devices with devfsd Reply with quote

Hi,

since I had switched my computer from SuSE to Gentoo I had one problem concerning my MylexAcceleRAID 170 (dac960) raid-controller.
Under SuSE without devfs all device-nodes were stored like this:
Code:
/dev/rd/c0d1     for the volumes
/dev/rd/c0d1p2   for the partitions

So what does the naming-scheme "c0d1p2" tell? Easy.
c0 means controller nuber 0
d1 means device (or volume) number 1
p2 means partition number 2

Under Gentoo with devfs and kernel 2.4 all these devices aren't available but devfs provides its own ones.
Code:
/dev/rd/disc0/disc     for the volumes
/dev/rd/disc0/part1    for the partitions

With kernel 2.6 there again changed something:
Code:
/dev/rd/host0/target1/disc     for the volumes
/dev/rd/host0/target1/part2    for the partitions

Unfortunately devfs doesn't know by itself to create the symlinks to keep compatibility with the old devicename-scheme. So you have to manage making them appear with the next reboot. Add the following lines to your /etc/devfsd.conf and uncomment the corresponding part for your kernel (2.4 or 2.6):
Code:
# setup symlinks for dac960 raid-devices listed under /dev/rd/
# this is for kernel 2.6 only
#REGISTER        ^rd/host([0-9]+)/target([0-9]+)/disc         CFUNCTION GLOBAL mksymlink host\1/target\2/disc rd/c\1d\2
#REGISTER        ^rd/host([0-9]+)/target([0-9]+)/part([0-9]+) CFUNCTION GLOBAL mksymlink host\1/target\2/part\3 rd/c\1d\2p\3
#UNREGISTER      ^rd/host([0-9]+)/target([0-9]+)/part([0-9]+) CFUNCTION GLOBAL unlink rd/c\1d\2p\3
#UNREGISTER      ^rd/host([0-9]+)/target([0-9]+)/disc         CFUNCTION GLOBAL unlink rd/c\1d\2
# this is for kernel <=2.4
#REGISTER        ^rd/disc([0-9]+)/disc         CFUNCTION GLOBAL mksymlink disc\1/disc rd/c0d\1
#REGISTER        ^rd/disc([0-9]+)/part([0-9]+) CFUNCTION GLOBAL mksymlink disc\1/part\2 rd/c0d\1p\2
#UNREGISTER      ^rd/disc([0-9]+)/part([0-9]+) CFUNCTION GLOBAL unlink rd/c0d\1p\2
#UNREGISTER      ^rd/disc([0-9]+)/disc         CFUNCTION GLOBAL unlink rd/c0d\1


To give you an easy example. Let us assume we have a kernel-2.6 box with one logical raid-volume and three partitions within this volume, so we have the following devices:
Code:
/dev/rd/host0/target0/disc  (the volume)
/dev/rd/host0/target0/part1  (partition)
/dev/rd/host0/target0/part2  (partition)
/dev/rd/host0/target0/part3  (partition)

With the entries for kernel-2.6 above devfsd would create the compatibility-symlinks as follows:
Code:
/dev/rd/c0d0 --> /dev/rd/host0/target0/disc
/dev/rd/c0d0p1 --> /dev/rd/host0/target0/part1
/dev/rd/c0d0p2 --> /dev/rd/host0/target0/part2
/dev/rd/c0d0p3 --> /dev/rd/host0/target0/part3


voila, that's it :)

Poly
_________________
The manual said "Requires Windows10 or better" so I installed GNU/Linux...

my portage overlay

Need a stage1 tarball? (Unofficial builds)
Back to top
View user's profile Send private message
The_Paya
Developer
Developer


Joined: 29 Aug 2003
Posts: 23
Location: Argentina

PostPosted: Thu Nov 18, 2004 4:29 am    Post subject: Reply with quote

Anything new regarding UDEV and 2.6 kernels?
_________________
wherever you go, there you are.
Back to top
View user's profile Send private message
Polynomial-C
Developer
Developer


Joined: 01 Jun 2003
Posts: 1422
Location: germany

PostPosted: Tue Dec 21, 2004 11:27 pm    Post subject: Reply with quote

Hi,

currently not. I'm still sticking with devfs as I don't wanna mess with udev and probably cause something to not work properly on my dac960 box. I'll update this howto as soon as I have successfully tried udev.

Poly
_________________
The manual said "Requires Windows10 or better" so I installed GNU/Linux...

my portage overlay

Need a stage1 tarball? (Unofficial builds)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks 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