Re: Re-adding disks to RAID6 in a Fujitsu NAS: old mdadm?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 28 Jun 2012 10:59:19 +0200 "Stefan G. Weichinger" <lists@xxxxxxxx>
wrote:

> Am 28.06.2012 08:32, schrieb NeilBrown:
> > On Tue, 26 Jun 2012 15:57:21 +0200 "Stefan G. Weichinger"
> > <lists@xxxxxxxx> wrote:
> >> Could that relate to this issue:
> >> 
> >> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=500309
> > 
> > Nope.  It was an earlier bug fixed in 2.6.5 by
> > 
> > http://neil.brown.name/git?p=mdadm;a=commitdiff;h=7a3be72fc621b4a7589e923cf065
> 
> Ah,
> > 
> I see. So this *could* be solved by using a more recent mdadm,
> correct?
> 
> >> The NAS seems to run some ubuntu:
> >> 
> >> # cat /proc/version Linux version 2.6.33.2 (root@NasX86-5) (gcc
> >> version 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)) #1
> >> SMP Mon Sep 13 04:28:32 CST 2010
> > 
> > Does the "X86" in there suggest and x86 processor?  What does
> > "uname -a" show?
> 
> # uname -a
> Linux NASCA0A00 2.6.33.2 #1 SMP Mon Sep 13 04:28:32 CST 2010 i686 unknown
> 
> # cat /proc/cpuinfo
> processor	: 0
> vendor_id	: GenuineIntel
> cpu family	: 6
> model		: 28
> model name	: Intel(R) Atom(TM) CPU D525   @ 1.80GHz
> stepping	: 10
> cpu MHz		: 1795.730
> cache size	: 512 KB
> [...]
> 
> > You mean the NAS didn't come with a complete build environment and
> > sources for all programs?  Outrageous.
> 
> *sigh*
> 
> > If you have a machine with the same arch at the NAS, you could
> > 
> > git clone git://neil.brown.name/mdadm -b mdadm-2.6.5 cd mdadm make
> > mdadm.static CWFLAGS=-Wall
> > 
> > and then use the "mdadm.static" on the NAS.
> 
> Ok, thanks. I could boot some ubuntu on my Atom-netbook .. or what?
> Would it be enough to match the 64bit-environment, or would I have to
> use something with the same kernel ... ?

You just need a 32 bit build environment (not 64 bit).  It doesn't matter
what the kernel is.
You might manage it with

   make mdadm.static CWFLAGS=-m32 LDFLAGS=-m32

depending on what you have installed.

BTW, I got the command a bit wrong.  This works.

git clone git://neil.brown.name/mdadm ; cd mdadm; git checkout mdadm-2.6.5 ;
 make mdadm.static CWFLAGS=-Wall

I happen to have a 32bit machine, so I'll send you the resulting binary
in private email (don't want to clog up the list).

NeilBrown

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux