[zfs-discuss] Problem with zfs initrd.

moi at nonooo.eu moi at nonooo.eu
Fri Aug 16 08:37:33 EDT 2013


hi everybody,

First of all I know that running ZFS on a cheap device like a cubox (1G 
RAM - ARM 32bit cpu) is not a very good idea... but I am sure I am not 
the only one who likes to play and waste time :)

So I have managed to make this working and it is pretty stable (I can 
even do some remote rsync to it...) when it is booted from a ext2 usb 
drive.

As soon as I boot using an initrd it is giving this:

Internal error: Oops: 7 [#1] PREEMPT ARM
Modules linked in: nfs nfs_acl auth_rpcgss lockd sunrpc zfs(PO) 
zunicode(PO) zav                                                         
                                                                         
                          l(PO) zcommon(PO) znvpair(PO) spl(O) raid0 
md_mod
CPU: 0    Tainted: P           O  (3.5.7-9-ARCH-nonooo+ #1)
PC is at memcpy+0x48/0x330
LR is at dmu_write+0xf0/0x168 [zfs]
pc : [<c034ee88>]    lr : [<bf0e7004>]    psr: 20010013
sp : d0a4dc6c  ip : 00000000  fp : d0a4dcdc
r10: d0fba1a8  r9 : 00020000  r8 : d0a23e00
r7 : 00000000  r6 : 00000001  r5 : 00000000  r4 : 00020000
r3 : 00000000  r2 : 0001ff80  r1 : bfe49000  r0 : ec63f000
Flags: nzCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user
Control: 10c5387d  Table: 10a1c019  DAC: 00000015
Process systemd-journal (pid: 357, stack limit = 0xd0a4c2f8)
Stack: (0xd0a4dc6c to 0xd0a4e000)
dc60:                            00000000 00000001 00000000 d0a23e00 
ec63f000
dc80: 00020000 bf0e7004 00000000 00000000 002f9000 00000000 00000000 
bf17b0b4
dca0: d0a4dcac d0a4dca8 d0facc00 00000018 d0a23e00 d0a23e00 00000000 
00000000
dcc0: fffffef0 c0fc64c0 d000e000 d0b611a0 d0a4ddac d0a4dce0 bf16488c 
bf0e6f20
dce0: 00020000 00000000 002d9000 00000000 bfe49000 d0a23e00 d0fb1e40 
00000000
dd00: 00000000 d0aeb700 d0b61090 d000e190 002f9000 00000001 00000000 
00000000
dd20: d0b95790 00000001 c0fc64c0 b61e0000 d0a4dd4c d0a4dd40 c0092640 
c0353cbc
dd40: d0a4ddac d0a4dd50 c00a03ac c05e14c8 00000001 d0a4dd60 c007e34c 
367a638f
dd60: c4240034 d0b957b8 00000001 00000000 00000000 d0b61270 00000000 
00000000
dd80: c00df48c d0a4c000 00000001 00000001 ffffffff 00000000 c0fc64c0 
d0b6125c
dda0: d0a4ddc4 d0a4ddb0 bf174950 bf1645ec bf174910 d0a4de90 d0a4de6c 
d0a4ddc8
ddc0: c0086454 bf17491c 0000000e d0b95790 00000000 d0b6125c bf174910 
00000002
dde0: 00000001 d0a4ddfc 00000000 00000000 00000000 00000000 ffffffff 
00000001
de00: 00000001 00000000 c0fc64c0 367a638f d0b95790 00000001 d0a35780 
b61e0000
de20: 367a638f d0a1ed80 d0a4de8c d0a4de38 c009a2b8 c0097e64 d0a1ed80 
367a638f
de40: d000e190 00000000 00000000 d0b6125c 00000000 00000020 d0a4c000 
d0b6125c
de60: d0a4de7c d0a4de70 bf17485c c0086218 d0a4de8c d0a4de80 c008773c 
bf174850
de80: d0a4decc d0a4de90 c007f510 c008771c 7fffffff 00000000 00000000 
00000000
dea0: ffffffff 7fffffff 00000001 00000000 c004f0b4 ffffffff 7fffffff 
00000000
dec0: d0a4df04 d0a4ded0 c007f60c c007f4b4 ffffffff 7fffffff 00000001 
0000081f
dee0: ffffffff 7fffffff d0a30180 d0b611a0 c000e044 00020000 d0a4df2c 
d0a4df08
df00: bf174618 c007f5dc ffffffff 7fffffff ffffffff 7fffffff beb16710 
00000076
df20: d0a4df54 d0a4df30 c00dd318 bf1745e8 ffffffff 7fffffff 00000000 
c00bb3f8
df40: 00000000 d0f4e880 d0a4df74 d0a4df58 c00dd354 c00dd2e8 ffffffff 
7fffffff
df60: 00000000 00000076 d0a4df94 d0a4df78 c00dd408 c00dd334 520d0731 
00000000
df80: 00000000 00000000 d0a4dfa4 d0a4df98 c00dd704 c00dd3e8 00000000 
d0a4dfa8
dfa0: c000dec0 c00dd6fc 00000000 00000000 0000000e bb4fecef 00000001 
b61e0000
dfc0: 00000000 00000000 beb16710 00000076 beb16bac 00041908 beb16720 
00000000
dfe0: 00000000 beb16664 000202d0 b6d7b06c 60060010 0000000e 00000000 
00000000
Backtrace:
[<bf0e6f14>] (dmu_write+0x0/0x168 [zfs]) from [<bf16488c>] 
(zfs_putpage+0x2ac/0x                                                    
                                                                         
                               410 [zfs])
[<bf1645e0>] (zfs_putpage+0x0/0x410 [zfs]) from [<bf174950>] 
(zpl_putpage+0x40/0                                                      
                                                                         
                             x58 [zfs])
[<bf174910>] (zpl_putpage+0x0/0x58 [zfs]) from [<c0086454>] 
(write_cache_pages+0                                                     
                                                                         
                              x248/0x370)
  r4:d0a4de90 r3:bf174910
[<c008620c>] (write_cache_pages+0x0/0x370) from [<bf17485c>] 
(zpl_writepages+0x1                                                      
                                                                         
                             8/0x20 [zfs])
[<bf174844>] (zpl_writepages+0x0/0x20 [zfs]) from [<c008773c>] 
(do_writepages+0x                                                        
                                                                         
                           2c/0x40)
[<c0087710>] (do_writepages+0x0/0x40) from [<c007f510>] 
(__filemap_fdatawrite_ra                                                 
                                                                         
                                  nge+0x68/0x74)
[<c007f4a8>] (__filemap_fdatawrite_range+0x0/0x74) from [<c007f60c>] 
(filemap_wr                                                              
                                                                         
                     ite_and_wait_range+0x3c/0x70)
  r6:00000000 r5:7fffffff r4:ffffffff
[<c007f5d0>] (filemap_write_and_wait_range+0x0/0x70) from [<bf174618>] 
(zpl_fsyn                                                                
                                                                         
                   c+0x3c/0x74 [zfs])
[<bf1745dc>] (zpl_fsync+0x0/0x74 [zfs]) from [<c00dd318>] 
(vfs_fsync_range+0x3c/                                                   
                                                                         
                                0x4c)
  r7:00000076 r6:beb16710 r5:7fffffff r4:ffffffff
[<c00dd2dc>] (vfs_fsync_range+0x0/0x4c) from [<c00dd354>] 
(vfs_fsync+0x2c/0x34)
  r5:d0f4e880 r4:00000000
[<c00dd328>] (vfs_fsync+0x0/0x34) from [<c00dd408>] 
(do_fsync+0x2c/0x58)
[<c00dd3dc>] (do_fsync+0x0/0x58) from [<c00dd704>] 
(sys_fsync+0x14/0x18)
  r5:00000000 r4:00000000
[<c00dd6f0>] (sys_fsync+0x0/0x18) from [<c000dec0>] 
(ret_fast_syscall+0x0/0x30)
Code: ba000002 f5d1f03c f5d1f05c f5d1f07c (e8b151f8)
          ---[ end trace a06c67e2974a82cc ]---

and it continues to boot and more kernel oops comes when I use the 
system...



What makes me hoping it *can* work is that when I go stop the boot 
process in the initrd I can mount and ls file in the shell? but when I 
want to continue the boot (I guess it is doing a chroot?) the problem 
starts to happen...


Does anyone have an idea on what I should try now? do I have to open a 
bug request?

Arnaud

ps: I am not sure the "trace" is good enough do I have to rebuild the 
kernel with DEBUG option?



More information about the zfs-discuss mailing list