zfs nfs mount - works ubuntu but not via esxi

88 views
Skip to first unread message

omgparticle

unread,
Apr 3, 2011, 1:19:37 AM4/3/11
to KQStor ZFS Discussion

This may be more of an esxi nfs thing but figured I'd ask if someone
here had run across this


I have a zfs nfs share
root@tholian:~# zpool status
pool: vm
state: ONLINE
scan: none requested
config:

NAME STATE READ WRITE CKSUM
vm ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
sda1 ONLINE 0 0 0
sdb1 ONLINE 0 0 0
mirror-1 ONLINE 0 0 0
sdd1 ONLINE 0 0 0
sdc1 ONLINE 0 0 0

errors: No known data errors
root@tholian:~# zfs list
NAME USED AVAIL REFER MOUNTPOINT
vm 134K 268G 31K /vm
vm/vmwarenfs 32K 268G 32K /vm/vmwarenfs

exports
/vm/vmwarenfs
172.17.1.0/24(rw,async,no_subtree_check,no_root_squash)
/export/sdg1
172.17.1.0/24(rw,async,no_subtree_check,no_root_squash)


It will mount nfs4 fine and work via another ubuntu box.....
root@borg:~# mount tholian:/vm/vmwarenfs /mnt/vmwarenfs/
root@borg:~# echo foo > /mnt/vmwarenfs/afile.txt
root@borg:~# cat /mnt/vmwarenfs/afile.txt
foo

BUT....
from an esxi 4.1 I get a bad file descriptor error on the zfs nfs,
although mounting the other ext4 nfs share is working.
~ # esxcfg-nas -a -o 172.17.1.18 -s /vm/vmwarenfs tholianvmwarenfs
Connecting to NAS volume: tholianvmwarenfs
tholianvmwarenfs created and connected.
~ # df
Filesystem 1k-blocks Used Available Use% Mounted on
visorfs 1341928 268944 1072984 20% /
nfs 961432072 304691912 607902160 33% /vmfs/volumes/
901dcf30-13f794bd
vfat 255716 90104 165612 35% /vmfs/volumes/
ff060de6-cecc88e5-4d14-8726d7ed0132
vfat 255716 91752 163964 36% /vmfs/volumes/
65092bef-de8a06b5-22db-2bbbc32dc3d2
vfat 292752 144064 148688 49% /vmfs/volumes/
3c3693e8-f77a642a-1910-5c6bdcb26d3a
nfs 280756120 28 280756088 0% /vmfs/volumes/
ef8452dd-3787f1ac
~ # cd /vmfs/volumes/ef8452dd-3787f1ac/
/vmfs/volumes/ef8452dd-3787f1ac # echo Foo > myfile.txt
-ash: cannot create myfile.txt: Bad file descriptor
/vmfs/volumes/ef8452dd-3787f1ac # cd ..
/vmfs/volumes # ls -l ef8452dd-3787f1ac/
ls: ef8452dd-3787f1ac/myfile.txt: Bad file descriptor
/vmfs/volumes # cat /vmfs/volumes/ef8452dd-3787f1ac/myfile.txt
cat: can't open '/vmfs/volumes/ef8452dd-3787f1ac/myfile.txt': Bad file
descriptor
~ # esxcfg-nas -l
tholiansdg1 is /export/sdg1 from 172.17.1.18 mounted
tholianvmwarenfs is /vm/vmwarenfs from 172.17.1.18 mounted


On the NFS server side:
root@tholian:~# cd /vm/vmwarenfs/
root@tholian:/vm/vmwarenfs# cat myfile.txt
root@tholian:/vm/vmwarenfs# ls -l myfile.txt
-rw-r--r-- 1 root root 0 2011-04-02 18:34 myfile.txt
root@tholian:/vm/vmwarenfs# echo BAAA > myfile2.txt
root@tholian:/vm/vmwarenfs# cat myfile2.txt
BAAA
root@tholian:/vm/vmwarenfs# ls -l afile.txt
-rw-r--r-- 1 root root 4 2011-04-02 19:04 afile.txt



Perplexed. Any ideas appreciated.

Rob See

unread,
Apr 3, 2011, 9:59:03 AM4/3/11
to kqstor-zf...@googlegroups.com

I have also run into this.

-Rob

Reply all
Reply to author
Forward
0 new messages