From owner-freebsd-geom@FreeBSD.ORG Wed Jun 27 07:12:33 2007 Return-Path: X-Original-To: freebsd-geom@freebsd.org Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 36A2B16A400 for ; Wed, 27 Jun 2007 07:12:33 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (arm132.internetdsl.tpnet.pl [83.17.198.132]) by mx1.freebsd.org (Postfix) with ESMTP id C7DF313C4C5 for ; Wed, 27 Jun 2007 07:12:32 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id DAAC4487F7; Wed, 27 Jun 2007 09:12:31 +0200 (CEST) Received: from localhost (154.81.datacomsa.pl [195.34.81.154]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id A9BA14569A; Wed, 27 Jun 2007 09:12:26 +0200 (CEST) Date: Wed, 27 Jun 2007 09:12:26 +0200 From: Pawel Jakub Dawidek To: Nico -telmich- Schottelius Message-ID: <20070627071225.GD21749@garage.freebsd.pl> References: <20070626220914.GA11511@schottelius.org> <20070626223108.GA19980@schottelius.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="zbGR4y+acU1DwHSi" Content-Disposition: inline In-Reply-To: <20070626223108.GA19980@schottelius.org> X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 7.0-CURRENT i386 User-Agent: mutt-ng/devel-r804 (FreeBSD) X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail.garage.freebsd.pl X-Spam-Level: X-Spam-Status: No, score=-2.6 required=3.0 tests=BAYES_00 autolearn=ham version=3.0.4 Cc: freebsd-geom@freebsd.org Subject: Re: Size of metadate? X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Jun 2007 07:12:33 -0000 --zbGR4y+acU1DwHSi Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jun 27, 2007 at 12:31:08AM +0200, Nico -telmich- Schottelius wrote: > Just found that other mail, in which diskinfo was mentioned, which > returned the following result to me: >=20 > ddna045# diskinfo -v /dev/mirror/raid1 /dev/amrd1 /dev/amrd0 > /dev/mirror/raid1 > 512 # sectorsize > 146814270976 # mediasize in bytes (137G) > 286746623 # mediasize in sectors >=20 > /dev/amrd1 > 512 # sectorsize > 146814271488 # mediasize in bytes (137G) > 286746624 # mediasize in sectors > 17849 # Cylinders according to firmware. > 255 # Heads according to firmware. > 63 # Sectors according to firmware. >=20 > /dev/amrd0 > 512 # sectorsize > 146814271488 # mediasize in bytes (137G) > 286746624 # mediasize in sectors > 17849 # Cylinders according to firmware. > 255 # Heads according to firmware. > 63 # Sectors according to firmware. >=20 > Clearing it with dd does not work: >=20 > ddna045# dd of=3D/dev/amrd0 if=3D/dev/zero bs=3D512 skip=3D286746623 coun= t=3D1 > dd: /dev/amrd0: Operation not permitted If you have gmirror configured you first need to stop it with 'gmirror stop raid1' command and then try to write to its components, but you should use 'seek=3D286746623' instead of 'skip=3D286746623'. > The same also happens with gmirror not being loaded. That's strange. 'sysctl -b kern.geom.confxml' can give us a hint who keeps it open. --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --zbGR4y+acU1DwHSi Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) iD8DBQFGgg3ZForvXbEpPzQRAonhAJ92TW3XHLqRcE26fCAr79hLM4M6SwCfWTDd XkZgTbGMhOktgSDWJk6LOs4= =nQu1 -----END PGP SIGNATURE----- --zbGR4y+acU1DwHSi--