From owner-freebsd-fs@FreeBSD.ORG Mon Nov 10 06:48:14 2014 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 34C16E7A for ; Mon, 10 Nov 2014 06:48:14 +0000 (UTC) Received: from mail-la0-x229.google.com (mail-la0-x229.google.com [IPv6:2a00:1450:4010:c03::229]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A63F026B for ; Mon, 10 Nov 2014 06:48:13 +0000 (UTC) Received: by mail-la0-f41.google.com with SMTP id s18so7221556lam.0 for ; Sun, 09 Nov 2014 22:48:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=p1g0u2t9NKI38i855OEr7QqZ/sxsMEok8GUGP6fTr4g=; b=IePiYiv4wd0h5z84xVGn+t2//dH+YYbCZusjvPsNmR6zB/h7OPwxZwnI4cHVD9IehA 0lAioJR0MqwHHUiqSu8fN6aI7Pdyc6vfhpUmj5b5PnCArLsEEtz4gWVXzz3hmETU0CtQ RO1Bz3GcAnEmju6uUBhcTlzaxatdiBFw80SnaENe5BJr1aZIZBOpPQr/0hnYT2VzyM64 w2u0/aavWtEFVos9XvUHxVar+bSV+b/cI6ijkZlsxBudYUnUh9N2BGh/LwiA7gEH/76A e345oHfAM9JPp6yFGIW63dPez1Y8MP3WmKwqgy4C8Tuxnypf1z0iQxgSI036Gg1Oiywe x+0Q== MIME-Version: 1.0 X-Received: by 10.152.27.38 with SMTP id q6mr406031lag.92.1415602090683; Sun, 09 Nov 2014 22:48:10 -0800 (PST) Received: by 10.25.78.134 with HTTP; Sun, 9 Nov 2014 22:48:10 -0800 (PST) In-Reply-To: <201411100637.sAA6bJnR051011@maildrop31.somerville.occnc.com> References: <201411100637.sAA6bJnR051011@maildrop31.somerville.occnc.com> Date: Mon, 10 Nov 2014 07:48:10 +0100 Message-ID: Subject: Re: zpool create on md hangs From: Andreas Nilsson To: curtis@ipv6.occnc.com Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: "freebsd-fs@freebsd.org" X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Nov 2014 06:48:14 -0000 On Mon, Nov 10, 2014 at 7:37 AM, Curtis Villamizar wrote: > The following shell program produces a hang. Its reproducible (hangs > every time). > > #!sh > > set -e > set -x > > truncate -s `expr 10 \* 1024 \* 1024 \* 1024` /image-file > md_unit=`mdconfig -a -n -t vnode -f /image-file` > echo "md device is /dev/md$md_unit" > zpool create test md$md_unit > > The zpool command hangs. Kill or kill -9 has no effect. All > filesystems are unaffected but any other zpool or zfs command will > hang and be unkillable. A reboot is needed. > > This is running on: > > FreeBSD 10.0-STABLE (GENERIC) #0 r270645: Wed Aug 27 00:54:29 EDT 2014 > > When I get a chance, I will try again with a 10.1 RC3 kernel I > recently built. If this still doesn't work, I'll build an r11 kernel > since the code differs from 10.1, not having the svm code merged in. > I'm asking before poking around further in case anyone has insights > into why this might happen. > > BTW- The reason to create a zfs filesystem on an vnode type md is to > create an image that can run under bhyve using a zfs root fs. This > works quite nicely for combinations geom types (gmirror, gstripe, > gjournal, gcache) but zpool hangs when trying this with zfs. > > Curtis > > ps- please keep me on the Cc as I'm not subscribed to freebsd-fs. > Freezes here on 10.1-RC2-p1 (amd64) as well. ^T says: load: 0.21 cmd: zpool 74063 [zio->io_cv] 8.84r 0.00u 0.00s 0% 3368k Best regards Andreas