grub-devel
[Top][All Lists]
Advanced

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

Re: Big Endian fix patch


From: Lennart Sorensen
Subject: Re: Big Endian fix patch
Date: Wed, 28 Jul 2010 14:49:36 -0400
User-agent: Mutt/1.5.18 (2008-05-17)

On Wed, Jul 28, 2010 at 02:17:10PM -0400, Doug Nazar wrote:
> It really shouldn't be doing that. Grub shouldn't be doing any writes at
> all during boot (unless you're using some of the more exotic commands or
> save_env) and the raid code specifically errors on writes to it.
>
> If it was linux I'd expect both drives to be wrong unless there is
> something silly in the init scripts.
>
> When you say it fixes it, is that a full re-sync or something else?
> Could you check the superblocks? In grub use the following on each
> device for 1.2 arrays.

Well it doesn't have to resync.  It seems like it looks at both drives,
decides the first is wrong, the second is right, and then goes from there.
I suspect it is something in Linux doing it.

It says:
Loading, please wait...                                                         
                                                                                
                                                                                
                               
mdadm: device 1 in /dev/md/0 has wrong state in superblock, but /dev/sdb2 seems 
ok                                                                              
                                                                                
                               
mdadm: /dev/md/0 has been started with 2 drives.                                
                                                                                
                                                                                
                               
mdadm: device 1 in /dev/md/1 has wrong state in superblock, but /dev/sdb3 seems 
ok                                                                              
                                                                                
                               
mdadm: /dev/md/1 has been started with 2 drives.                                
                                                                                
                                                                                
                               
mdadm: device 1 in /dev/md/2 has wrong state in superblock, but /dev/sdb4 seems 
ok                                                                              
                                                                                
                               
mdadm: /dev/md/2 has been started with 2 drives.

> hexdump -s 4096 -n 256 (dev,p)

grub> hexdump -s 4096 -n 256 (hd1,2)
00001000  fc 4e 2b a9 01 00 00 00  00 00 00 00 00 00 00 00  |.N+.............|
00001010  5d 42 7f 8b 3f 7d 35 69  13 c7 e1 e6 f8 ef 04 e3  |]B..?}5i........|
00001020  72 63 65 6e 67 30 33 3a  30 00 00 00 00 00 00 00  |rceng03:0.......|
00001030  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00001040  3d ba 4d 4c 00 00 00 00  01 00 00 00 00 00 00 00  |=.ML............|
00001050  e8 cf 1d 00 00 00 00 00  00 00 00 00 02 00 00 00  |................|
00001060  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00001070  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00001080  18 00 00 00 00 00 00 00  e8 cf 1d 00 00 00 00 00  |................|
00001090  08 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000010a0  00 00 00 00 00 00 00 00  27 71 5c d1 ee 42 35 27  |........'q\..B5'|
000010b0  51 ca 3d f6 05 7f 3c 12  00 00 00 00 00 00 00 00  |Q.=...<.........|
000010c0  dc 78 50 4c 00 00 00 00  20 00 00 00 00 00 00 00  |.xPL.... .......|
000010d0  ff ff ff ff ff ff ff ff  ca 2b 46 aa 80 01 00 00  |.........+F.....|
000010e0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000010f0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
grub> hexdump -s 4096 -n 256 (hd2,2)
00001000  fc 4e 2b a9 01 00 00 00  00 00 00 00 00 00 00 00  |.N+.............|
00001010  5d 42 7f 8b 3f 7d 35 69  13 c7 e1 e6 f8 ef 04 e3  |]B..?}5i........|
00001020  72 63 65 6e 67 30 33 3a  30 00 00 00 00 00 00 00  |rceng03:0.......|
00001030  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00001040  3d ba 4d 4c 00 00 00 00  01 00 00 00 00 00 00 00  |=.ML............|
00001050  e8 cf 1d 00 00 00 00 00  00 00 00 00 02 00 00 00  |................|
00001060  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00001070  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00001080  18 00 00 00 00 00 00 00  e8 cf 1d 00 00 00 00 00  |................|
00001090  08 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000010a0  01 00 00 00 00 00 00 00  c5 5e 45 dc 14 b4 c6 c4  |.........^E.....|
000010b0  f5 bf 73 bc 05 9b c1 21  00 00 00 00 00 00 00 00  |..s....!........|
000010c0  dc 78 50 4c 00 00 00 00  20 00 00 00 00 00 00 00  |.xPL.... .......|
000010d0  ff ff ff ff ff ff ff ff  34 9c 7b 28 80 01 00 00  |........4.{(....|
000010e0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000010f0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|

That's the first raid1.

-- 
Len Sorensen



reply via email to

[Prev in Thread] Current Thread [Next in Thread]