From owner-freebsd-stable@FreeBSD.ORG Fri Mar 12 18:32:20 2010 Return-Path: Delivered-To: freebsd-stable@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6F87F1065670 for ; Fri, 12 Mar 2010 18:32:20 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [94.124.105.4]) by mx1.freebsd.org (Postfix) with ESMTP id 30F578FC12 for ; Fri, 12 Mar 2010 18:32:17 +0000 (UTC) Received: from elsa.codelab.cz (localhost.codelab.cz [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id 56DEF19E023 for ; Fri, 12 Mar 2010 19:32:16 +0100 (CET) Received: from [192.168.1.2] (r5bb235.net.upc.cz [86.49.61.235]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id 1574F19E019 for ; Fri, 12 Mar 2010 19:32:14 +0100 (CET) Message-ID: <4B9A88AD.1020601@quip.cz> Date: Fri, 12 Mar 2010 19:32:13 +0100 From: Miroslav Lachman <000.fbsd@quip.cz> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9.1.8) Gecko/20100205 SeaMonkey/2.0.3 MIME-Version: 1.0 To: freebsd-stable@FreeBSD.org Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Geom not found: "gm0" / Failed to write sector zero X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Mar 2010 18:32:20 -0000 I just installed 7.3-RC2 amd64 on new server. I created slice s1 (80GB on disk ad4 (500GB), then partitions for system (/, swap, /var, /usr, /tmp) by sysinstall. After base install I created gmirror gm0 as usual (I did it many times). Now I am no longer in datacenter and have only ssh access to this server and I need to create slice s2 with some partitions for data storage, but fdisk failed. fdisk -u /dev/mirror/gm0 At the end, I got this error: Should we write new partition table? [n] y fdisk: Geom not found: "gm0" fdisk: Failed to write sector zero Fdisk failed even if I used sysctl kern.geom.debugflags=16 Question #1 - why 'Geom not found: "gm0"'? Question #2 - is there any way to create slices + partitions on unused space if system is booted from this device? Or is the only way to boot it from some LiveFS / fixit? I found the same question on this list, but without reply http://lists.freebsd.org/pipermail/freebsd-stable/2009-June/050855.html I hope somebody can help / explain it. Miroslav Lachman