From nobody Tue Feb 27 17:09:17 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 4TkkVP63z0z5C3Xn for ; Tue, 27 Feb 2024 17:09:17 +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 4TkkVP4pY8z4j1m for ; Tue, 27 Feb 2024 17:09:17 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1709053757; a=rsa-sha256; cv=none; b=HSEQEsiIeE7+GtzKMaNjMxKCajyk0SlUw8e2BbEX/u/DrfY1ihbtvT7YEW45PhoIO7MWpT TdPJHY8bSJafvXxup0480eGaFKGjCIPU10GM+Ocpq4nXCoHG/s1tgIiXDXcJjtzREEQQGr Q+hd5kqpuhbxL7epypyEPDfBG1EMDyjV8cLe0bZCC19OmPfVRbpkSRRgftJ1iklzX8dQrC GUJQbXbiHkGiWc9wS+Sh3GrBb1tlo+b3+bLXVvDHnIA2aoxbBboaAk3EBULQjKNj4x1GPR fWiI34QcTz0hSz9zfwow3o9r/Y5rbXIiX8Dfa9YgHxxd9xT4pfHpYiQ0Dnyu2Q== 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=1709053757; 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=qexNy36VGd+4rNRfXtFWmfUu0nzcsbdQNDFn7FS4mzM=; b=RiIC/VKQCl09akr54/mbfIPO/qawI8Xj7yvisgxtqm7ZHzloA4SGDx/6pVxkx4HFt3etMJ 4fy3ykVGuCCfffcmXKhZV/fy3dlA9OTAryCi7grhrRIYb8wbObXBLldU66NJxwhxJQ4tF9 Ofdov9R/Wwl9Zg4T2FYR8ZrPvwYWBGiIiGY3jYTDZlVxvywQaY2FuYxezZmVnEO800PjCT /setEeD/rGq9F4GqofXzBlJeEkeEQZ0OUQC8iPhAbmxEvv6d7LAAYTJh2Q6m2BgFJ+wMpZ QhPyic/mggW7L7EuaZjTpGvABvugPvYwNUR8J7gVNFXKXhboHDK88krafWtuSg== 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 4TkkVP3tQszLB8 for ; Tue, 27 Feb 2024 17:09:17 +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 41RH9HD5006479 for ; Tue, 27 Feb 2024 17:09:17 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 41RH9Hxg006472 for bugs@FreeBSD.org; Tue, 27 Feb 2024 17:09:17 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 277358] problem with gpart backup & restore Date: Tue, 27 Feb 2024 17:09:17 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 14.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: freebsd@ihead.ru 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=3D277358 Bug ID: 277358 Summary: problem with gpart backup & restore Product: Base System Version: 14.0-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: freebsd@ihead.ru Something wrong with gpart backup & restore. Have this: # gpart show ada1 =3D> 40 2000409184 ada1 GPT (954G) 40 1024 1 freebsd-boot (512K) 1064 984 - free - (492K) 2048 4194304 2 freebsd-ufs (2.0G) 4196352 268435456 3 freebsd-swap (128G) 272631808 293601280 4 freebsd-ufs (140G) 566233088 20971520 5 freebsd-ufs (10G) 587204608 62914560 6 freebsd-ufs (30G) 650119168 1350290056 - free - (644G) # gpart backup ada1 > ada1.backup # cat ada1.backup GPT 128 1 freebsd-boot 40 1024 2 freebsd-ufs 2048 4194304 3 freebsd-swap 4196352 268435456 4 freebsd-ufs 272631808 293601280 5 freebsd-ufs 566233088 20971520 6 freebsd-ufs 587204608 62914560 # gpart restore ada0 < ada1.backup # gpart show ada0 =3D> 34 2000409197 ada0 GPT (954G) 34 6 - free - (3.0K) 40 1024 1 freebsd-boot (512K) 1064 984 - free - (492K) 2048 4194304 2 freebsd-ufs (2.0G) 4196352 268435456 3 freebsd-swap (128G) 272631808 293601280 4 freebsd-ufs (140G) 566233088 20971520 5 freebsd-ufs (10G) 587204608 62914560 6 freebsd-ufs (30G) 650119168 1350290063 - free - (644G) "gpart show ada0" and "gpart show ada1" produce different output. And manualy: # gpart destroy -F ada0 ada0 destroyed [root@s46 ~]# gpart show ada1 =3D> 40 2000409184 ada1 GPT (954G) 40 1024 1 freebsd-boot (512K) 1064 984 - free - (492K) 2048 4194304 2 freebsd-ufs (2.0G) 4196352 268435456 3 freebsd-swap (128G) 272631808 293601280 4 freebsd-ufs (140G) 566233088 20971520 5 freebsd-ufs (10G) 587204608 62914560 6 freebsd-ufs (30G) 650119168 1350290056 - free - (644G) # gpart create -s GPT ada0 ada0 created # gpart add -t freebsd-boot -s 512K ada0 ada0p1 added # gpart add -t freebsd-ufs -s 2G -a 1m ada0 ada0p2 added # gpart add -t freebsd-swap -s 128G ada0 ada0p3 added # gpart add -t freebsd-ufs -s 140G ada0 ada0p4 added # gpart add -t freebsd-ufs -s 10G ada0 ada0p5 added # gpart add -t freebsd-ufs -s 30G ada0 ada0p6 added # gpart show ada0 =3D> 40 2000409184 ada0 GPT (954G) 40 1024 1 freebsd-boot (512K) 1064 984 - free - (492K) 2048 4194304 2 freebsd-ufs (2.0G) 4196352 268435456 3 freebsd-swap (128G) 272631808 293601280 4 freebsd-ufs (140G) 566233088 20971520 5 freebsd-ufs (10G) 587204608 62914560 6 freebsd-ufs (30G) 650119168 1350290056 - free - (644G) # gpart show ada1 =3D> 40 2000409184 ada1 GPT (954G) 40 1024 1 freebsd-boot (512K) 1064 984 - free - (492K) 2048 4194304 2 freebsd-ufs (2.0G) 4196352 268435456 3 freebsd-swap (128G) 272631808 293601280 4 freebsd-ufs (140G) 566233088 20971520 5 freebsd-ufs (10G) 587204608 62914560 6 freebsd-ufs (30G) 650119168 1350290056 - free - (644G) "gpart show ada0" and "gpart show ada1" produce same output. --=20 You are receiving this mail because: You are the assignee for the bug.=