From nobody Sun Mar 19 21:45:29 2023 X-Original-To: fs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4PfryK65kVz3ykfp for ; Sun, 19 Mar 2023 21:45:29 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PfryK3XKfz3xm9 for ; Sun, 19 Mar 2023 21:45:29 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1679262329; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=76NsHsff5+kFLIzUnHKynMqlQynso/zZi0QT4VfnpYI=; b=JDIKLCbApVxE/5EXFioFlBoP4L5oNb/J+h2UFWBCeLQ42we5DbvoXtFB3AC+imm+a4NjQH 0jTM78VwDaVnR0cmd4L8/O92jjQGXFgqXERZLb0iGos2b11UfNry/ijBpgQZLj/MeYx1Fn /XvxdS+xI2U68nYOUJo7uImX1qRynKSzqsKX3At9t9IAw11cu/8g1kTWDLFbXUQcVsUxC8 zBDVO82sAU+ers2LCRD7nAL044CuovmNTD5q0aSA3zqxJjnBCLKSv9Ja4DFSoI5SyRyJKm AFTMk/kYc1P/jTt/xpiz46f8SFHyBJcEyAT5Mn3+0PL9ekQcZQPgauxGHKg66A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1679262329; a=rsa-sha256; cv=none; b=N+vAICMwnPwuSG1a05tP/TedV4F6rJror8eLiw+i53EQshECQDdW5tDjLPjX8+dVCnB2iL 4143Jb2MjvdwNGLm9JPtkU3ncNc1u6P+C1xDf+66GszASflxNDYVwpHJrS/KhBQOsjBwqf kziLcxCyrHPYVWnndXkr+FtEJPAKnTNZXkpqhBOIzj22qo723V5kc46tF0DvDMuQj6Yu/H 4LlMbtW/XaSLAL2jKa16QQ/pg7fNkA/6MJOVn5lxaeflYRZMwx07y5SL+4H2RrL18zvIvl E2/t0Vcmvbw5ESUyXguYx4EASHaPridFAwNXfspZNFyllgzH3DJ6BIOWfo/9JA== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4PfryK2fBpz14hx for ; Sun, 19 Mar 2023 21:45:29 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 32JLjT7E013929 for ; Sun, 19 Mar 2023 21:45:29 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 32JLjTBq013928 for fs@FreeBSD.org; Sun, 19 Mar 2023 21:45:29 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: fs@FreeBSD.org Subject: [Bug 270340] zpool import does not return Date: Sun, 19 Mar 2023 21:45:29 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 13.2-RELEASE X-Bugzilla-Keywords: needs-qa X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: grahamperrin@freebsd.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: fs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Filesystems List-Archive: https://lists.freebsd.org/archives/freebsd-fs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-fs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D270340 Graham Perrin changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |needs-qa CC| |grahamperrin@freebsd.org --- Comment #6 from Graham Perrin --- % (In reply to Peter Much from comment #0) If you create a directory for altroot, and import with option -R, then are symptoms reproducible? Knowing more about the hardware (disks and connectivity) might help.=20 > After some work done (including modification to the pools), =E2=80=A6 Can you describe the modifications? In particular: does any mount point for a file system within an importing p= ool conflict with an existing mount point for an already imported pool? Thanks.=20 ---- Below, not reproducible with 13.2-RC3 with a pool on a mobile hard disk dri= ve on USB:=20 root@fuji:~ # freebsd-version -kru ; uname -aKU 13.2-RC3 13.2-RC3 13.2-RC3 FreeBSD fuji 13.2-RC3 FreeBSD 13.2-RC3 releng/13.2-n254599-d9bf9d73203f GEN= ERIC amd64 1302001 1302001 root@fuji:~ # tail -f -n 0 /var/log/messages Mar 19 21:31:29 fuji kernel: usb_msc_auto_quirk: UQ_MSC_NO_GETMAXLUN set for USB mass storage device StoreJet Transcend StoreJet Transcend (0x174c:0x510= 6) Mar 19 21:31:29 fuji kernel: ugen3.2: at usbus3 Mar 19 21:31:29 fuji kernel: umass1 on uhub7 Mar 19 21:31:29 fuji kernel: umass1: on usbus3 Mar 19 21:31:29 fuji kernel: umass1: SCSI over Bulk-Only; quirks =3D 0x0100 Mar 19 21:31:29 fuji kernel: umass1:6:1: Attached to scbus6 Mar 19 21:31:29 fuji kernel: da1 at umass-sim1 bus 1 scbus6 target 0 lun 0 Mar 19 21:31:29 fuji kernel: da1: Fixed Direct Access SPC-4 SCSI device Mar 19 21:31:29 fuji kernel: da1: Serial Number X3E1SAKRS Mar 19 21:31:29 fuji kernel: da1: 40.000MB/s transfers Mar 19 21:31:29 fuji kernel: da1: 476940MB (976773168 512 byte sectors) Mar 19 21:31:29 fuji kernel: da1: quirks=3D0x2 ^C root@fuji:~ # lsblk DEVICE MAJ:MIN SIZE TYPE L= ABEL MOUNT ada0 0:127 149G GPT = - - ada0p1 0:129 512K freebsd-boot gpt/gptb= oot0 - -:- 492K - = - - ada0p2 0:131 16G freebsd-swap gpt/s= wap0 SWAP ada0p2.eli 0:119 16G freebsd-swap = - SWAP ada0p3 0:133 133G freebsd-zfs gpt/= zfs0 ada0p3.eli 0:140 133G zfs = - - -:- 836K - = - - da1 1:178 466G GPT = - - da1p1 1:179 260M efi gpt/efib= oot0 - da1p2 1:180 512K freebsd-boot gpt/gptb= oot0 - -:- 492K - = - - da1p3 1:181 2.0G freebsd-swap gpt/s= wap0 - da1p4 1:182 464G freebsd-zfs gpt/= zfs0 -:- 4.0K - = - - root@fuji:~ # zpool import=20 pool: zroot id: 5859441744642421996 state: ONLINE action: The pool can be imported using its name or numeric identifier. config: zroot ONLINE gpt/zfs0 ONLINE root@fuji:~ # mkdir /tmp/altroot root@fuji:~ # zpool import -R /tmp/altroot zroot cannot import 'zroot': pool was previously in use from another system. Last accessed by (hostid=3D0) at Sun Mar 19 21:28:24 2023 The pool can be imported, use 'zpool import -f' to import the pool. root@fuji:~ # zpool import -R /tmp/altroot -f zroot root@fuji:~ # zpool status -v pool: fuji state: ONLINE status: One or more devices has been taken offline by the administrator. Sufficient replicas exist for the pool to continue functioning in a degraded state. action: Online the device using 'zpool online' or replace the device with 'zpool replace'. scan: scrub repaired 0B in 00:21:03 with 0 errors on Thu Aug 11 03:03:11 = 2022 config: NAME STATE READ WRITE CKSUM fuji ONLINE 0 0 0 ada0p3.eli ONLINE 0 0 0 cache label/cache-fuji OFFLINE 0 0 0 errors: No known data errors pool: zroot state: ONLINE scan: scrub repaired 0B in 00:10:37 with 0 errors on Sat Mar 18 10:05:17 = 2023 config: NAME STATE READ WRITE CKSUM zroot ONLINE 0 0 0 gpt/zfs0 ONLINE 0 0 0 errors: No known data errors root@fuji:~ # zpool export zroot root@fuji:~ # exit logout Connection to 192.168.1.5 closed. --=20 You are receiving this mail because: You are the assignee for the bug.=