From owner-freebsd-fs@freebsd.org Wed Mar 29 12:22:52 2017 Return-Path: Delivered-To: freebsd-fs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3EFB0D238F7 for ; Wed, 29 Mar 2017 12:22:52 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from citapm.icyb.net.ua (citapm.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 94E6E69AF3 for ; Wed, 29 Mar 2017 12:22:51 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from porto.starpoint.kiev.ua (porto-e.starpoint.kiev.ua [212.40.38.100]) by citapm.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id PAA19898; Wed, 29 Mar 2017 15:22:43 +0300 (EEST) (envelope-from avg@FreeBSD.org) Received: from localhost ([127.0.0.1]) by porto.starpoint.kiev.ua with esmtp (Exim 4.34 (FreeBSD)) id 1ctCcd-000JGl-JD; Wed, 29 Mar 2017 15:22:43 +0300 Subject: Re: ZFS. No error message when copying a 100 GiB file on a 22 GiB pool To: Maurizio Vairani , freebsd-fs@FreeBSD.org References: <6d1f7b87-9cc8-35ca-eb5e-3d448b307461@cloverinformatica.it> From: Andriy Gapon Message-ID: <334a8e6b-440a-7b9f-7aad-b17a119c50e7@FreeBSD.org> Date: Wed, 29 Mar 2017 15:21:22 +0300 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.0 MIME-Version: 1.0 In-Reply-To: <6d1f7b87-9cc8-35ca-eb5e-3d448b307461@cloverinformatica.it> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Mar 2017 12:22:52 -0000 On 29/03/2017 12:06, Maurizio Vairani wrote: > The PC is running: > > # uname -a > > FreeBSD clover-nas2 11.0-RELEASE-p8 FreeBSD 11.0-RELEASE-p8 #0: Wed Feb 22 > 06:12:04 UTC 2017 > root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 > > > I need to copy a 100 GiB file, Win7.img, to another machine. The idea is to use > a fast USB 3 SSD. The pool on it, zdata, was created with the command: > > # zpool create -m /zdata -O compression=lz4 -O atime=off zdata > diskid/DISK-00000000000000000000 > > > # zpool list zdata > > NAMESIZE ALLOC FREE EXPANDSZ FRAGCAP DEDUP HEALTH ALTROOT > > zdata 22.2G 4.85M 22.2G -16% 0% 1.00x ONLINE - > > > # du -hA Win7.img > > 100GWin7.img > > # du -h Win7.img > > 55GWin7.img > > > # /bin/cp Win7.img /zdata/ > > No error message is printed. The file on zdata is truncated: > > > # du -Ah /zdata/Win7.img > > 46G/zdata/Win7.img > > # du -h /zdata/Win7.img > > 22G/zdata/Win7.img Does stat(1) also report a different size? Does md5 also report different content? -- Andriy Gapon