我正在尝试使EMC NFS Java Client工作不成功。
当我尝试使用EMC NFS Java Client连接到同一服务器时,我使用以下代码将其安装在桌面上
Nfs3 nfs3 = new Nfs3(hostname, export, new CredentialUnix(), 3);
我收到以下错误:
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
mount failure, server: 10.13.148.82, export: /var/nfs, nfs version: 3, returned state: 13
com.emc.ecs.nfsclient.mount.MountException: mount failure, server: 10.13.148.82, export: /var/nfs, nfs version: 3, returned state: 13
at com.emc.ecs.nfsclient.nfs.nfs3.Nfs3.lookupRootHandle(Nfs3.java:342)
at com.emc.ecs.nfsclient.nfs.nfs3.Nfs3.prepareRootFhAndNfsPort(Nfs3.java:311)
at com.emc.ecs.nfsclient.nfs.nfs3.Nfs3.<init>(Nfs3.java:258)
at com.emc.ecs.nfsclient.nfs.nfs3.Nfs3.<init>(Nfs3.java:201)
at com.emc.ecs.nfsclient.nfs.nfs3.Nfs3.<init>(Nfs3.java:228)
at com.emc.ecs.nfsclient.nfs.io.FileReadingTest.testReading(FileReadingTest.java:104)
at com.emc.ecs.nfsclient.nfs.io.FileReadingTest.main(FileReadingTest.java:53)
该错误消息不是很有帮助,我也不知道从哪里开始寻找问题。
答案 0 :(得分:0)
您的/ etc / exports文件内容应添加不安全选项,例如 / data 10.16.150.0/24(rw,sync,insecsure,no_subtree_check,no_root_squash)