[DRBD-user] mkfs.xfs segfaults

Raoul Bhatia [IPAX] r.bhatia at ipax.at
Mon Sep 8 16:33:13 CEST 2008

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.


hi,

i today tried to create an xfs filesystem on top of my drbd 8.2.7~rc1.
(8.2.6 too segfaults but i have not further information on that).

> # mkfs.xfs /dev/drbd1 
> meta-data=/dev/drbd1             isize=256    agcount=16, agsize=228916 blks
>          =                       sectsz=512   attr=0
> data     =                       bsize=4096   blocks=3662656, imaxpct=25
>          =                       sunit=0      swidth=0 blks, unwritten=1
> naming   =version 2              bsize=4096  
> log      =internal log           bsize=4096   blocks=2560, version=1
>          =                       sectsz=512   sunit=0 blks
> realtime =none                   extsz=65536  blocks=0, rtextents=0
> Segmentation fault

dmesg prints:
> [10450.778056] ------------[ cut here ]------------
> [10450.778096] kernel BUG at block/blk-core.c:1495!
> [10450.778127] invalid opcode: 0000 [1] SMP 
> [10450.778158] CPU 0 
> [10450.778186] Modules linked in: drbd sha1_generic cn ipv6 button serio_raw evdev psmouse pcspkr dm_mirror dm_log dm_snapshot dm_mod ide_core iTCO_wdt iTCO_vendor_support i2c_i801 i2c_core e1000e r8169 inte
> l_agp thermal processor fan ext3 jbd mbcache raid1 md_mod sd_mod sata_sil [last unloaded: drbd]
> [10450.778345] Pid: 11833, comm: mkfs.xfs Not tainted 2.6.27-rc5 #1
> [10450.778377] RIP: 0010:[<ffffffff80308180>]  [<ffffffff80308180>] submit_bio+0xe0/0xf0
> [10450.778442] RSP: 0018:ffff88007e433b18  EFLAGS: 00010246
> [10450.778473] RAX: 0000000000000011 RBX: ffff88007952e2b0 RCX: 0000000001617cb8
> [10450.778506] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000011
> [10450.778539] RBP: ffff88007e458da0 R08: ffff88007f9832a0 R09: 0000000000000040
> [10450.778572] R10: ffff88007952e2b0 R11: 0000000000000000 R12: ffff88007952e2b0
> [10450.778604] R13: 0000000000000000 R14: 0000000000000007 R15: 0000000000001000
> [10450.778638] FS:  00007f817d01a6d0(0000) GS:ffffffff805825c0(0000) knlGS:0000000000000000
> [10450.778695] CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003b
> [10450.778726] CR2: 00007f817bfa5000 CR3: 000000007a405000 CR4: 00000000000006e0
> [10450.778759] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
> [10450.778791] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
> [10450.778825] Process mkfs.xfs (pid: 11833, threadinfo ffff88007e432000, task ffff88007e7f8150)
> [10450.778881] Stack:  0000000000000000 0000000000000000 0000000000000000 ffff88007e458da0
> [10450.778943]  ffffe20001617cb8 ffff88007e4590c4 ffff88007e458da0 ffffffff802c37de
> [10450.779003]  ffff88007e458da0 ffffe20001617cb8 0000000000000000 ffffffff802c3853
> [10450.779038] Call Trace:
> [10450.779094]  [<ffffffff802c37de>] ? dio_bio_submit+0x5e/0x90
> [10450.779126]  [<ffffffff802c3853>] ? dio_send_cur_page+0x43/0xa0
> [10450.779158]  [<ffffffff802c38fe>] ? submit_page_section+0x4e/0x140
> [10450.779191]  [<ffffffff802c42d5>] ? __blockdev_direct_IO+0x755/0xb60
> [10450.779224]  [<ffffffff802c31a5>] ? blkdev_direct_IO+0x45/0x50
> [10450.779257]  [<ffffffff802c30a0>] ? blkdev_get_blocks+0x0/0xc0
> [10450.779293]  [<ffffffff8026ee18>] ? generic_file_direct_write+0xd8/0x1f0
> [10450.779327]  [<ffffffff8026f2ad>] ? __generic_file_aio_write_nolock+0x37d/0x440
> [10450.779386]  [<ffffffff8031bd57>] ? clear_page_c+0x7/0x10
> [10450.779418]  [<ffffffff8026f470>] ? generic_file_aio_write_nolock+0x30/0x90
> [10450.779452]  [<ffffffff80297f89>] ? do_sync_write+0xd9/0x120
> [10450.779484]  [<ffffffff802733ba>] ? __alloc_pages_internal+0xaa/0x460
> [10450.779519]  [<ffffffff8024e490>] ? autoremove_wake_function+0x0/0x30
> [10450.779554]  [<ffffffff8027e25c>] ? handle_mm_fault+0x58c/0x7a0
> [10450.779588]  [<ffffffff80211896>] ? arch_get_unmapped_area_topdown+0x206/0x2b0
> [10450.779647]  [<ffffffff80298858>] ? vfs_write+0xc8/0x170
> [10450.779679]  [<ffffffff80298fa1>] ? sys_pwrite64+0x91/0xa0
> [10450.779713]  [<ffffffff80462989>] ? error_exit+0x0/0x51
> [10450.779745]  [<ffffffff8020c24b>] ? system_call_fastpath+0x16/0x1b
> [10450.779778] 
> [10450.779804] 
> [10450.779830] Code: 8b 34 25 00 00 00 00 8b 96 60 01 00 00 48 c7 c7 f0 1f 4f 80 48 81 c6 58 03 00 00 31 c0 e8 49 28 f3 ff eb 8b 0f 0b eb fe 66 66 90 <0f> 0b eb fe 66 66 66 90 66 66 66 90 66 66 66 90 48 83 e
> c 18 48 
> [10450.779985] RIP  [<ffffffff80308180>] submit_bio+0xe0/0xf0
> [10450.780006]  RSP <ffff88007e433b18>
> [10450.780297] ---[ end trace b8a2347f198eb516 ]---

i am on debian 4.0 and Linux 2.6.27-rc5 with:
> xfsprogs 2.8.11-1
> drbd8-utils  8.2.7~rc1-0

> # cat /proc/drbd 
> version: 8.2.7~rc1 (api:88/proto:86-88)
> GIT-hash: 9ce425f51860f1205395bf7127cad3c427070837 build by root at wc01, 2008-09-04 17:14:14

mkfs.ext3 works without any issue.

cheers,
raoul
-- 
____________________________________________________________________
DI (FH) Raoul Bhatia M.Sc.          email.          r.bhatia at ipax.at
Technischer Leiter

IPAX - Aloy Bhatia Hava OEG         web.          http://www.ipax.at
Barawitzkagasse 10/2/2/11           email.            office at ipax.at
1190 Wien                           tel.               +43 1 3670030
FN 277995t HG Wien                  fax.            +43 1 3670030 15
____________________________________________________________________



More information about the drbd-user mailing list