linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* endianness of Linux kernel RAID
@ 2005-08-03 12:07 Gregory Seidman
  2005-08-03 13:05 ` Paul Clements
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Gregory Seidman @ 2005-08-03 12:07 UTC (permalink / raw)
  To: Linux RAID list

It turns out that if one uses the kernel (2.4.x-2.6.x) RAID support (RAID5,
anyway, since that's all I've tested), the RAID'd disks cannot be moved to
another system with a different endianness. I don't know how hard that
would be to fix, but it did mean that when my ancient Mac clone I was using
as a server died I couldn't bring the RAID over to my spare x86 Linux box;
I had to dedicate other hardware (my dual G4 that I had been happily using
with OS X) to the task instead.

Unfortunately, I haven't gotten into kernel development and, therefore, do
not have the necessary expertise to fix it. Is anyone here interested in
this issue?

--Greg


^ permalink raw reply	[flat|nested] 13+ messages in thread
* Re: endianness of Linux kernel RAID
@ 2005-08-09  4:49 Brent Walsh
  2005-08-09  4:57 ` Neil Brown
  0 siblings, 1 reply; 13+ messages in thread
From: Brent Walsh @ 2005-08-09  4:49 UTC (permalink / raw)
  To: linux-raid

Neil Brown wrote:

>I decided to try it anyway...
>
>The following patch, when applied to
>mdadm-2.0-devel-3 (Recently
>released) should allow:
>
>  mdadm --examine --metadata=0.swap /dev/sda1
>
>which will show the superblock with bytes swapped.
>If that looks right for all devices, then
>
>  mdadm --assemble /dev/mdX
>--update=byteorder /dev/sda1 /dev/sdb1 ...
>
>
>will assemble the array after swapping the byte
>order on all devices. Once it has been assembled
>this way, the superblocks will have the correct
>byte order, and in future the array can be
>assembled in the normal way.

I have a PowerPC based NAS device that was damaged by
a recent a brownout.  The drives in the array are
fine, but the device's firmware was corrupted.  My
first attempt to assemble the array on my x86 system
failed due to the endian differences.  After applying
this patch, the mdadm examine command worked
perfectly.  As of yet, I have not attempted to update
the superblocks.  I would like to leave the original
superblocks intact so that I can reinstall the drives
in my NAS device when it is repaired.  Is it possible
to assemble the array without overwriting the
superblocks?

-Brent



		
____________________________________________________
Start your day with Yahoo! - make it your home page 
http://www.yahoo.com/r/hs 
 

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2005-08-18  4:44 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-03 12:07 endianness of Linux kernel RAID Gregory Seidman
2005-08-03 13:05 ` Paul Clements
2005-08-03 15:36   ` Gregory Seidman
2005-08-03 15:51     ` Paul Clements
2005-08-03 18:50 ` Dan Stromberg
2005-08-04  5:14 ` Neil Brown
2005-08-04  6:47   ` Neil Brown
2005-08-04  7:20     ` Daniel Pittman
2005-08-04 11:40   ` Gregory Seidman
  -- strict thread matches above, loose matches on Subject: below --
2005-08-09  4:49 Brent Walsh
2005-08-09  4:57 ` Neil Brown
2005-08-11 13:38   ` Brent Walsh
2005-08-18  4:44     ` Neil Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).