From owner-freebsd-fs@FreeBSD.ORG Fri Apr 23 01:09:02 2010 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1ECE7106566B for ; Fri, 23 Apr 2010 01:09:02 +0000 (UTC) (envelope-from davidn04@gmail.com) Received: from mail-qy0-f181.google.com (mail-qy0-f181.google.com [209.85.221.181]) by mx1.freebsd.org (Postfix) with ESMTP id C4E828FC12 for ; Fri, 23 Apr 2010 01:09:01 +0000 (UTC) Received: by mail-qy0-f181.google.com with SMTP id 11so10684260qyk.13 for ; Thu, 22 Apr 2010 18:09:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:received:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=guhybTC85awMpoZNQMf5Lm5si4fcS0n7FAS6CH7/2Ro=; b=v+EUdpmu9eMP2gZSJsmRx4eoZv6JK0tif1Nd06mYMM1SngcLpcBL7ubpEuySgXKVh5 XW8IAr1oriiGG9TjIjbz87RG7PQzvkUQxlknUmTQBqGTBhXY1/PnmdgegZGNyNywkQjm 10/Evo/GRd6me30pwsf4gnvKVSt/PpJfPF0wM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=bnp9h+wZzagnXicDQ//s238Efqz8OptLvJCWCLgxroxJ0x9CRAKJX7XCF/weNPh9Tz j8+aLD1iUunGfe5XdjLnQK3XwvuR/r7YFqCnsfdUu3Plvqu0m4d84PlNxfCALfcXMpQ6 ej5qUVY/4QAfnCws7TDAKmzBF84GHElFfFjGg= MIME-Version: 1.0 Received: by 10.229.87.142 with HTTP; Thu, 22 Apr 2010 18:09:01 -0700 (PDT) In-Reply-To: References: <20100418235428.GC4620@duncan.reilly.home> <20100420234447.GB1737@garage.freebsd.pl> <20100421011834.GA24928@duncan.reilly.home> <20100421024803.GA25701@duncan.reilly.home> <20100421085228.GA27892@duncan.reilly.home> <20100421095054.GA28619@duncan.reilly.home> Date: Fri, 23 Apr 2010 11:09:01 +1000 Received: by 10.229.190.209 with SMTP id dj17mr6929302qcb.52.1271984941411; Thu, 22 Apr 2010 18:09:01 -0700 (PDT) Message-ID: From: David N To: Andrew Reilly Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-fs@freebsd.org Subject: Re: gjournal: what is it good for? X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Apr 2010 01:09:02 -0000 On 21 April 2010 21:47, David N wrote: > On 21 April 2010 19:50, Andrew Reilly wrote: >> Hi David, >> >> On Wed, Apr 21, 2010 at 07:16:08PM +1000, David N wrote: >>> Can you show me a print out of >>> gjournal list >> >> here: >> >> >> Geom name: gjournal 827322917 >> ID: 827322917 >> Providers: >> 1. Name: mirror/gm0e.journal >> =A0 Mediasize: 981949479936 (915G) >> =A0 Sectorsize: 512 >> =A0 Mode: r1w1e1 >> Consumers: >> 1. Name: mirror/gm0e >> =A0 Mediasize: 983023222272 (916G) >> =A0 Sectorsize: 512 >> =A0 Mode: r1w1e1 >> =A0 Jend: 983023221760 >> =A0 Jstart: 981949479936 >> =A0 Role: Data,Journal >> >> Geom name: gjournal 1843456033 >> ID: 1843456033 >> Providers: >> 1. Name: ad8s1a.journal >> =A0 Mediasize: 1499228127232 (1.4T) >> =A0 Sectorsize: 512 >> =A0 Mode: r1w1e1 >> Consumers: >> 1. Name: ad8s1a >> =A0 Mediasize: 1500301869568 (1.4T) >> =A0 Sectorsize: 512 >> =A0 Mode: r1w1e1 >> =A0 Jend: 1500301869056 >> =A0 Jstart: 1499228127232 >> =A0 Role: Data,Journal >> >> Geom name: gjournal 3015273731 >> ID: 3015273731 >> Providers: >> 1. Name: ad10s1.journal >> =A0 Mediasize: 749081051136 (698G) >> =A0 Sectorsize: 512 >> =A0 Mode: r1w1e1 >> Consumers: >> 1. Name: ad10s1 >> =A0 Mediasize: 750154793472 (699G) >> =A0 Sectorsize: 512 >> =A0 Mode: r1w1e1 >> =A0 Jend: 750154792960 >> =A0 Jstart: 749081051136 >> =A0 Role: Data,Journal >> >> >>> and >>> bsdlabel /dev/mirror/gm0e.journal >> >> duncan [201]$ bsdlabel mirror/gm0e.journal >> bsdlabel: /dev/mirror/gm0e.journal: no valid label found >> >>> And any other .journal you have >> >> duncan [202]$ bsdlabel ad8s1a.journal >> bsdlabel: /dev/ad8s1a.journal: no valid label found >> duncan [203]$ bsdlabel ad10s1.journal >> # /dev/ad10s1.journal: >> 8 partitions: >> # =A0 =A0 =A0 =A0size =A0 offset =A0 =A0fstype =A0 [fsize bsize bps/cpg] >> =A0a: 1465146065 =A0 =A0 =A0 16 =A0 =A0unused =A0 =A0 =A0 =A00 =A0 =A0 0 >> =A0c: 1465146081 =A0 =A0 =A0 =A00 =A0 =A0unused =A0 =A0 =A0 =A00 =A0 =A0= 0 =A0 =A0 =A0 =A0 # "raw" part, don't edit >> partition a: partition extends past end of unit >> partition c: partition extends past end of unit >> bsdlabel: partition c doesn't cover the whole unit! >> bsdlabel: An incorrect partition c may cause problems for standard syste= m utilities >> >> Hmm. =A0That's a bit surprising. =A0I'm fairly certain that I didn't >> label ad10s1.journal, but that disk has been used for other >> things before, and the partition label is the the same (but >> without the warnings): >> >> duncan [204]$ bsdlabel ad10s1 >> # /dev/ad10s1: >> 8 partitions: >> # =A0 =A0 =A0 =A0size =A0 offset =A0 =A0fstype =A0 [fsize bsize bps/cpg] >> =A0a: 1465146065 =A0 =A0 =A0 16 =A0 =A0unused =A0 =A0 =A0 =A00 =A0 =A0 0 >> =A0c: 1465146081 =A0 =A0 =A0 =A00 =A0 =A0unused =A0 =A0 =A0 =A00 =A0 =A0= 0 =A0 =A0 =A0 =A0 # "raw" part, don't edit >> >> I guess I should have nuked the starting sectors a bit more >> thoroughly? >> >> That isn't the disk that's giving me panics though. >> >>> Just want to double check something. >> >> Hope that helps! >> >> Cheers, >> >> -- >> Andrew >> >> > > Sorry, i forgot the gm0e and ad8s1a is a label. > can you show me the bsdlabel for the mirror/gm0 and ad8s1 > > Also there is a overflow with the ad10s1 and journal > > Geom name: gjournal 3015273731 > ID: 3015273731 > Providers: > 1. Name: ad10s1.journal > =A0Mediasize: 749081051136 (698G) > =A0Sectorsize: 512 > =A0Mode: r1w1e1 > Consumers: > 1. Name: ad10s1 > =A0Mediasize: 750154793472 (699G) > =A0Sectorsize: 512 > =A0Mode: r1w1e1 > =A0Jend: 750154792960 > =A0Jstart: 749081051136 > =A0Role: Data,Journal > > duncan [204]$ bsdlabel ad10s1 > # /dev/ad10s1: > 8 partitions: > # =A0 =A0 =A0 =A0size =A0 offset =A0 =A0fstype =A0 [fsize bsize bps/cpg] > =A0a: 1465146065 =A0 =A0 =A0 16 =A0 =A0unused =A0 =A0 =A0 =A00 =A0 =A0 0 > =A0c: 1465146081 =A0 =A0 =A0 =A00 =A0 =A0unused =A0 =A0 =A0 =A00 =A0 =A0 = 0 =A0 =A0 =A0 =A0 # "raw" part, > don't edit > partition a: partition extends past end of unit > partition c: partition extends past end of unit > bsdlabel: partition c doesn't cover the whole unit! > bsdlabel: An incorrect partition c may cause problems for standard > system utilities > > When i first started, it kept complaining. For slices, you have the > ad10, put the s1 slice in, then you gjournal that, bsdlabel the > .journal. Then change the label to the mediasize of the journal/512. > > So in your case your bsdlabel should be 749081051136 / 512 =3D > 1463048928 with offset of 0. > c: 1465146081 - (what is expected)1463048928 =3D 2097153*512 =3D > 1073742336 (which is roughly 1GB, your journal size) > Your c label is over by about 1GB =A0which means the fs is writing over > the journal part sometimes and the journal writing over the data > sometimes, which would lead to the journal overflow and journal/data > corruption. > > I hope i haven't confused you. I started to gjournal the slices as > gjournalling the bsdlabels you needed to decrease your bsdlabel by 1 > (thats where the GEOM data was stored) and gave me too many headaches. > > If you gjournal the slices, then bsdlabel them, you just change the c > label to (.journal media size)/512 offset 0, and it all works. > > Regards > David N > Could you also post a df (without the -h), if you haven't already solved the problem. Cheers David N