From owner-freebsd-current@FreeBSD.ORG Wed May 2 17:59:03 2007 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4E55016A400 for ; Wed, 2 May 2007 17:59:03 +0000 (UTC) (envelope-from anderson@freebsd.org) Received: from mh2.centtech.com (moat3.centtech.com [64.129.166.50]) by mx1.freebsd.org (Postfix) with ESMTP id 22E8013C469 for ; Wed, 2 May 2007 17:59:02 +0000 (UTC) (envelope-from anderson@freebsd.org) Received: from neutrino.centtech.com (neutrino.centtech.com [10.177.171.220]) by mh2.centtech.com (8.13.8/8.13.8) with ESMTP id l42Hx19h007772; Wed, 2 May 2007 12:59:01 -0500 (CDT) (envelope-from anderson@freebsd.org) Message-ID: <4638D164.7020304@freebsd.org> Date: Wed, 02 May 2007 12:59:00 -0500 From: Eric Anderson User-Agent: Thunderbird 2.0.0.0 (X11/20070420) MIME-Version: 1.0 To: John Clark References: <4638C84E.2000704@metricsystems.com> <4638C98F.3070607@mac.com> <4638CE63.50209@metricsystems.com> In-Reply-To: <4638CE63.50209@metricsystems.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.88.4/3195/Wed May 2 04:34:51 2007 on mh2.centtech.com X-Virus-Status: Clean X-Spam-Status: No, score=-2.5 required=8.0 tests=AWL,BAYES_00 autolearn=ham version=3.1.6 X-Spam-Checker-Version: SpamAssassin 3.1.6 (2006-10-03) on mh2.centtech.com Cc: freebsd-current@freebsd.org Subject: Re: NFS problem X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 May 2007 17:59:03 -0000 On 05/02/07 12:46, John Clark wrote: > Chuck Swiger schrieb: >> John Clark wrote: >>> I am copying a 'disk image' to an NFS mounted volume. >>> >>> I'm using: >>> >>> dd if=/dev/ad0 of=Disk.img >>> >>> After dd completes the number of blocks indicated is what the raw >>> disk device should be. However, when I look at the NFS mounted image, >>> the file size is anything but the 80 GB size it should be. >> How big is it? Is the data complete/intact up to the point when it >> stopped? > > What I'm doing is cloning a disk, and making it network accessible. So > it is an 80 GB disk image. > > When I mount the 'results', fsck, does start to pick up problems, and > on one of the partitions, basically resulted > in a slew of corrupted inodes. > > So my suspicion is that there are missing blocks scattered throughout. > > >Can you create enough local space on a second drive (or do this by > individial partitions instead) to create the image locally, and then > copy the file at once via NFS? >It'd be nice to see whether that worked > OK. > > I'll see if I can set this up... but that would only verify that dd > wasn't doing something strange... > > One trick I tried was to use 'tee' to create the NFS image, and then > continue the pipe with a 'cksum': > > dd if=/dev/ad0 | tee Disk.img | cksum > > Tee stopped at some point, probably about 2.5 GB with a 'file too > large'... the CVS sources that I'm using > are pretty recent, as in within the last month... Do something like this instead: dd if=/dev/ad0 count=10 bs=1m| md5 dd if=Disk.img count=10 bs=1m| md5 Then you can do: dd if=/dev/ad0 count=10 bs=1m skip=10 | md5 dd if=Disk.img count=10 bs=1m skip=10 | md5 to move through the file.. What are your NFS client mount options, and what OS is on the server? Eric