Ernillew / wl500g

Automatically exported from code.google.com/p/wl500g
0 stars 0 forks source link

md/raid 2.6.x kernel module #255

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Can you attach md module inside modules package?

Original issue reported on code.google.com by j...@lesiuk.net on 29 Aug 2011 at 6:00

GoogleCodeExporter commented 9 years ago
are you sure it's available within 2.6.22 kernel?

Original comment by themiron.ru on 29 Aug 2011 at 6:30

GoogleCodeExporter commented 9 years ago
It's module needed for mdadm to work (software raid).
It's available since 2.6.17 kernel.

Original comment by j...@lesiuk.net on 29 Aug 2011 at 7:08

GoogleCodeExporter commented 9 years ago
http://scotgate.org/2006/07/03/growing-a-raid5-array-mdadm/

btw, thank you for your answer

Original comment by j...@lesiuk.net on 29 Aug 2011 at 7:09

GoogleCodeExporter commented 9 years ago
https://raid.wiki.kernel.org/index.php/Linux_Raid

Original comment by j...@lesiuk.net on 29 Aug 2011 at 7:11

GoogleCodeExporter commented 9 years ago
This requires CONFIG_MD=y in kernel config. Probably, modules will not work 
with kernel from public available firmware images. So, rebuild of entire 
firmware is needed.

We can prepare custom build for specific router (You didn't provide such info), 
but raid support in 2.6.22 are very old and can contain some serious bugs.

Original comment by lly.dev on 1 Sep 2011 at 7:56

GoogleCodeExporter commented 9 years ago
It's wl500gpv1

Original comment by j...@lesiuk.net on 2 Sep 2011 at 7:35

GoogleCodeExporter commented 9 years ago
Well, I just checked that full kernel rebuild is not needed. And you need 
MIPS32r1 modules.

At last, which kernel raid options (see list below) do you need?
CONFIG_MD_LINEAR
CONFIG_MD_RAID0
CONFIG_MD_RAID1
CONFIG_MD_RAID10
CONFIG_MD_RAID456

Original comment by lly.dev on 2 Sep 2011 at 7:49

GoogleCodeExporter commented 9 years ago
CONFIG_MD_RAID0
CONFIG_MD_RAID1

Original comment by j...@lesiuk.net on 2 Sep 2011 at 8:16

GoogleCodeExporter commented 9 years ago
Thank you for your support.
I really appreciate it.

Original comment by j...@lesiuk.net on 2 Sep 2011 at 8:24

GoogleCodeExporter commented 9 years ago
Try this - http://wl500g.googlecode.com/files/modules-md.tbz2

Modules compatible with builds newer than r3231, you can find it on 

http://asus.vectormm.net/rtn/
http://wpte.kicks-ass.net/downloads/Oleg Firmware/Nightlys/1.9.2.7-rtn/

Original comment by lly.dev on 2 Sep 2011 at 6:20

GoogleCodeExporter commented 9 years ago
Thank you.

Original comment by j...@lesiuk.net on 2 Sep 2011 at 7:34

GoogleCodeExporter commented 9 years ago
If someone need it - there is mdadm 3.2.1
http://lesiuk.net/files/asus-rt/

Original comment by j...@lesiuk.net on 2 Sep 2011 at 7:51

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I just wanna say that it's working perfect.

Original comment by j...@lesiuk.net on 2 Sep 2011 at 11:37

GoogleCodeExporter commented 9 years ago
Well, we will add this modules to public build. Probably, after adding some 
kernel.org upstream fixes.

If it is possible, please test raid repair procedures.

Original comment by lly.dev on 3 Sep 2011 at 5:47

GoogleCodeExporter commented 9 years ago
Partitions on mdX device are not working.
I can fdisk it but there is no md0p1, md0p2, etc files in /dev/.

I will try to test repair procedures later.

Original comment by j...@lesiuk.net on 7 Sep 2011 at 7:36

GoogleCodeExporter commented 9 years ago
It is a problem in udev + userspace daemon (mdev), seems to be /etc/mdev.conf 
has to be modified. See line like:

md[0-9]*        0:0 660

Probably, you has to add following line to mdev.conf:

md[0-9]+p[0-9]+     0:0 660

It will be best, if you can find proper line for mdev.conf.

Original comment by lly.dev on 7 Sep 2011 at 8:00

GoogleCodeExporter commented 9 years ago
actually, mdX is already partitions
second - names could be either /dev/md_d0p1 or /dev/md/d0p1,
check DEVICE NAMES section and --auto options explanation in mdadm(8)

Original comment by themiron.ru on 7 Sep 2011 at 8:47

GoogleCodeExporter commented 9 years ago
mdadm from http://lesiuk.net/files/asus-rt/ says:

mdadm: can't resolve symbol 'posix_memalign' in lib 'mdadm'.
or
mdadm: can't resolve symbol 'nftw64' in lib 'mdadm'.

I'm trying to crosscompile my own one but it's something that will take some 
days :(

Original comment by omikh...@gmail.com on 5 Oct 2011 at 8:52