From owner-freebsd-stable@FreeBSD.ORG Thu Apr 6 08:13:22 2006 Return-Path: X-Original-To: stable@freebsd.org Delivered-To: freebsd-stable@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B84A016A420 for ; Thu, 6 Apr 2006 08:13:22 +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 A5E9343D49 for ; Thu, 6 Apr 2006 08:13:21 +0000 (GMT) (envelope-from pjd@garage.freebsd.pl) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id 7957251D2C; Thu, 6 Apr 2006 10:13:19 +0200 (CEST) Received: from localhost (pjd.wheel.pl [10.0.1.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id 627265174E; Thu, 6 Apr 2006 10:13:13 +0200 (CEST) Date: Thu, 6 Apr 2006 10:12:13 +0200 From: Pawel Jakub Dawidek To: Mike Jakubik Message-ID: <20060406081213.GA5578@garage.freebsd.pl> References: <440D74B3.3030309@vwsoft.com> <200603070939.30032.joao@matik.com.br> <54559.192.168.0.10.1141751042.squirrel@webmail.sd73.bc.ca> <20060316160813.GA15720@nowhere> <442033A2.2030208@rogers.com> <442043D0.6090206@centtech.com> <4432EA5E.3060003@rogers.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="NzB8fVQJ5HfG6fxh" Content-Disposition: inline In-Reply-To: <4432EA5E.3060003@rogers.com> X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 7.0-CURRENT i386 User-Agent: mutt-ng/devel-r535 (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=-5.9 required=3.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.0.4 Cc: stable@freebsd.org, Eric Anderson , Craig Boston Subject: Re: gmirror on existing filesystem (was Fresh install on gmirror'ed disks?) 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: Thu, 06 Apr 2006 08:13:22 -0000 --NzB8fVQJ5HfG6fxh Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Apr 04, 2006 at 05:51:26PM -0400, Mike Jakubik wrote: +> >>>Can someone with knowledge of the UFS internals please confirm one way +> >>>or the other if this is dangerous or not? +> >>> =20 +> >> +> >>I'm curious to know this as well, as i have some systems using gmirror= , that were setup in this fashion. Could someone knowledgeable on the matte= r shed some light? +> > +> > +> >I've gmirrored existing disks/slices before, and it's worked fine. I'm= not 100% certain about all cases, but it's possible that the filesystem co= uld be right up against=20 +> >the last block of the partition, and it could get stomped on I suppose. +> > +> >I'm not sure what this command tells you for sure, but it dumps the las= t block of a slice, or disk, or whatever: +> > +> > +> >dd if=3D/dev/ad0s3a iseek=3D`diskinfo ad0s3a | perl -ne '@d =3D split; = print ($d[2]/$d[1] - 1)'` count=3D512 | hexdump +>=20 +> Could someone provide an authoritative answer to this please? Pawel, it = would be nice to see some support for your own code from you. This is a ver= y easy method to create a=20 +> mirror on an existing system, but if its going to cause problems then it= s useless (All the more reason for geom enabled installer). I can't give you an authoritative answer, because I don't know UFS internals so well. All I know is that it (UFS) thinks the last sector is available and may want to use it at some point getting EIO then. I'm not using this method, but I've heard of many people using it without problems. Speaking about installer. I don't think I'll be able to add configuration of my GEOM classes to the sysinstall in the near future (and I hope never - I'd prefer to wait for a new installer). One can still see how many sectors exactly has the partition he is going to create file system on and add additional newfs(8) flag '-s '. --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --NzB8fVQJ5HfG6fxh Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFENM1dForvXbEpPzQRAnLcAJ9OvO17F9jmwCuRZqWwgT7RjpDthQCfemwB E8GLBVAOHMsU1UZXASauYsk= =ERHb -----END PGP SIGNATURE----- --NzB8fVQJ5HfG6fxh--