|
已经解决了!
NFS挂载的3块硬盘在KODI里反映迅速性能有提升。win10下反映缓慢,且因为汉字编码的问题,无法访问中文目录。懒得调编码。反正用samba做文件管理够了。
过程:
1)卸载nfs-kernel-server,重装了一遍,NFSV3客户支持因为内核版本差异装不上,最后没忍住,强制安装了。
强制安装
root@Openwrt:~# opkg install -force-depends nfs-kernel-server
Installing nfs-kernel-server (2.5.1-1) to root...
Downloading http://downloads.openwrt.org/sna ... _2.5.1-1_x86_64.ipk
Installing kmod-fs-nfs-v4 (5.4.52-1) to root...
Downloading http://downloads.openwrt.org/sna ... 5.4.52-1_x86_64.ipk
Configuring kmod-fs-nfs-v4.
Configuring nfs-kernel-server.
Collected errors:
* satisfy_dependencies_for: Cannot satisfy the following dependencies for nfs-kernel-server:
* kernel (= 5.4.52-1-256865d6158d6b1fd16b5d8ceb4f7549)
* resolve_conffiles: Existing conffile /etc/exports is different from the conffile in the new package. The new conffile will be placed at /etc/exports-opkg.
如法炮制强制安装的NFSv3
2)调整/etc/exports
/mnt/sdb1 10.0.10.0/24(rw,sync,fsid=1000,crossmnt,nohide,no_subtree_check,no_all_squash,no_root_squash,insecure)
/mnt/sdc1 10.0.10.0/24(rw,sync,fsid=999,crossmnt,nohide,no_subtree_check,no_all_squash,no_root_squash,insecure)
/mnt/sdd1 10.0.10.0/24(rw,sync,fsid=998,crossmnt,nohide,no_subtree_check,no_all_squash,no_root_squash,insecure)
其中FSID=xxx反复查了资料是给共享做 标识的,如果相同,在多个共享下会混乱或不能访问。crossmnt是NFSv4示例里有的,试了,没它会变慢。
这个内容我同时复制到/etc/exports-opkg,是系统提示需要的,我也不知道 到底哪个在起作用。
有类似情况可以照抄,我也不懂太多。有大神有更正规的方法,请教教我,谢谢。 |
|