From owner-freebsd-stable@freebsd.org Fri Aug 25 09:26:52 2017 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7ECE9DD33E6 for ; Fri, 25 Aug 2017 09:26:52 +0000 (UTC) (envelope-from mike@sentex.net) Received: from smarthost2.sentex.ca (smarthost2.sentex.ca [IPv6:2607:f3e0:80:80::2]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client CN "smarthost.sentex.ca", Issuer "smarthost.sentex.ca" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 2A6467E461 for ; Fri, 25 Aug 2017 09:26:51 +0000 (UTC) (envelope-from mike@sentex.net) Received: from lava.sentex.ca (lava.sentex.ca [IPv6:2607:f3e0:0:5::11]) by smarthost2.sentex.ca (8.15.2/8.15.2) with ESMTPS id v7P9QoKZ041039 (version=TLSv1 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO) for ; Fri, 25 Aug 2017 05:26:50 -0400 (EDT) (envelope-from mike@sentex.net) Received: from [192.168.43.26] (saphire3.sentex.ca [192.168.43.26]) by lava.sentex.ca (8.15.2/8.15.2) with ESMTP id v7P9QmR7058947; Fri, 25 Aug 2017 05:26:48 -0400 (EDT) (envelope-from mike@sentex.net) Subject: Re: file system deadlock in RELENG_11 To: Shane Ambler , FreeBSD-STABLE Mailing List References: <66b97b27-cbea-a3a8-374d-3f7c017b5418@sentex.net> <28c89f80-4797-7e95-a637-472ac7bc98a5@sentex.net> <4ec50e48-58a5-1f49-3acf-d3b21535c36e@sentex.net> From: Mike Tancsa Organization: Sentex Communications Message-ID: Date: Fri, 25 Aug 2017 05:26:48 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.78 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Aug 2017 09:26:52 -0000 On 8/24/2017 9:33 PM, Shane Ambler wrote: > On 25/08/2017 05:40, Mike Tancsa wrote: >> On 8/24/2017 4:01 PM, Mike Tancsa wrote: >>> OK, this is fairly easy to repeat. If I start a sync of a snapshot via >>> zrep, it hangs the box.  CTRL+T shows >>> >>> >>> DEBUG: overiding stale lock on zroot/chyves from pid 19378 >>> sending zroot/chyves@zrep_000010 to 10.151.9.2:zroot/chyves >>> cannot receive new filesystem stream: destination >>> 'zroot/chyves/guests/resi/disk1' exists >>> must specify -F to overwrite it > > Are you sending a snapshot from the host to the guest? > or is the guest sending to the host? sending a snapshot from an active host, to a guest. >> root     29683   0.0  0.0    7752   3824  5  DE+  15:53      0:00.32 zfs >> send -R -I zroot/chyves@zrep_00000d zroot/chyves@zrep_000010 >> root     29690   0.0  0.0    7752   3492  5  D+   15:53      0:00.00 zfs >> rename zroot/chyves@zrep_000010 zroot/chyves@zrep_000010_unsent >> > > Should be unrelated but several years ago there was a deadlock issue > when renaming a zvol, unless the fix got undone recently this may just > be a distraction or a hint of a solution... > > https://svnweb.freebsd.org/base?view=revision&revision=272474 Hmmm, that does sound familiar. I will try and recreate this next week on a non production box. ---Mike -- ------------------- Mike Tancsa, tel +1 519 651 3400 Sentex Communications, mike@sentex.net Providing Internet services since 1994 www.sentex.net Cambridge, Ontario Canada http://www.tancsa.com/