Skip to content

Instantly share code, notes, and snippets.

View nedbass's full-sized avatar

Ned Bass nedbass

  • LLNL
  • Livermore, CA
View GitHub Profile
@nedbass
nedbass / backtraces.txt
Created August 17, 2017 21:54
Backtraces for issue 6524
This file has been truncated, but you can view the full file.
2017-08-17 14:41:53 ffffff810bc9fn_node+0x140/0x140
2017-08-17 14:41:53 [ 5618.360938] [<ffffffff816ae398>] ret_from_fork+0x58/0x90
2017-08-17 14:41:53 [ 5618.367548] [<ffffffff810b3940>] ? kthread_create_on_node+0x140/0x140
2017-08-17 14:41:53 [ 5618.375418] scsi_tmf_8 S ffff881035b57080 0 550 2 0x00000000
2017-08-17 14:41:53 [ 5618.383943] ffff881034fbfe10 0000000000000046 ffff881034fbffd8 ffff881035970000
2017-08-17 14:41:53 [ 5618.392880] ffff881034fbffd8 ffff881034fbffd8 ffff881035970000 ffff881035970000
2017-08-17 14:41:53 [ 5618.401798] ffff882037887480 ffffffff810ab9d0 ffff881035970000 ffff881035b57080
2017-08-17 14:41:53 [ 5618.410735] Call Trace:
2017-08-17 14:41:53 [ 5618.414038] [<ffffffff810ab9d0>] ? manage_workers.isra.23+0x2e0/0x2e0
2017-08-17 14:41:53 [ 5618.421932] [<ffffffff816a2e39>] schedule+0x29/0x70
@nedbass
nedbass / gist:6f82a8256fb2a86f996a
Created March 30, 2015 18:48
list_del corruption
[ 2711.367391] ------------[ cut here ]------------
[ 2711.367418] WARNING: CPU: 0 PID: 7972 at lib/list_debug.c:53 __list_del_entry+0x70/0xe0()
[ 2711.367421] list_del corruption, ffff880023db1368->next is LIST_POISON1 (dead000000100100)
[ 2711.367422] Modules linked in: zfs(OE) zcommon(OE) zunicode(OE) znvpair(OE) zavl(OE) splat(OE) spl(OE) ip6t_rpfilter ip6t_REJECT nf_reject_ipv6 xt_conntrack ebtable_nat ebtable_broute bridge stp llc ebtable_filter ebtables ip6table_nat nf_conntrack_ipv6 nf_defrag_ipv6 nf_nat_ipv6 ip6table_mangle ip6table_security ip6table_raw ip6table_filter ip6_tables iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack iptable_mangle iptable_security iptable_raw ppdev crc32c_intel parport_pc serio_raw virtio_console virtio_balloon pvpanic parport i2c_piix4 nfsd auth_rpcgss nfs_acl lockd grace sunrpc qxl drm_kms_helper ttm virtio_net drm virtio_blk virtio_scsi virtio_pci virtio_ring virtio ata_generic pata_acpi [last unloaded: spl]
[ 2711.367473] CPU: 0 PID: 7972
VERIFY3(db->db.db_size >= dn->dn_bonuslen) failed (2560 >= 3644)
PANIC at dbuf.c:397:dbuf_verify()
Showing stack for process 18643
Pid: 18643, comm: setfattr Not tainted 2.6.32-431.23.3.1chaos.ch5.2.x86_64 #1
Call Trace:
[<ffffffffa03c88ad>] ? spl_dumpstack+0x3d/0x40 [spl]
[<ffffffffa03c8aa2>] ? spl_panic+0xc2/0xe0 [spl]
[<ffffffffa04c9e0d>] ? dbuf_dirty+0x97d/0x1a10 [zfs]
[<ffffffffa0528115>] ? sa_attr_iter+0xb5/0x1f0 [zfs]
[<ffffffffa05277e0>] ? sa_build_idx_tab+0x0/0x170 [zfs]
@nedbass
nedbass / gist:fa4d76c73c47d2a5f6fb
Created March 27, 2015 18:14
VERIFY3(0 == zpl_xattr_security_init(ip, dir, &dentry->d_name)) failed (0 == -28)
[21931.297279] VERIFY3(0 == zpl_xattr_security_init(ip, dir, &dentry->d_name)) failed (0 == -28)
[21931.297351] PANIC at zpl_inode.c:105:zpl_create()
[21931.297361] Showing stack for process 6033
[21931.297369] CPU: 0 PID: 6033 Comm: mktemp Tainted: P OE 3.18.9-200.fc21.x86_64 #1
[21931.297371] Hardware name: Red Hat RHEV Hypervisor, BIOS 0.5.1 01/01/2007
[21931.297376] 0000000000000000 00000000d5db4e65 ffff88002bbbfa58 ffffffff8175b71c
[21931.297382] 0000000000000000 ffffffffa050fb26 ffff88002bbbfa68 ffffffffa02bf8d4
[21931.297386] ffff88002bbbfbf8 ffffffffa02bf99b ffffffff817644e1 00000000ffffffe4
[21931.297390] Call Trace:
[21931.297422] [<ffffffff8175b71c>] dump_stack+0x46/0x58
pool objset object dtype btype data_bs meta_bs bsize lvls dholds blocks dsize cached direct indirect bonus spill
tank 0 151 DMU_OT_SPACE_MAP DMU_OT_SPACE_MAP_HEADER 4.0K 16K 320 2 4 2 8.0K 24K 8.0K 16K 0 0
tank 0 150 DMU_OT_SPACE_MAP DMU_OT_SPACE_MAP_HEADER 4.0K 16K 320 1 2 1 4.0K 4.0K 4.0K 0 0 0
tank 0 81 DMU_OT_SPACE_MAP DMU_OT_SPACE_MAP_HEADER 4.0K 16K 320 1 2 1 4.0K 4.0K 4.0K 0 0 0
tank 0 37 DMU_OT_SPACE_MAP DMU_OT_SPACE_MAP_HEADER 4.0K 16K 320 1 2 1 4.0K 4.0K 4.0K 0 0 0
tan
4054] [<ffffffffa04af27e>] ? taskq_thread+0x12f/0x3e6 [spl]
[ 7036.284054] [<ffffffff8104a4ce>] ? default_wake_function+0x0/0x9
[ 7036.284054] [<ffffffffa04af14f>] ? taskq_thread+0x0/0x3e6 [spl]
[ 7036.284054] [<ffffffff81065009>] ? kthread+0x79/0x81
[ 7036.284054] [<ffffffff81011baa>] ? child_rip+0xa/0x20
[ 7036.284054] [<ffffffff81064f90>] ? kthread+0x0/0x81
[ 7036.284054] [<ffffffff81011ba0>] ? child_rip+0x0/0x20
[ 7036.284054] zvol/9 S ffff88003784c988 0 28380 2 0x00000000
[ 7036.284054] ffff88007fb554c0 0000000000000046 ffff88007d2fcde8 ffffffff8103fc9e
[ 7036.284054] ffff8800018157c0 ffff880001915828 000000000000f9e0 ffff88007eae5fd8
@nedbass
nedbass / gist:f5eb28da0f0886dffa55
Created July 9, 2014 19:06
llapi: get OST count from /proc
commit 6df9cc253cbcde4a912dd42f106015fdd74ca695
Author: Ned Bass <bass6@llnl.gov>
Date: Wed Nov 6 11:17:12 2013 -0800
LLNL-0000 llapi: get OST count from proc
Add a fallback method to llapi_get_obd_count() for getting the number
of OSTs in the filesystem. If the ioctl() method fails, try to count
the OSTs by examining the target_obd file under /proc. This method
requires inferring the Lustre filesystem name by comparing the
struct zio {
io_bookmark = {
zb_objset = 40,
zb_object = 5189,
zb_level = 0,
zb_blkid = 1,
zb_func = 0xffffffffa04ca840 "dbuf_write"
},
io_prop = {
zp_checksum = ZIO_CHECKSUM_INHERIT,
------------------- /proc/spl/kstat
------------------- /proc/spl/kstat/zfs
------------------- /proc/spl/kstat/zfs/tank
------------------- /proc/spl/kstat/zfs/tank/io
23 3 0x00 1 80 66683642782372 86956861243016
nread nwritten reads writes wtime wlentime wupdate rtime rlentime rupdate wcnt rcnt
7957733376 15228314624 802482 413892 388274670018 527550526511030 86299075894338 569817761441 527550526511030 86299075916697 0 0
------------------- /proc/spl/kstat/zfs/tank/dmu_tx_assign
22 1 0x01 32 1536 66683642779563 86956863577835
name type data
PID: 0 TASK: ffffffff81c13460 CPU: 0 COMMAND: "swapper/0"
(active)
PID: 0 TASK: ffff880119afca40 CPU: 1 COMMAND: "swapper/1"
#0 [ffff880119b09e60] schedule at ffffffff816672f0
PID: 1 TASK: ffff880119a76b40 CPU: 1 COMMAND: "systemd"
#0 [ffff880119ae1d68] schedule at ffffffff816672f0
#1 [ffff880119ae1de0] schedule_hrtimeout_range_clock at ffffffff8166676d
#2 [ffff880119ae1e78] schedule_hrtimeout_range at ffffffff816667a3