From owner-freebsd-current@freebsd.org Wed Nov 25 17:35:25 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 6D27246FD66 for ; Wed, 25 Nov 2020 17:35:25 +0000 (UTC) (envelope-from grahamperrin@gmail.com) Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) (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 4Ch7MJ2mmXz3nYs for ; Wed, 25 Nov 2020 17:35:24 +0000 (UTC) (envelope-from grahamperrin@gmail.com) Received: by mail-wm1-x32c.google.com with SMTP id p22so2700743wmg.3 for ; Wed, 25 Nov 2020 09:35:24 -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=ccwhWA+1gEZ9IObMWH75frJweU99QCUy+daPEG1xdOY=; b=qNA6V4rFWN2fkJsqUEoFtvnjhbw7wIdO77+dBWCXNd09+liDEgnM6QIzMPiXtbUcFV Pqe6+8yDCx3dP0A4BNF9VKiL0OrlTQRBf4ihiX4G9sa6+sPxSBZHl/Y0zLZWzMuH5dAa wnicvqfZn8Erq5bhQIQV0GVXRu1LsYadelIEE5KJAW0/JicRPzw7Ng7L3ZYiB6bhNwmd NQDle/RzJdw9QxsDgpt+tIrEL1ycxoUpraeDpLK3pM5udvhuPPTLDc5w2EDLOtn/WBFK 6J/oXycT+rfBUS26FkBE+q9Z7c5HVSmFvf+2CH5pR1N4ri3iWUnvd3kcqbBWIiR6UAsT kOrA== X-Gm-Message-State: AOAM533/DO8AR+rfa4DnBQtQgPuLiZHw+VJ83Ag/897RYgDAV7dNPHD8 YU2gPEf9Fz+ire8xL3tT7we2lidUPmw= X-Google-Smtp-Source: ABdhPJy7DlEmHONucqR3XQl068UhWA12S8EQTYAv4h5kZpIAcdZjgcdPUudxOlwXtxyl0SQD4mwxyw== X-Received: by 2002:a1c:a185:: with SMTP id k127mr5204650wme.23.1606325722320; Wed, 25 Nov 2020 09:35:22 -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 k1sm5560182wrp.23.2020.11.25.09.35.21 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 25 Nov 2020 09:35:21 -0800 (PST) Subject: zpool export: umount failed, device inexplicably busy (lsof found nothing) From: Graham Perrin To: freebsd-current@freebsd.org References: <4125dad7-b1ea-bf20-4996-6a138ff202eb@gmail.com> Message-ID: Date: Wed, 25 Nov 2020 17:35:20 +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: <4125dad7-b1ea-bf20-4996-6a138ff202eb@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Rspamd-Queue-Id: 4Ch7MJ2mmXz3nYs X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.00 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; 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]; RECEIVED_SPAMHAUS_PBL(0.00)[79.66.147.78:received]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; MID_RHS_MATCH_FROM(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[2a00:1450:4864:20::32c:from]; 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::32c:from:127.0.2.255]; NEURAL_SPAM_SHORT(1.00)[1.000]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::32c: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: Wed, 25 Nov 2020 17:35:25 -0000 On 11/10/2020 11:21, Graham Perrin wrote: > > On 06/10/2020 21:29, Graham Perrin wrote: >> lsof finds no open file. >> >> How else might I tell why the device is busy? >> >> Mobile hard disk drive, USB. > > The same problem this morning, > > ---- > > root@momh167-gjp4-8570p:~ # zpool export Transcend > cannot unmount '/Volumes/t500': umount failed > root@momh167-gjp4-8570p:~ # lsof /Volumes/t500/ > lsof: WARNING: device cache mismatch: /dev/usb/0.5.2 > lsof: WARNING: /root/.lsof_momh167-gjp4-8570p was updated. > root@momh167-gjp4-8570p:~ # lsof /Volumes/t500/ > root@momh167-gjp4-8570p:~ # usbconfig -d 0.5 dump_all_desc > ugen0.5: at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) > pwr=SAVE (0mA) > >   bLength = 0x0012 >   bDescriptorType = 0x0001 >   bcdUSB = 0x0300 >   bDeviceClass = 0x0009  >   bDeviceSubClass = 0x0000 >   bDeviceProtocol = 0x0003 >   bMaxPacketSize0 = 0x0009 >   idVendor = 0x0424 >   idProduct = 0x5434 >   bcdDevice = 0x3082 >   iManufacturer = 0x0002  >   iProduct = 0x0003  >   iSerialNumber = 0x0001  <1239567> >   bNumConfigurations = 0x0001 > >  Configuration index 0 > >     bLength = 0x0009 >     bDescriptorType = 0x0002 >     wTotalLength = 0x001f >     bNumInterfaces = 0x0001 >     bConfigurationValue = 0x0001 >     iConfiguration = 0x0000  >     bmAttributes = 0x00e0 >     bMaxPower = 0x0000 > >     Interface 0 >       bLength = 0x0009 >       bDescriptorType = 0x0004 >       bInterfaceNumber = 0x0000 >       bAlternateSetting = 0x0000 >       bNumEndpoints = 0x0001 >       bInterfaceClass = 0x0009  >       bInterfaceSubClass = 0x0000 >       bInterfaceProtocol = 0x0000 >       iInterface = 0x0000  > >      Endpoint 0 >         bLength = 0x0007 >         bDescriptorType = 0x0005 >         bEndpointAddress = 0x0081  >         bmAttributes = 0x0013  >         wMaxPacketSize = 0x0002 >         bInterval = 0x0008 >         bRefresh = 0x0000 >         bSynchAddress = 0x0000 > >       Additional Descriptor > >       bLength = 0x06 >       bDescriptorType = 0x30 >       bDescriptorSubType = 0x00 >        RAW dump: >        0x00 | 0x06, 0x30, 0x00, 0x00, 0x02, 0x00 > > > > > 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?