From owner-freebsd-geom@FreeBSD.ORG Sat Apr 29 08:53:21 2006 Return-Path: X-Original-To: geom@freebsd.org Delivered-To: freebsd-geom@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6685E16A400 for ; Sat, 29 Apr 2006 08:53:21 +0000 (UTC) (envelope-from grafan@gmail.com) Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.200]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8E20043D48 for ; Sat, 29 Apr 2006 08:53:20 +0000 (GMT) (envelope-from grafan@gmail.com) Received: by nz-out-0102.google.com with SMTP id i28so2084245nzi for ; Sat, 29 Apr 2006 01:53:19 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=RTW6ngCZtjM8fSNkcIQZ8fsJN3Nn9+eQcEgfonPjC/WUuF5m0kwIajVaBLm3PM3fz9HzLZCsNEQ+/boUU/mCfwR4AfVtazDS0pXL5issU4ZF+qd17dgVQ4ONyP+HIy0NDs0YafEmPwcI0eCOI9nYqnNb0u3zCS/72Qt6yskYJ8E= Received: by 10.37.20.3 with SMTP id x3mr3404571nzi; Sat, 29 Apr 2006 01:53:19 -0700 (PDT) Received: by 10.36.24.17 with HTTP; Sat, 29 Apr 2006 01:53:19 -0700 (PDT) Message-ID: <6eb82e0604290153o388d8e53jff05cc04fe85ad3f@mail.gmail.com> Date: Sat, 29 Apr 2006 04:53:19 -0400 From: "Rong-En Fan" To: "Pawel Jakub Dawidek" In-Reply-To: <20060429071501.GA4896@garage.freebsd.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <6eb82e0604281734v37c6eca0q8daa5dbca66f58d7@mail.gmail.com> <20060429071501.GA4896@garage.freebsd.pl> Cc: geom@freebsd.org Subject: Re: v_vfs_done error = 1 on gconcat device 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: Sat, 29 Apr 2006 08:53:21 -0000 On 4/29/06, Pawel Jakub Dawidek wrote: > On Fri, Apr 28, 2006 at 08:34:03PM -0400, Rong-En Fan wrote: > +> Hi Pawel, > +> > +> I'm running RELENG_6 around Apr 6. Sometimes, I saw lots of > +> > +> g_vfs_done():concat/tmp[WRITE(offset=3D25658605568, length=3D114688)]e= rror =3D 1 > +> g_vfs_done():concat/tmp[WRITE(offset=3D25658605568, length=3D114688)]e= rror =3D 1 > +> g_vfs_done():concat/tmp[WRITE(offset=3D25658605568, length=3D114688)]e= rror =3D 1 > +> g_vfs_done():concat/tmp[WRITE(offset=3D25658605568, length=3D114688)]e= rror =3D 1 > +> g_vfs_done():concat/tmp[WRITE(offset=3D25658605568, length=3D114688)]e= rror =3D 1 > +> > +> in my console. The concat/tmp is consist of two disk: > +> > +> Geom name: tmp > +> State: UP > +> Status: Total=3D2, Online=3D2 > +> Type: AUTOMATIC > +> ID: 2047271624 > +> Providers: > +> 1. Name: concat/tmp > +> Mediasize: 62055485440 (58G) > +> Sectorsize: 512 > +> Mode: r1w1e1 > +> Consumers: > +> 1. Name: da0s1d > +> Mediasize: 25658654720 (24G) > +> Sectorsize: 512 > +> Mode: r1w1e2 > +> Start: 0 > +> End: 25658654208 > +> 2. Name: da1s1e > +> Mediasize: 36396831744 (34G) > +> Sectorsize: 512 > +> Mode: r1w1e2 > +> Start: 25658654208 > +> End: 62055485440 > +> > +> If the offset in the console is in the same unit as "Mediasize" in gco= ncat list, > +> then, it looks like it tries to write something that crossing two > +> physical disks. > +> IIRC, everytime I see those messages, the offset is really close to th= e > +> end of the first disk. > +> > +> Any ideas? > > It works here: > > # mdconfig -a -t malloc -s 25658654720b -u 0 > # mdconfig -a -t malloc -s 36396831744b -u 1 > # gconcat label foo md0 md1 > # sysctl kern.geom.concat.debug=3D2 > # ./dwrite /dev/concat/foo 25658605568 114688 > > The console output: > > GEOM_CONCAT[2]: Request received. concat/foo[WRITE(offset=3D25658= 605568, length=3D114688)] > GEOM_CONCAT[2]: Sending request. md0[WRITE(offset=3D25658605568, = length=3D48640)] > GEOM_CONCAT[2]: Sending request. md1[WRITE(offset=3D0, length=3D6= 6048)] > > I'd more expect that your partitions are not properly configured. Can > you show me the output of "bsdlabel /dev/da1s1"? Hi, # /dev/da1s1: 8 partitions: # size offset fstype [fsize bsize bps/cpg] c: 71087562 0 unused 0 0 # "raw" part, don't= edit e: 71087562 0 4.2BSD 2048 16384 28552 Errrr, should the offset of first partition start from offset 16? evil sysinstall... If so, then I dont think I have much to do except backup, fix the offset, create a new gconcat, and restore? Thanks, Rong-En Fan