From owner-freebsd-fs@FreeBSD.ORG Fri Aug 16 13:52:22 2013 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id A3F3EB31 for ; Fri, 16 Aug 2013 13:52:22 +0000 (UTC) (envelope-from matt.home@userve.net) Received: from smtp-outbound.userve.net (smtp-outbound.userve.net [217.196.1.22]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 40AC72868 for ; Fri, 16 Aug 2013 13:52:21 +0000 (UTC) Received: from webmail.userve.net (db3.userve.net [217.196.1.19]) (authenticated bits=0) by smtp-outbound.userve.net (8.14.5/8.14.5) with ESMTP id r7GDikHV042104 for ; Fri, 16 Aug 2013 14:44:46 +0100 (BST) (envelope-from matt.home@userve.net) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Date: Fri, 16 Aug 2013 14:44:51 +0100 From: Home Email To: Subject: Re: Files created with vsphere on a seperate ZFS dataset are not visable from cli within FreeBSD itself Message-ID: <6bde1e873789bb8b174dccdbfe5ed28c@users.userve.net> X-Sender: matt.home@userve.net User-Agent: Roundcube Webmail/0.8.0 X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Aug 2013 13:52:22 -0000 > Or is it that the files are in ESXishare but masked by the machine1 > mount. Yes, that is exactly the issue. On the server: Writing to /storage/ESXishare/ will place files on the storage/ESXishare filesystem Writing to /storage/ESXishare/machine1/ will place files on the storage/ESXishare/machine1 filesystem (which is mounted over the top of a machine1 dir on the parent fs) On ESXi: Writing to ESXishare will write to the mounted filesystem (storage/ESXishare) Writing to ESXishare/machine1 will write to the machine1 subdirectory on this filesystem NFS mounts will not cross filesystem mount points. It would be nice to be able to do what you are trying to - it would also allow the ability to use zfs clones to duplicate VMs. Unfortunately, you would need to export and mount each machine's ZFS filesystem separately in ESXi. > One more thing. > I use thin provisioning. > But if i use cp to copy files they grow to the actual size. > How do i overcome that? As far as I'm aware FreeBSD cp still doesn't have a sparse option. The way I do it is to use rsync with the --sparse option. There may be an easiest way but I like rsync and use it for various other tasks so generally have it installed anyway. --Matt