From owner-freebsd-geom@freebsd.org Thu Mar 8 13:45:28 2018 Return-Path: Delivered-To: freebsd-geom@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7688CF32BF8 for ; Thu, 8 Mar 2018 13:45:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0C8657AFEA for ; Thu, 8 Mar 2018 13:45:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 4C01B22D63 for ; Thu, 8 Mar 2018 13:45:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w28DjRK2076258 for ; Thu, 8 Mar 2018 13:45:27 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w28DjRuB076257 for freebsd-geom@FreeBSD.org; Thu, 8 Mar 2018 13:45:27 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: freebsd-geom@FreeBSD.org Subject: [Bug 220391] "gpart resize" = panic Date: Thu, 08 Mar 2018 13:45:24 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: jqin@itti.pw X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-geom@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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 MIME-Version: 1.0 X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Mar 2018 13:45:28 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D220391 James Qin changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jqin@itti.pw --- Comment #4 from James Qin --- (In reply to Mariusz Zaborski from comment #3) I hit this bug as well, trying to resize da0p2 of a secondary disk that has= 3 partitions. Maybe I could answer your questions to help reproduce the error. - What is your root? (It was da3p5?) # my root is on another disk - Was da3p5 mounted? # the partition I tried to resize wasn't mounted - da3p5 was clean or there was a UFS there? (Did you do newfs before resize= ?) # newfs was ran on all the partitions on this disk before resize (freebsd-u= fs) - How much data you had on da3p5? # the resize partition is new and empty with 50G of space $ sudo gpart resize -i 2 -a 1M -s 25G da0 After kernel panic and rebooted manually, gpart in my case is showing resize was completed. gpart show da0 =3D> 40 625142368 da0 GPT (298G) 40 2008 - free - (1.0M) 2048 209715200 1 freebsd-ufs (100G) 209717248 52428800 2 freebsd-ufs (25G) 262146048 52428800 - free - (25G) 314574848 310566912 3 freebsd-ufs (148G) 625141760 648 - free - (324K) I hope this helps. --=20 You are receiving this mail because: You are the assignee for the bug.=