From owner-freebsd-current@freebsd.org Thu Nov 26 16:55:50 2020 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 9DFBA468A7E for ; Thu, 26 Nov 2020 16:55:50 +0000 (UTC) (envelope-from grahamperrin@gmail.com) Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4ChkR96GZ4z4kW2 for ; Thu, 26 Nov 2020 16:55:49 +0000 (UTC) (envelope-from grahamperrin@gmail.com) Received: by mail-wr1-x429.google.com with SMTP id k14so2867361wrn.1 for ; Thu, 26 Nov 2020 08:55:49 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:references:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=7q+cGBIoGI2QztrddXoLO9ShRIePA1HuuoJqw7zpfEk=; b=SEGGATErbpEOw+7CDqUuYTNr+zOQmbOo2OQWWmOwGBt+WBpEywTkNaJEMQhQ7BgScw GLNuRPrIFMkoYLgUxJqx0izn6qSZa/Zt+Vkl5xT0lBm3ZSnNYHKtJcz8FkeMLTmgIxpQ pifwjQagJ77+F0DXSlAu2YZjjmcm2Gd534Yb4LI0GDYNLTy1g8FoOvTGhxfae0hZL6PC fVKksd3cj6bhO7GNxVEz6Gmg1ZGPwpS+3PBl2xXGxb5T3OJX3w4/+BqbKltAU1eJuiNk JTXPjidJJqAPmcYjB0NCFFdneALaS3XrGdS4lIZHIig5Mxlf3qaDhMFGYMv9Wj1+rSTS GbtA== X-Gm-Message-State: AOAM532KYHC+AFA/vOF6aA+QItporZDdt+5WYTRJbbT7qNcolL7B0Dzk ZZvl31i5IVUik6zOrWLDKh6uycILQwU= X-Google-Smtp-Source: ABdhPJx70zHPfYlhZo+DbyvCbbghk64Zy4s2Lv1M81E0B2+EwkwQrMXHoseEVlt2qHHri9AtVAdovA== X-Received: by 2002:a5d:65ca:: with SMTP id e10mr4976319wrw.42.1606409747799; Thu, 26 Nov 2020 08:55:47 -0800 (PST) Received: from [192.168.1.11] (79-66-147-78.dynamic.dsl.as9105.com. [79.66.147.78]) by smtp.gmail.com with ESMTPSA id e4sm9755840wrr.32.2020.11.26.08.55.46 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 26 Nov 2020 08:55:47 -0800 (PST) Subject: zpool export: umount fails, device inexplicably busy (lsof finds nothing) From: Graham Perrin To: freebsd-current@freebsd.org References: <4125dad7-b1ea-bf20-4996-6a138ff202eb@gmail.com> Message-ID: <1b4bf881-7689-95ac-6bb5-984d063bda73@gmail.com> Date: Thu, 26 Nov 2020 16:55:46 +0000 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:78.0) Gecko/20100101 Thunderbird/78.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Rspamd-Queue-Id: 4ChkR96GZ4z4kW2 X-Spamd-Bar: --- X-Spamd-Result: default: False [-4.00 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; TO_DN_NONE(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-1.00)[-0.999]; RECEIVED_SPAMHAUS_PBL(0.00)[79.66.147.78:received]; FROM_EQ_ENVFROM(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[2a00:1450:4864:20::429:from]; FREEMAIL_ENVFROM(0.00)[gmail.com]; MID_RHS_MATCH_FROM(0.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[2a00:1450:4864:20::429:from:127.0.2.255]; MIME_TRACE(0.00)[0:+]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::429:from]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-current] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Nov 2020 16:55:50 -0000 On 25/11/2020 17:35, Graham Perrin wrote: > … >> root@momh167-gjp4-8570p:~ # zpool export Transcend >> cannot unmount '/Volumes/t500': umount failed >> root@momh167-gjp4-8570p:~ # umount /Volumes/t500 >> umount: unmount of /Volumes/t500 failed: Device busy >> root@momh167-gjp4-8570p:~ # lsof /Volumes/t500/ >> root@momh167-gjp4-8570p:~ # >> >> ---- >> >> When this last occurred, I could export the pool after signing out >> from KDE. >> > The problem seemed to be consistently reproducible but (fingers > crossed) no problem yesterday or today. > > Previously: most often using OpenZFS in base. > > Now using OpenZFS from ports, with r367936. > > If the problem recurs: is it _ever_ sane to get nothing listed by lsof > for a volume that can not be unmounted? I spoke too soon, the problem recurred this afternoon: root@mowa219-gjp4-8570p:~ # zpool export Transcend cannot unmount '/Volumes/t500/VirtualBox': umount failed root@mowa219-gjp4-8570p:~ # lsof /Volumes/t500/VirtualBox lsof: WARNING: device cache mismatch: /dev/drm/121 lsof: WARNING: /root/.lsof_mowa219-gjp4-8570p was updated. root@mowa219-gjp4-8570p:~ # lsof /Volumes/t500/VirtualBox root@mowa219-gjp4-8570p:~ # zpool export Transcend cannot unmount '/Volumes/t500/VirtualBox': umount failed root@mowa219-gjp4-8570p:~ # uname -v FreeBSD 13.0-CURRENT #72 r367936: Sun Nov 22 21:46:00 GMT 2020 root@mowa219-gjp4-8570p:/usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG root@mowa219-gjp4-8570p:~ # zfs --version zfs-0.8.0-1 zfs-kmod-v2020110200-zfs_8583540c6 root@mowa219-gjp4-8570p:~ #