From owner-freebsd-geom@FreeBSD.ORG Tue Jun 26 22:30:28 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 B709E16A41F for ; Tue, 26 Jun 2007 22:30:28 +0000 (UTC) (envelope-from nico-freebsd-geom@schottelius.org) Received: from denkbrett.schottelius.org (gw.ptr-62-65-149-149.customer.ch.netstream.com [62.65.149.149]) by mx1.freebsd.org (Postfix) with ESMTP id D93A313C468 for ; Tue, 26 Jun 2007 22:30:27 +0000 (UTC) (envelope-from nico-freebsd-geom@schottelius.org) Received: by denkbrett.schottelius.org (Postfix, from userid 1000) id 1D71813A1A4; Wed, 27 Jun 2007 00:31:08 +0200 (CEST) Date: Wed, 27 Jun 2007 00:31:08 +0200 From: Nico -telmich- Schottelius To: freebsd-geom@freebsd.org Message-ID: <20070626223108.GA19980@schottelius.org> References: <20070626220914.GA11511@schottelius.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="6TrnltStXW4iwmi0" Content-Disposition: inline In-Reply-To: <20070626220914.GA11511@schottelius.org> User-Agent: echo $message | gpg -e $sender -s | netcat mailhost 25 X-Unix-Info: http://unix.schottelius.org/ X-Netzseite: http://nico.schottelius.org/ X-System-Info: denkbrett running Linux 2.6.21.3-denkbrett on i686 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: Tue, 26 Jun 2007 22:30:28 -0000 --6TrnltStXW4iwmi0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Just found that other mail, in which diskinfo was mentioned, which returned the following result to me: ddna045# diskinfo -v /dev/mirror/raid1 /dev/amrd1 /dev/amrd0 /dev/mirror/raid1 512 # sectorsize 146814270976 # mediasize in bytes (137G) 286746623 # mediasize in sectors /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. /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. Clearing it with dd does not work: ddna045# dd of=3D/dev/amrd0 if=3D/dev/zero bs=3D512 skip=3D286746623 count= =3D1 dd: /dev/amrd0: Operation not permitted The same also happens with gmirror not being loaded. The reason why I want to clear it is because the metadata on amrd0 has also a gmirror device named raid1, which is not in use anymore / should be created newly: GEOM_MIRROR: Device raid1 created (id=3D2125903367). GEOM_MIRROR: Device raid1: provider amrd1 detected. GEOM_MIRROR: Device raid1: provider amrd1 activated. GEOM_MIRROR: Device raid1: provider mirror/raid1 launched. GEOM_MIRROR: Device raid1 already configured. If I boot the system with amrd0s1a as /, amrd1 is detected as mirror/raid1. If I boot the system with mirror/raid1sa as /, amrd0 is detected as mirror/raid1. Which leads me to the situation that both times I boot from amrd0. My aim is to bootup the server from amrd1 as mirror/raid1 so I can boot the new system found on that harddisk and after that integrate amrd0 as the second disk into the raid. Perhaps someone has a hint for me a) why the dd is not allowed to work b) how to clear the metadata c) or how to achieve my aim to make amrd1 as mirror/raid1s1a available as / Sincerly Nico --=20 Think about Free and Open Source Software (FOSS). http://nico.schottelius.org/documentations/foss/the-term-foss/ PGP: BFE4 C736 ABE5 406F 8F42 F7CF B8BE F92A 9885 188C --6TrnltStXW4iwmi0 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFGgZOsuL75KpiFGIwRAgMaAKDpfZHFGPDVxEPfexXxEq3AfsSvaACdEoTh BQ/aReTMLeu7cMvZrObrOO0= =1ovh -----END PGP SIGNATURE----- --6TrnltStXW4iwmi0--