From owner-freebsd-geom@FreeBSD.ORG Tue May 12 19:11:00 2015 Return-Path: Delivered-To: freebsd-geom@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9E6E2B63 for ; Tue, 12 May 2015 19:11:00 +0000 (UTC) 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 888D519F4 for ; Tue, 12 May 2015 19:11:00 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id t4CJB0qv002551 for ; Tue, 12 May 2015 19:11:00 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-geom@FreeBSD.org Subject: [Bug 162690] [geom] gpart label changes only take effect after a reboot Date: Tue, 12 May 2015 19:11:00 +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: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: xenomorph@gmail.com X-Bugzilla-Status: In Progress X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: freebsd-geom@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit 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.20 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 May 2015 19:11:00 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=162690 --- Comment #4 from Xenomorph --- This seems to still be an issue as of 10.1-RELEASE-p9 in May of 2015. Has this really been open since 2011? I have partition 1 named "test1" on da1. /dev/da1p1 is not mounted or in use in any way. # gpart list | grep label label: test1 # ll /dev/gpt crw-r----- 1 root operator 0x72 May 12 13:44 test1 I want to rename it to "disk1" # gpart modify -i 1 -l "disk1" da1 da1 modified # gpart list | grep label label: disk1 # ll /dev/gpt crw-r----- 1 root operator 0x72 May 12 13:44 test1 The partition label has been changed, but the contents of /dev/gpt doesn't update unto I reboot the system. I've found that if I *delete* the partition, then remake it with the new label, then /dev/gpt will show the correct labels. Even if the update of /dev/gpt isn't automatic, should there a command or something to manually trigger its update? On servers with a lot of drive bays, the slot order can be changed on startup. I haven't found a way to make "mfisyspdX" remain consistent (even with /boot/device.hints), to being able to easily manage labels can be a big deal. -- You are receiving this mail because: You are the assignee for the bug.