From owner-freebsd-fs@FreeBSD.ORG Mon Nov 10 06:37:31 2014 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 50A90C89 for ; Mon, 10 Nov 2014 06:37:31 +0000 (UTC) Received: from maildrop31.somerville.occnc.com (maildrop31.somerville.occnc.com [IPv6:2001:550:3800:203::3131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 22F8E15D for ; Mon, 10 Nov 2014 06:37:30 +0000 (UTC) Received: from harbor31.somerville.occnc.com (harbor31.somerville.occnc.com [IPv6:2001:550:3800:203::3231]) (authenticated bits=128) by maildrop31.somerville.occnc.com (8.14.9/8.14.9) with ESMTP id sAA6bJnR051011; Mon, 10 Nov 2014 01:37:20 -0500 (EST) (envelope-from curtis@ipv6.occnc.com) Message-Id: <201411100637.sAA6bJnR051011@maildrop31.somerville.occnc.com> To: freebsd-fs@freebsd.org Reply-To: curtis@ipv6.occnc.com Subject: zpool create on md hangs From: Curtis Villamizar MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <51009.1415601439.1@harbor31.somerville.occnc.com> Date: Mon, 10 Nov 2014 01:37:19 -0500 X-Spam-Status: No, score=-101.5 required=5.0 tests=ALL_TRUSTED,MISSING_MID, RP_MATCHES_RCVD,USER_IN_WHITELIST autolearn=unavailable autolearn_force=no version=3.4.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on maildrop31.somerville.occnc.com Cc: curtis@ipv6.occnc.com 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:37:31 -0000 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.