Re: mdadm raid from debian 64 bit .. error on powerpc ?
On Wed, Nov 14, 2012 at 07:21:36PM +0100, Niels S. Eliasen wrote:
> I do have a problem that I hope someone can help me with....
>
> My old PC(Celeron chip) gave up just the other day.. and I have been struggling ever since to get the the mdadm (raid 1) mounted on my Debian linux...(both systems were/are Squeeze)
> It appears that whatever I do I get the following:
>
> [1218442.677440] sd 1:0:0:0: [sda] 3907029168 512-byte logical blocks: (2.00 TB/1.81 TiB)
> [1218442.678301] sd 1:0:0:0: [sda] Write Protect is off
> [1218442.678316] sd 1:0:0:0: [sda] Mode Sense: 28 00 00 00
> [1218442.678324] sd 1:0:0:0: [sda] Assuming drive cache: write through
> [1218442.680682] sd 1:0:0:0: [sda] Assuming drive cache: write through
> [1218442.680700] sda: sda1
> [1218442.700032] sd 1:0:0:0: [sda] Assuming drive cache: write through
> [1218442.700048] sd 1:0:0:0: [sda] Attached SCSI disk
> [1218444.214595] mdadm: sending ioctl 20001261 to a partition!
> [1218444.214682] mdadm: sending ioctl 20001261 to a partition!
> [1218444.219512] mdadm: sending ioctl 20001261 to a partition!
> [1218444.219525] mdadm: sending ioctl 20001261 to a partition!
> [1218444.219959] mdadm: sending ioctl 20001261 to a partition!
> [1218444.219968] mdadm: sending ioctl 20001261 to a partition!
> [1218444.220446] mdadm: sending ioctl 20001261 to a partition!
> [1218444.220455] mdadm: sending ioctl 20001261 to a partition!
> [1218444.220868] mdadm: sending ioctl 400c0910 to a partition!
> [1218444.220878] mdadm: sending ioctl 400c0910 to a partition!
> [1218600.624201] __ratelimit: 2 callbacks suppressed
> [1218600.624214] mdadm: sending ioctl 20001261 to a partition!
> [1218600.624223] mdadm: sending ioctl partition!
> [1218600.626213] mdadm: sending ioctl 20001261 to a partition!
> [1218600.626227] mdadm: sending ioctl 20001261 to a partition!
> [1218600.626856] mdadm: sending ioctl 20001261 to a partition!
> [1218600.626866] mdadm: sending ioctl 20001261 to a partition!
> [1218600.627263] mdadm: sending ioctl 20001261 to a partition!
> [1218600.627272] mdadm: sending ioctl 20001261 to a partition!
> [1218600.627796] mdadm: sending ioctl 400c0910 to a partition!
> [1218600.627806] mdadm: sending ioctl 400c0910 to a partition!
> [1218853.375782] XFS: bad magic number
> [1218853.375796] XFS: SB validate failed
> [1218860.125688] XFS: bad magic number
> [1218860.125703] XFS: SB validate failed
>
>
> i have tried the "mdadm --scan --assemble" .. and a lot of othe "mdadm" commands.. but so far no luck!
> is the "mdadm" raid from a PC not useable on a PowerPC ??
If your md raid is version 0.9 superblock, then the content is endianess
specific.
If it is 1.x, then it should work, unless you have a version of mdadm
with a bug (which has been the case in the past).
For example:
~# mdadm --misc -E /dev/sda1
Magic : a92b4efc
Version : 1.1
Feature Map : 0x0
Array UUID : 9c77b030:d95ae558:5e6b5496:7191a12b
Name : mythtv64:0 (local to host mythtv64)
Creation Time : Sat Feb 25 13:38:51 2012
Raid Level : raid5
Raid Devices : 4
Avail Dev Size : 48819424 (23.28 GiB 25.00 GB)
Array Size : 73228800 (69.84 GiB 74.99 GB)
Used Dev Size : 48819200 (23.28 GiB 25.00 GB)
Data Offset : 2048 sectors
Super Offset : 0 sectors
State : clean
Device UUID : cafa7a53:1577745a:9401f410:d8fa2bdb
Update Time : Wed Nov 14 12:29:16 2012
Checksum : d0709263 - correct
Events : 91
Layout : left-symmetric
Chunk Size : 512K
Device Role : Active device 1
Array State : AAAA ('A' == active, '.' == missing)
That shows it is an mdraid 1.1 (hence 1.x) device and hence not endian
specific. If it said 0.9, then it was created with an older setup
that defaulted to the old format, and it is host endianess and can not
be moved to a machine with the opposite endianess. So x86 to powerpc
won't work.
--
Len Sorensen
Reply to: