From nobody Thu Mar 17 12:25:28 2022 X-Original-To: bugs@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 3CE8A1A2492F for ; Thu, 17 Mar 2022 12:25: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 4KK5vX5t3zz4qFf for ; Thu, 17 Mar 2022 12:25:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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 A68802606 for ; Thu, 17 Mar 2022 12:25:28 +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 22HCPSxi041446 for ; Thu, 17 Mar 2022 12:25:28 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 22HCPSJ7041445 for bugs@FreeBSD.org; Thu, 17 Mar 2022 12:25:28 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: bugs@FreeBSD.org Subject: [Bug 262617] ZFS pool on USB drive does not mount correct on startup Date: Thu, 17 Mar 2022 12:25:28 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 13.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: donaldcallen@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: 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: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1647519928; 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; bh=5zSLB3DsS5b87jWNEqVTq39WNbiHIADvsvSUuiYplCQ=; b=KBKWBekpCfewYbow7ZRlVrlL1znpDbf97wrU/Rt7KNySQnN9bF6coNkhaJkgWW+bReU8Vq 1SD7PEzC6UalGVP/a823lAnnkDIHZkHRR8a2nXR6MZWLGusXg9FWPMxzlXjtIUUV0rnGLG Hm/pplFm/F80uGmT9mpvetwoOU1AMiBLzS1hLuPAPRHAAJqtLV49BNMEZCyM6snYpal9k0 ubqBWnFovxLdzp4j3AIibBkWY2mS8h2XGfTrtwqibo7sPa+97GkpjB8Ue+Y4ztRDIdWdQd fpTk5GoIZgsfKiHmytmhx13ZajJWzepR3/rilVcd9SnRCpypjS8U9l93M+jt4A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1647519928; a=rsa-sha256; cv=none; b=sXPZI94GT+6WRoFQq7QW7rX2/Z3S/J5oGSNuWMqD4R8h2cAGuO/E1Jr8v0DjL88PxjH9of 5DhSX0zUE64BGNmklackj8JV/saydmQu7fK58ye9KM+9p1UqnXbZjoSMJCrkgyo+ok4OU2 9rbC44CCaAgXxuvcCzjXsqjtLBPcvTqXBdxXCeaUHhxlQaaqOFQ+jpqVL6cxUucyaSg/FJ TbNxbC8PnIhVC8aDTXD00KTOMD66UoodU7WLXJjs/g+4aMHsyZ8mfx1y8S2LV6gR/3XjPW FbuOjxA/xFaZNATSmvHXoFpFDNyBtF5UHpRUtoE/v14Wa9FAt+K6o5DHN40hxQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D262617 Bug ID: 262617 Summary: ZFS pool on USB drive does not mount correct on startup Product: Base System Version: 13.0-RELEASE Hardware: amd64 OS: Any Status: New Severity: Affects Many People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: donaldcallen@gmail.com Created attachment 232513 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D232513&action= =3Dedit dmesg I have a 2TB Seagate Barracuda drive with SATA/USB adapter that I use for backups and archives. I created a ZFS pool (named Primary) on this drive us= ing the entire drive, not a partition, as the ZFS docs recommend. This drive was previously used with a Linux system and had a GPT partition scheme with one partition containing an ext4 filesystem. If I have this drive connected to my system when I power it on, the first t= hing to note is that I get some chatter in /var/log/messages about a corrupted G= PT partition table: Mar 17 07:59:38 pangloss kernel: GEOM: da0: the primary GPT table is corrup= t or invalid. Mar 17 07:59:38 pangloss kernel: GEOM: da0: using the secondary instead -- recovery strongly advised. da0 is the device address of the disk. When the system comes up, 'df' indicates that the pool is mounted where it = is supposed to be and the space utilization numbers are correct. But 'ls' of t= he mountpoint returns absolutely nothing. None of the files are accessible. As root, I umount the pool and remount and now it mounts correctly. If the drive is not connected to the system at boot time and I later connect it, I get similar messages about a corrupt GPT primary table. If I try to m= ount with zfs mount Primary the mount fails. I don't have the error messages in front of me as I write this. I will try to duplicate and get the exact sequence and report in a subsequent comment. zfs status Primary said that the pool did not exist. I then rebooted the system with the drive plugged in and got the same behavior described above (blank filesystem at first, everything ok after umount/mount). dmesg attached. --=20 You are receiving this mail because: You are the assignee for the bug.=