From nobody Sat Aug 17 14:57:31 2024 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 4WmMR00SgLz5T9WY for ; Sat, 17 Aug 2024 14:57:32 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WmMQz6Prmz4lYG for ; Sat, 17 Aug 2024 14:57:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1723906651; a=rsa-sha256; cv=none; b=Qi7qHcRI9JkEhEZC3ktdmsS7AORkmrRixl1hywQUuGkoFp8rxYEYaRzoqR+lJ4nIAXQXQL bWApdM8mw1JrpyviLHlFyss3mmwy3Z0UlXv8kN9ldC86YfbvQuLBMAGi37hFzrLX1OrAIv t0Ru2N1R9aSwkihkWGv+2aBGPk1JCt2o1QQIiwqJyvTRrYwvqwRqo1jmQ58Z+64PlDMzCX 2fTMKLBBIcN7QRkki1l6HMcSyvOIAEI2kysqPPjLES/m8ETnNgsPCkzDwdOypb3msD+WGx LxhX7Ja9Zrhflkett4wr5sHSGDv0FIs2QK5J35yRbuHXMX433UB9OhUTS8MMwQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1723906651; 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=Sj6qGCMEInVJ/sYYu551UxWI4gvAi2UWDxwub0YljEQ=; b=W62lDVQm0wCLwgLHWeTXGhehIK76egfZtrpKYc42DIqdLQ+cfHecxp64A6NzFWs17bMF3U GTM8DIjk+mozIDKSx/aYRn9Xk/l5du9qzVQ5G/9r918hNWx4ldm3rAnGhfhy6nkBtUyJ02 0VGeNmnZTaR/zEWN9JexEm54+gZWH/llVy932mhDUONhbJ68xpMFYeJYZKZPRwSdE+Czs2 eFPq34ET5uhE4noqjQYTsoFsAHisrrsGIC+e1wcoqT2w3EFgI0T7ggS/ehSRRHAebubTw+ AhGKYhqYg8jS8iLqTssesnKOdSRMORhFOj4tOm8iS1KrPGI7Ahr7ZFcc6TJNeg== 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 4WmMQz5vcZzv98 for ; Sat, 17 Aug 2024 14:57:31 +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 47HEvVvg024162 for ; Sat, 17 Aug 2024 14:57:31 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 47HEvVxg024161 for bugs@FreeBSD.org; Sat, 17 Aug 2024 14:57:31 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 280884] wrong media size for 4k disks Date: Sat, 17 Aug 2024 14:57:31 +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: 15.0-CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: freebsd@nerdbynature.de 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 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 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D280884 Bug ID: 280884 Summary: wrong media size for 4k disks Product: Base System Version: 15.0-CURRENT Hardware: amd64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: freebsd@nerdbynature.de Booting 15.0-CURRENT (main-n271670-bd4f2023bb05) as a Xen DomU (hvm mode) prints: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D # dmesg | grep xbd xbd0: 49152MB at device/vbd/51712ata1: reset tp1 mas= k=3D03 ostat0=3D50 ostat1=3D00 xbd0: features: flush, write_barrier xbd0: synchronize cache commands enabled. xbd1: 30720MB at device/vbd/51728xbd0: disk error on xenbusb_front0 xbd1: features: flush, write_barrier xbd1: synchronize cache commands enabled. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D But xbd0 (the first disk configured) is supposed to be 6 GB in size. The sa= me disks from the Xen Dom0 (running a Linux distribution): =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D # lsblk -o NAME,SIZE,FSTYPE,TYPE,LOG-SEC,PHY-SEC /dev/vg0/freebsd-disk0 /dev/vgteamlite/freebsd-disk1 NAME SIZE FSTYPE TYPE LOG-SEC PHY-SEC vg0-freebsd--disk0 6G lvm 4096 4096 vgteamlite-freebsd--disk1 30G zfs_member lvm 512 512 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D NB: while a "disk error" is reported for xbd1, the disk can be used in Free= BSD just fine. zpool import works and the correct size is reported. Trying to partition xbd0 (the 6 GB disk) results in all kinds of errors: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D # gpart create -s gpt xbd0 xbd0: disk error cmd=3Dwrite 1-8 status: ffffffff gpart: Input/output error # gpart list xbd0 Geom name: xbd0 modified: true state: OK fwheads: 255 fwsectors: 63 last: 12582906 first: 6 entries: 128 scheme: GPT Consumers: 1. Name: xbd0 Mediasize: 51539607552 (48G) Sectorsize: 4096 Mode: r1w1e1 # gnop create -S 4k xbd0 GEOM_NOP: Device xbd0.nop created. xbd0: disk error cmd=3Dread 12582911-12582918 status: ffffffff xbd0: disk error cmd=3Dread 12582911-12582918 status: ffffffff xbd0: disk error cmd=3Dread 12582849-12582880 status: ffffffff xbd0: disk error cmd=3Dread 12582910-12582917 status: ffffffff xbd0: disk error cmd=3Dread 12582911-12582918 status: ffffffff xbd0: disk error cmd=3Dread 12582910-12582917 status: ffffffff xbd0: disk error cmd=3Dread 1-8 status: ffffffff xbd0: disk error cmd=3Dread 12582911-12582918 status: ffffffff xbd0: disk error cmd=3Dread 2-17 status: ffffffff xbd0: disk error cmd=3Dread 2-17 status: ffffffff xbd0: disk error cmd=3Dread 12582911-12582918 status: ffffffff # file -Ls /dev/xbd0* xbd0: disk error cmd=3Dread 0-2039 status: ffffffff xbd0: disk error cmd=3Dread 255-262 status: ffffffff /dev/xbd0: ERROR: cannot read `/dev/xbd0' (Ixbd0: disk error cmd=3Dread 0-2039nput/output erro status: ffffffff xbd0: disk error cmd=3Dread 2r) 55-262 status: ffffffff /dev/xbd0.nop: ERROR: cannot read `/dev/xbd0.nop' (Input/output error) =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D Trying to play tricks with sector sizes doesn't work either: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D # gnop destroy xbd0.nop GEOM_NOP: Device xbd0.nop removed. # gnop create -S 4096 /dev/xbd0 GEOM_NOP: Device xbd0.nop created. xbd0: disk error cmd=3Dread 12582911-12582918 status: ffffffff xbd0: disk error cmd=3Dread 12582911-12582918 status: ffffffff xbd0: disk error cmd=3Dread 12582849-12582880 status: ffffffff xbd0: disk error cmd=3Dread 12582910-12582917 status: ffffffff xbd0: disk error cmd=3Dread 12582911-12582918 status: ffffffff xbd0: disk error cmd=3Dread 12582910-12582917 status: ffffffff xbd0: disk error cmd=3Dread 1-8 status: ffffffff xbd0: disk error cmd=3Dread 12582911-12582918 status: ffffffff xbd0: disk error cmd=3Dread 2-17 status: ffffffff xbd0: disk error cmd=3Dread 2-17 status: ffffffff xbd0: disk error cmd=3Dread 12582911-12582918 status: ffffffff # zpool create -o ashift=3D12 zroot /dev/xbd0.nop xbd0: disk error cmd=3Dread 4-227 status: ffffffff xbd0: disk error cmd=3Dread 68-291 status: ffffffff xbd0: disk error cmd=3Dread 12582788-12583011 status: ffffffff xbd0: disk error cmd=3Dread 12582852-12583075 status: ffffffff cannot create 'zroot': no such pool or dataset =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D The same happens on FreeBSD 14.1, but switching to 15.0-CURRENT did not hel= p. --=20 You are receiving this mail because: You are the assignee for the bug.=