Home
Categories
WIKI
Topic
User
LANGUAGE:
中文
English
求助:NFS导出OverlayFS无效,求大神帮忙看看原因
Experiences and Insight
359
views ·
2
replies ·
To
floor
Go
jmjoy
deepin
2019-11-16 19:19
Author
具体步骤如下:
1.首先执行mount overlay:
sudo mount -t overlay overlay -olowerdir=/tmp/nfs/lower,upperdir=/tmp/nfs/upper,workdir=/tmp/nfs/work,nfs_export=on,index=on /tmp/nfs/merged
此时在/tmp/nfs/lower里面touch 1,可以看到/tmp/nfs/merged里面有1文件
2.修改/etc/exports:
/tmp/nfs *(rw,sync,no_root_squash,no_subtree_check)
3.执行mount nfs:
sudo mount -t nfs 127.0.0.1:/tmp/nfs /mnt
此时ls /mnt/merged,发现并没有1文件,即导出overlay并没有效果
有没有大佬可以帮忙看看是什么原因吗?
Reply
Like 0
Favorite
View the author
All Replies
走钢丝
deepin
2019-11-16 19:27
#1
nfs 太高端了,还没用过。
Reply
Like 0
View the author
jmjoy
deepin
2019-11-16 21:55
#2
呜呜呜,有大神接触过这种场景吗?
Reply
Like 0
View the author
Please
sign
in first
Featured Collection
Change
[Tutorial] deepin25 WSL Offline Installation Guide
UOS AI 2.8 Released! Three New Intelligent Agents & Major Evolution
Solid Q&A | deepin 25 Common Questions – The Immutable System Edition
New Thread
Popular Ranking
Change
WiFi Drivers
Popular Events
More
1.首先执行mount overlay:
sudo mount -t overlay overlay -olowerdir=/tmp/nfs/lower,upperdir=/tmp/nfs/upper,workdir=/tmp/nfs/work,nfs_export=on,index=on /tmp/nfs/merged
此时在/tmp/nfs/lower里面touch 1,可以看到/tmp/nfs/merged里面有1文件
2.修改/etc/exports:
/tmp/nfs *(rw,sync,no_root_squash,no_subtree_check)
3.执行mount nfs:
sudo mount -t nfs 127.0.0.1:/tmp/nfs /mnt
此时ls /mnt/merged,发现并没有1文件,即导出overlay并没有效果
有没有大佬可以帮忙看看是什么原因吗?