From owner-freebsd-geom@freebsd.org Sun Sep 18 01:40:58 2016 Return-Path: Delivered-To: freebsd-geom@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 34AEDBDD35D for ; Sun, 18 Sep 2016 01:40:58 +0000 (UTC) (envelope-from perryh@pluto.rain.com) Received: from agora.rdrop.com (agora.rdrop.com [IPv6:2607:f678:1010::34]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 03F5A170 for ; Sun, 18 Sep 2016 01:40:57 +0000 (UTC) (envelope-from perryh@pluto.rain.com) Received: from agora.rdrop.com (66@localhost [127.0.0.1]) by agora.rdrop.com (8.13.1/8.12.7) with ESMTP id u8I1etoD036408 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Sat, 17 Sep 2016 18:40:56 -0700 (PDT) (envelope-from perryh@pluto.rain.com) Received: (from uucp@localhost) by agora.rdrop.com (8.13.1/8.14.2/Submit) with UUCP id u8I1etrc036407 for freebsd-geom@freebsd.org; Sat, 17 Sep 2016 18:40:55 -0700 (PDT) (envelope-from perryh@pluto.rain.com) Received: from fbsd81 by pluto.rain.com (4.1/SMI-4.1-pluto-M2060407) id AA10601; Sat, 17 Sep 16 18:37:20 PDT Date: Sat, 17 Sep 2016 18:37:19 -0700 From: perryh@pluto.rain.com (Perry Hutchison) To: freebsd-geom@freebsd.org Subject: new partition on 10.3 i386 memstick disappearing on reboot Message-Id: <57ddefcf.jk4kZ2Kp+EcHfcFr%perryh@pluto.rain.com> User-Agent: nail 11.25 7/29/05 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Sep 2016 01:40:58 -0000 Trying here after not finding a solution on questions@ I dd'd FreeBSD-10.3-RELEASE-i386-memstick.img to a 4GB flash drive, and booted it into single-user mode where it appeared as da0. Then, to resize the GPT to the media: # gpart show da0 # gpart recover da0 # gpart show da0 which appeared to work: the second "gpart show" showed more free space than the first following the partitions. Subsequently: # gpart show da0 # showed 3 partitions and about 3GB of free space # gpart add -t freebsd-ufs da0 # reported "da0p4 added" (or similar) # gpart show da0 # showed 4 partitions including the new one, and # no free space # shutdown -r now after rebooting: # gpart show da0 # showed 3 partitions and about 3GB of free space, # the same as before the "gpart add" operation i.e. the new partition is no longer there. I tried several times, sometimes allowing the "gpart add" to do the operation immediately and other times specifying "-f x" followed by "gpart commit", and the new partition never survived a reboot. It is not a matter of the GPT somehow being silently read-only: I also created or modified labels on the 3 original partitions, sometimes before "gpart add" and sometimes between the add and the reboot. The label operations always survived the reboot, but the partition creation never did. There is pretty clearly a bug of some sort here: if partition creation is somehow forbidden in this situation I should be getting an error message rather than having the operation appear to succeed -- on one occasion I even (successfully) ran newfs on it -- only to see the new partition disappear at reboot. How do I create a partition, that will survive reboot, in the free space at the end of the i386 memstick? BTW I also discovered in the course of this that "gpart commit" with no pending operations misleadingly says "Operation not permitted" rather than "Nothing to commit" or "No pending operations". From owner-freebsd-geom@freebsd.org Sun Sep 18 11:47:32 2016 Return-Path: Delivered-To: freebsd-geom@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B030ABDFD15 for ; Sun, 18 Sep 2016 11:47:32 +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 mx1.freebsd.org (Postfix) with ESMTPS id 9F90DD9B for ; Sun, 18 Sep 2016 11:47:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u8IBlVKT013302 for ; Sun, 18 Sep 2016 11:47:32 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-geom@FreeBSD.org Subject: [Bug 162690] [geom] [patch] gpart label changes only take effect after a reboot Date: Sun, 18 Sep 2016 11:47:32 +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: pi@FreeBSD.org X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: freebsd-geom@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc version short_desc 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.23 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Sep 2016 11:47:32 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D162690 Kurt Jaeger changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |pi@FreeBSD.org Version|unspecified |CURRENT Summary|[geom] gpart label changes |[geom] [patch] gpart label |only take effect after a |changes only take effect |reboot |after a reboot --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-geom@freebsd.org Sun Sep 18 11:51:45 2016 Return-Path: Delivered-To: freebsd-geom@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3BA21BDFEF5 for ; Sun, 18 Sep 2016 11:51:45 +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 mx1.freebsd.org (Postfix) with ESMTPS id 2B403BC for ; Sun, 18 Sep 2016 11:51:45 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u8IBpiUF025076 for ; Sun, 18 Sep 2016 11:51:45 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-geom@FreeBSD.org Subject: [Bug 162690] [geom] [patch] gpart label changes only take effect after a reboot Date: Sun, 18 Sep 2016 11:51:45 +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: pi@FreeBSD.org X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: Normal 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.23 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Sep 2016 11:51:45 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D162690 Kurt Jaeger changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |marck@FreeBSD.org --- Comment #12 from Kurt Jaeger --- *** Bug 177080 has been marked as a duplicate of this bug. *** --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-geom@freebsd.org Sun Sep 18 12:47:16 2016 Return-Path: Delivered-To: freebsd-geom@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DD409BDE5B6 for ; Sun, 18 Sep 2016 12:47:16 +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 mx1.freebsd.org (Postfix) with ESMTPS id CCB42305 for ; Sun, 18 Sep 2016 12:47:16 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u8IClGbf080974 for ; Sun, 18 Sep 2016 12:47:16 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-geom@FreeBSD.org Subject: [Bug 162690] [geom] [patch] gpart label changes only take effect after a reboot Date: Sun, 18 Sep 2016 12:47:16 +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: patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: pi@FreeBSD.org X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: freebsd-geom@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords 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.23 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Sep 2016 12:47:17 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D162690 Kurt Jaeger changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-geom@freebsd.org Sun Sep 18 14:45:35 2016 Return-Path: Delivered-To: freebsd-geom@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0B71FBDFA1B for ; Sun, 18 Sep 2016 14:45:35 +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 mx1.freebsd.org (Postfix) with ESMTPS id EED1016C for ; Sun, 18 Sep 2016 14:45:34 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u8IEjYYn036992 for ; Sun, 18 Sep 2016 14:45:34 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-geom@FreeBSD.org Subject: [Bug 162690] [geom] [patch] gpart label changes only take effect after a reboot Date: Sun, 18 Sep 2016 14:45:34 +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: patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: ben.rubson@gmail.com X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: freebsd-geom@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created 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.23 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Sep 2016 14:45:35 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D162690 --- Comment #13 from Ben RUBSON --- Created attachment 174918 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D174918&action= =3Dedit patch to handle gpart add/modify automatically (thx to Andrey) --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-geom@freebsd.org Sun Sep 18 14:48:22 2016 Return-Path: Delivered-To: freebsd-geom@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5D3C7BDFA9F for ; Sun, 18 Sep 2016 14:48:22 +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 mx1.freebsd.org (Postfix) with ESMTPS id 344BB1FC for ; Sun, 18 Sep 2016 14:48:22 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u8IEmLlT041357 for ; Sun, 18 Sep 2016 14:48:22 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-geom@FreeBSD.org Subject: [Bug 162690] [geom] [patch] gpart label changes only take effect after a reboot Date: Sun, 18 Sep 2016 14:48:22 +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: patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: ben.rubson@gmail.com X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: freebsd-geom@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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.23 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Sep 2016 14:48:22 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D162690 --- Comment #14 from Ben RUBSON --- So, 2 patches attached. The gpart label can be refreshed automatically (when they are added or modified), thanks to a patch by Andrey (many thanks Andrey !). There is however a case where glabel refresh is needed. Let's take this example (which is my use case) : # gpart create -s gpt da0 # gpart add -t freebsd-zfs -s 2048G -a 1m -l mygptlabel da0 # glabel label myglabellabel da0p1 # cat /etc/ctl.conf target iqn.2012-06.srv:t1 { lun 0 { path /dev/gpt/mygptlabel } } So as you can see /dev/gpt/mygptlabel is an iscsi target. And this target contains a generic label "myglabellabel". /dev/label/myglabellabel will show up on initiator side, perfect, this is w= hat we want. However, when ctld is stopped, /dev/label/myglabellabel will not show up ag= ain on target. We then need to "glabel refresh" to make this label visible again. Same issue if for example we add /dev/gpt/mygptlabel to as zpool. /dev/label/myglabellabel will disappear because ZFS holds the disk, which is expected. However, when we remove the disks from the zpool, /dev/label/myglabellabel = will not show up again. Here again we need to "glabel refresh" to make this label visible again. I then think that both patches may be required. The "glabel refresh" can handle all cases in a manual fashion. The gpart patch can only handle gpart add/modify automatically. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-geom@freebsd.org Mon Sep 19 21:28:51 2016 Return-Path: Delivered-To: freebsd-geom@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2CA01BE1E60 for ; Mon, 19 Sep 2016 21:28:51 +0000 (UTC) (envelope-from a@carniajeu.com) Received: from mail-lf0-x22e.google.com (mail-lf0-x22e.google.com [IPv6:2a00:1450:4010:c07::22e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B01EB108C for ; Mon, 19 Sep 2016 21:28:50 +0000 (UTC) (envelope-from a@carniajeu.com) Received: by mail-lf0-x22e.google.com with SMTP id g62so119780962lfe.3 for ; Mon, 19 Sep 2016 14:28:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=carniajeu-com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:cc; bh=N1/20+EF0BEgEutxQ0PsVYsi8h7vJ9TasNO9B3IVe8g=; b=vleeha5qW3gweHiMgHy1kLtXmlI8RooZlMkJ19uce1Opubd1qWlF+qx43VASz+SUIc d3LkUB57PSd083ebqiJih6glozl6crw5uHsxBPWCR3ARAx7G9TT5EdDdliI3/JmpPzdi 04QlsD/FBG4er4nKChimwJGQDETYc4ZASqYI9OFoVzwBnxiIquo2PJmqrksLT3e2kmFP sNP5IJJkLL1hhxYM9JY+rpLIooEevhFa9rj+yffZl+w2Wlt1/mNzM7eZTlDdBiUl+5aX /KhhhFOMRxaI0QYoKpcyB9G9BTZ3vnQd3WjqrSX6zOjn8eVzBird9igDPLSKRRJ4oEV7 p5Eg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:cc; bh=N1/20+EF0BEgEutxQ0PsVYsi8h7vJ9TasNO9B3IVe8g=; b=HVwQf/0n4xxBzh5AweIozP0wjADSzsF0zF0xs1MGJvT+R7dfD6/bbzgLc1vFQE3soO 6kaRHIO0l7KjCNuNpQCzd6QM7is+tfCnbLfw/Hpi/6wcF/Jdwvgkl1iCCJiPtPyfddMs IGnB3o6/+hTWjy518jqspI9kofr7qsSI+r86gSrrs2csOH1eulQpZtrYLetf0XoFX1I4 xm+ImQ4UI/dxTSmB96pPYJ2UNiu/FTKcOLr4ULCrhoQqFW76jlJKVPfiM8xRGckg/AJN xgzX3jjO+kXT+4uGk/0PTQp2nJ/vOqiAuRDQR/z8O8mEeLoext4e3iWjqG/ha0M/cELE haWw== X-Gm-Message-State: AE9vXwPzuSLSTmSDQU+H1tOY60tjYjU4QAcz8V3JqgVDlEoiliM43zeP/tiZkERQREbqusqUSu/rMOu+TVS7ng== X-Received: by 10.25.91.84 with SMTP id p81mr11247426lfb.39.1474320527322; Mon, 19 Sep 2016 14:28:47 -0700 (PDT) MIME-Version: 1.0 Sender: a@carniajeu.com Received: by 10.25.217.145 with HTTP; Mon, 19 Sep 2016 14:28:26 -0700 (PDT) X-Originating-IP: [46.53.195.151] In-Reply-To: <57ddefcf.jk4kZ2Kp+EcHfcFr%perryh@pluto.rain.com> References: <57ddefcf.jk4kZ2Kp+EcHfcFr%perryh@pluto.rain.com> From: Alaksiej Date: Tue, 20 Sep 2016 00:28:26 +0300 X-Google-Sender-Auth: wfcWMBsSSQ1DsMIWaC_BuK5nkZ4 Message-ID: Subject: Re: new partition on 10.3 i386 memstick disappearing on reboot Cc: freebsd-geom Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Sep 2016 21:28:51 -0000 Wait, why do you use 'recover' to resize? On Sun, Sep 18, 2016 at 4:37 AM, Perry Hutchison wrote: > Trying here after not finding a solution on questions@ > > I dd'd FreeBSD-10.3-RELEASE-i386-memstick.img to a 4GB flash drive, > and booted it into single-user mode where it appeared as da0. Then, > to resize the GPT to the media: > > # gpart show da0 > # gpart recover da0 > # gpart show da0 > > which appeared to work: the second "gpart show" showed more free > space than the first following the partitions. Subsequently: > > # gpart show da0 # showed 3 partitions and about 3GB of free space > # gpart add -t freebsd-ufs da0 # reported "da0p4 added" (or similar) > # gpart show da0 # showed 4 partitions including the new one, and > # no free space > # shutdown -r now > > after rebooting: > > # gpart show da0 # showed 3 partitions and about 3GB of free space, > # the same as before the "gpart add" operation > > i.e. the new partition is no longer there. > > I tried several times, sometimes allowing the "gpart add" to do the > operation immediately and other times specifying "-f x" followed by > "gpart commit", and the new partition never survived a reboot. > > It is not a matter of the GPT somehow being silently read-only: > I also created or modified labels on the 3 original partitions, > sometimes before "gpart add" and sometimes between the add and > the reboot. The label operations always survived the reboot, but > the partition creation never did. > > There is pretty clearly a bug of some sort here: if partition > creation is somehow forbidden in this situation I should be getting > an error message rather than having the operation appear to succeed > -- on one occasion I even (successfully) ran newfs on it -- only to > see the new partition disappear at reboot. > > How do I create a partition, that will survive reboot, in the free > space at the end of the i386 memstick? > > BTW I also discovered in the course of this that "gpart commit" with > no pending operations misleadingly says "Operation not permitted" > rather than "Nothing to commit" or "No pending operations". > _______________________________________________ > freebsd-geom@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-geom > To unsubscribe, send any mail to "freebsd-geom-unsubscribe@freebsd.org" > From owner-freebsd-geom@freebsd.org Mon Sep 19 21:39:51 2016 Return-Path: Delivered-To: freebsd-geom@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5A7C6BE017C for ; Mon, 19 Sep 2016 21:39:51 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [94.124.105.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1ED3717E1 for ; Mon, 19 Sep 2016 21:39:50 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from elsa.codelab.cz (localhost [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id BA0962847A; Mon, 19 Sep 2016 23:39:47 +0200 (CEST) Received: from illbsd.quip.test (ip-86-49-16-209.net.upcbroadband.cz [86.49.16.209]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id 257DD28479; Mon, 19 Sep 2016 23:39:47 +0200 (CEST) Subject: Re: new partition on 10.3 i386 memstick disappearing on reboot To: Alaksiej Cc: freebsd-geom References: <57ddefcf.jk4kZ2Kp+EcHfcFr%perryh@pluto.rain.com> From: Miroslav Lachman <000.fbsd@quip.cz> Message-ID: <57E05B22.1030108@quip.cz> Date: Mon, 19 Sep 2016 23:39:46 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:42.0) Gecko/20100101 Firefox/42.0 SeaMonkey/2.39 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Sep 2016 21:39:51 -0000 Alaksiej wrote on 09/19/2016 23:28: > Wait, why do you use 'recover' to resize? It is used to place right copy of primary GPT at the end of the media (*.img file was usually prepared for different size than destination USB flash disk) Miroslav Lachman From owner-freebsd-geom@freebsd.org Tue Sep 20 20:28:53 2016 Return-Path: Delivered-To: freebsd-geom@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D8B97BE3D83 for ; Tue, 20 Sep 2016 20:28:53 +0000 (UTC) (envelope-from a@carniajeu.com) Received: from mail-lf0-x233.google.com (mail-lf0-x233.google.com [IPv6:2a00:1450:4010:c07::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 84DC5691 for ; Tue, 20 Sep 2016 20:28:53 +0000 (UTC) (envelope-from a@carniajeu.com) Received: by mail-lf0-x233.google.com with SMTP id h127so25002056lfh.0 for ; Tue, 20 Sep 2016 13:28:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=carniajeu-com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=N1lWh9z5a2cmQayMtP7oiAh+0QcPEwkUqln2VsNco5o=; b=gevHyaDSKKCPgZ6RTFy8LIP5xA6jRRNAPPegp3iY5oEEe65TNJ07v7NWm05JnCSSgj f5GPYEtKfCAQkq3zIxaxc2rZHzzz1KXxuJhM/2ywKUtkXNmzjAE33W0YtfaStdKbYYyl +Sl5vc3O/h3krGDMBBYvQdB/3D1HqxvU+nPtqPuCVefdtoAHRRRma6H3dJtmHf1T6Hga HhDChv3SPevbZdWrpv14kX0OnktUndk+tBfJia+VQ3ljAQMYOcZ2jfrQoPW3Zq7CRoTd EiUm1ECJ5dd+Stx2xJYP2KD9/nrxhIQaJL8UdLbo3tEcRZtCyLLjds8Oq1Vx3cRtWPs/ C8Ug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=N1lWh9z5a2cmQayMtP7oiAh+0QcPEwkUqln2VsNco5o=; b=V5LnQL/5VdTsMLFi3cJH0FhHDTmt/Z6gs+4rpwdmrbNc9EMRGwnghumytpmV/dDo2h zgyIFSp+jYX86wbK8vELB1RZZGYKhF4QBdIASUDfh4c8rJWxhhaN2XBbB03u1x3xGJKL OvuY5G/sOL6HDbHWCjE+39mDzrcRwmdomMSeK5ERLC67reamL5wodxO/GNp35IPBakDv ZAqm6+W2d5h08Je2MmneU5e4Z4GNB2F+spy/0cKHxESqQwNzTrtoTSVRQBdmedMymx7I MWQzieu6BwSEITqJjHUlRADYtKYjjRT6FBo4Fu2lPJdzf73XfoR6n0smM739EjO2VrEZ uQrg== X-Gm-Message-State: AE9vXwPPLbefPr7zzKnTTsWZym71ZTZ//0PH5kg07pONpbqoElQot5U0OR35NLZTMffphUx63Ni8/O8UKqw2fg== X-Received: by 10.25.37.18 with SMTP id l18mr14827837lfl.88.1474403331350; Tue, 20 Sep 2016 13:28:51 -0700 (PDT) MIME-Version: 1.0 Sender: a@carniajeu.com Received: by 10.25.217.145 with HTTP; Tue, 20 Sep 2016 13:28:30 -0700 (PDT) X-Originating-IP: [37.17.112.181] In-Reply-To: <57E05B22.1030108@quip.cz> References: <57ddefcf.jk4kZ2Kp+EcHfcFr%perryh@pluto.rain.com> <57E05B22.1030108@quip.cz> From: Alaksiej Date: Tue, 20 Sep 2016 23:28:30 +0300 X-Google-Sender-Auth: YYkGj49KuDotaodwYIDzhEOPyQs Message-ID: Subject: Re: new partition on 10.3 i386 memstick disappearing on reboot To: Miroslav Lachman <000.fbsd@quip.cz> Cc: freebsd-geom Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Sep 2016 20:28:53 -0000 Ah, now I see, dekuji Miroslav! On Tue, Sep 20, 2016 at 12:39 AM, Miroslav Lachman <000.fbsd@quip.cz> wrote: > Alaksiej wrote on 09/19/2016 23:28: > >> Wait, why do you use 'recover' to resize? >> > > It is used to place right copy of primary GPT at the end of the media > (*.img file was usually prepared for different size than destination USB > flash disk) > > Miroslav Lachman >