From nobody@FreeBSD.org Sun Jan 10 08:24:48 2010 Return-Path: Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 893331065670 for ; Sun, 10 Jan 2010 08:24:48 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 799288FC08 for ; Sun, 10 Jan 2010 08:24:48 +0000 (UTC) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o0A8OlQO036074 for ; Sun, 10 Jan 2010 08:24:47 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id o0A8Ol14036072; Sun, 10 Jan 2010 08:24:47 GMT (envelope-from nobody) Message-Id: <201001100824.o0A8Ol14036072@www.freebsd.org> Date: Sun, 10 Jan 2010 08:24:47 GMT From: Alt To: freebsd-gnats-submit@FreeBSD.org Subject: ioctl freeze in zpool X-Send-Pr-Version: www-3.1 X-GNATS-Notify: >Number: 142563 >Category: kern >Synopsis: [geom] [hang] ioctl freeze in zpool >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-geom >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Jan 10 08:30:04 UTC 2010 >Closed-Date: >Last-Modified: Sun Jan 10 10:02:43 UTC 2010 >Originator: Alt >Release: 9-CURRENT >Organization: >Environment: FreeBSD 9.0-CURRENT FreeBSD 9.0-CURRENT #0 r201894: Sun Jan 10 01:53:08 MSK 2010 root@:/usr/obj/root/current/sys/GENERIC i386 >Description: zfs's zpool utility freezes on ioctl call on rare situtions: # zpool status Jan 10 10:16:33 root: ZFS: vdev failure, zpool=test type=vdev.bad_label Jan 10 10:16:33 root: ZFS: vdev failure, zpool=test type=vdev.bad_label Issue leads to zfs pools become uncontrollable, since zpool's commands status,import,export,destroy not working now. I tried to trackdown issue - it leads to kernel ioctl call (i dont have any experience with kernel dev): (gdb) disas Dump of assembler code for function ioctl: 0x2828a740 : mov $0x36,%eax 0x2828a745 : int $0x80 0x2828a747 : jb 0x2828a72c 0x2828a749 : ret 0x2828a74a : nop 0x2828a74b : nop 0x2828a74c : push %ebx 0x2828a74d : call 0x2828a752 0x2828a752 : pop %ebx 0x2828a753 : add $0x15b36,%ebx 0x2828a759 : jmp 0x2817fc14 <_init+3940> 0x2828a75e : mov %esi,%esi End of assembler dump. (gdb) stepi 0x2828a745 3 RSYSCALL(ioctl) (gdb) Jan 10 10:16:33 root: ZFS: vdev failure, zpool=test type=vdev.bad_label Jan 10 10:16:33 root: ZFS: vdev failure, zpool=test type=vdev.bad_label (now its freezed and dont react ctrl-c, sigterm, sigkill - any signals) >How-To-Repeat: Make zfs raidz1 with 4+ disks. Shutdown system. Replace 1 disk with new one and remove other. So, we removed 2 disks from pool and its broken. Boot and command `zpool status` - it freezes. Need to say it take effect with other commands: import/export/destroy, so actually pools become uncontrollable.. >Fix: >Release-Note: >Audit-Trail: Responsible-Changed-From-To: freebsd-bugs->freebsd-geom Responsible-Changed-By: linimon Responsible-Changed-When: Sun Jan 10 10:02:20 UTC 2010 Responsible-Changed-Why: Over to maintainer(s). http://www.freebsd.org/cgi/query-pr.cgi?pr=142563 >Unformatted: