From owner-freebsd-fs@FreeBSD.ORG Thu Aug 15 15:20:27 2013 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 977DF51C for ; Thu, 15 Aug 2013 15:20:27 +0000 (UTC) (envelope-from joh.hendriks@gmail.com) Received: from mail-wg0-x230.google.com (mail-wg0-x230.google.com [IPv6:2a00:1450:400c:c00::230]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id EE14B26E7 for ; Thu, 15 Aug 2013 15:20:26 +0000 (UTC) Received: by mail-wg0-f48.google.com with SMTP id f12so653464wgh.27 for ; Thu, 15 Aug 2013 08:20:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=0cY/dkLDHDJc4L+93KK2/rtR436BApa47K+tyL29aFo=; b=0Y1RJxMdaIt4VCGocEYmy/4yJkGCpTHzv3gGCfMY7Opdyqhyc28/julxOA7qSNQuep kJnjaVJwm3k8vViTWsOF2mL0Xch10C9cZrBMh1aK2ODGRHj15jxnmscpg4kEAKbFp4iQ WIL7f/dV5JUX2OYrAneLSAAiLlAvgOrUWb47q4HHYxvSUPnRYNXinLfqvatIwTmihcPo IYX1imvjKyhbgQZXu/F0WW39yLQJZvdBr53s2IEow5bRA0/iB5Yg6egJlnM7DgFC2LVG +/k2z3VQ4PsHz/L7bw+82KrmYs95MoEM92+7qg1egLEmuMqUAPaLjkAWptVkdsINrz0G 9ckw== X-Received: by 10.194.250.6 with SMTP id yy6mr10537564wjc.13.1376580025290; Thu, 15 Aug 2013 08:20:25 -0700 (PDT) Received: from [192.168.1.129] (schavemaker.nl. [213.84.84.186]) by mx.google.com with ESMTPSA id fz8sm3500341wic.0.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 15 Aug 2013 08:20:24 -0700 (PDT) Message-ID: <520CF1A0.5080306@gmail.com> Date: Thu, 15 Aug 2013 17:20:00 +0200 From: Johan Hendriks User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:23.0) Gecko/20100101 Thunderbird/23.0 MIME-Version: 1.0 To: freebsd-fs@freebsd.org Subject: Files created with vsphere on a seperate ZFS dataset are not visable from cli within FreeBSD itself Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: Thu, 15 Aug 2013 15:20:27 -0000 Hello all. I have a strange issue using 9.2-PRERELEASE I use a 9.2 machine as storage for our virtual machines. I created a ZFS dataset named ESXishare under a ZFS storage dataset zfs list gives me the following san # zfs list NAME USED AVAIL REFER MOUNTPOINT storage 4.00G 2.13T 160K /storage storage/ESXishare 3.99G 2.13T 3.99G /storage/ESXishare I export this dataset to my 5.1 ESXi host using NFS /etc/exports looks like /storage/ESXishare -maproot=root: -alldirs -network 192.168.100.0 -mask 255.255.255.0 I can copy machines to this share fine. I can add machines, files and directory's to this share without a problem from the vsphere client using browse datastore and from the cli on the FreeBSD machine itself My thought was to use a per machine ZFS dataset to make zfs sending more flexible. So i can send important machines to a remote side every day, and less important machines once a week. So i create a new ZFS dataset. zfs create storage/ESXishare/machine1 san ESXishare # zfs list NAME USED AVAIL REFER MOUNTPOINT storage 4.00G 2.13T 160K /storage storage/ESXishare 3.99G 2.13T 3.99G /storage/ESXishare storage/ESXishare/machine1 144K 2.13T 144K /storage/ESXishare/machine1 I can see the share in vsphere using browse datastore, and i created a vm in side this dataset from the vsphere client in the dir machine1 But if I use the cli on the FreeBSD machine itself i can not see the files. san ~ # cd /storage/ESXishare/ san ESXishare # ls -al total 26 drwxr-xr-x 3 root wheel 3 Aug 15 16:29 . drwxr-xr-x 4 root wheel 4 Jul 3 13:56 .. drwxr-xr-x 2 root wheel 2 Aug 15 15:56 machine1 san ~ # cd /storage/ESXishare/machine1 total 17 drwxr-xr-x 2 root wheel 2 Aug 15 15:56 . drwxr-xr-x 3 root wheel 3 Aug 15 16:29 .. zpool list tells me that the data is in use by the pool, but i can not see the files. san ~ # zpool list NAME SIZE ALLOC FREE CAP DEDUP HEALTH ALTROOT storage 2.17T 4.00G 2.17T 0% 1.00x ONLINE - If i go to the dataset and do touch test I see the file test san ~ # cd /storage/ESXishare/machine1 san ~ # touch test ls -al total 18 drwxr-xr-x 2 root wheel 3 Aug 15 16:57 . drwxr-xr-x 3 root wheel 3 Aug 15 16:29 .. -rw-r--r-- 1 root wheel 0 Aug 15 16:57 test But in my vsphere client using browse datastore the file test is not there.?? I can run the vm without problem. zpool status san ~ # zpool status pool: storage state: ONLINE scan: none requested config: NAME STATE READ WRITE CKSUM storage ONLINE 0 0 0 mirror-0 ONLINE 0 0 0 gpt/disk00 ONLINE 0 0 0 gpt/disk01 ONLINE 0 0 0 mirror-1 ONLINE 0 0 0 gpt/disk02 ONLINE 0 0 0 gpt/disk03 ONLINE 0 0 0 mirror-2 ONLINE 0 0 0 gpt/disk04 ONLINE 0 0 0 gpt/disk05 ONLINE 0 0 0 mirror-3 ONLINE 0 0 0 gpt/disk06 ONLINE 0 0 0 gpt/disk07 ONLINE 0 0 0 logs mirror-4 ONLINE 0 0 0 gpt/log00 ONLINE 0 0 0 gpt/log01 ONLINE 0 0 0 cache gpt/cache00 ONLINE 0 0 0 gpt/cache01 ONLINE 0 0 0 errors: No known data errors uname -a FreeBSD san.mydomain.lan 9.2-PRERELEASE FreeBSD 9.2-PRERELEASE #0 r253377: Tue Jul 16 09:28:16 CEST 2013 root@san.mydomain.lan:/usr/obj/usr/src/sys/KRNL amd64 I have no idea where to look or if i am doing something wrong. Thanks for your time. regards Johan