tmpfs has blazing speed. Why not set up a high speed NFS server on top of tmpfs?
A little trick is required for setting NFS server on top of /dev/shm. If we add a normal entry in /etc/export and them run
# exportfs -a
exportfs will give us a warning like this: exportfs: Warning: /dev/shm requires fsid= for NFS export
When we try to mount this NFS server, we may get a error message from mount: mount.nfs: access denied by server while mounting nfsserver:/dev/shm
How to solve this problem? Just add the option fsid=1 to the /dev/shm entry in /etc/exports:
and remember to execute
# exportfs -a again.
Then nfsserver:/dev/shm can be mounted in 10.0.0.1/24.
Latest posts by Eric Zhiqiang Ma (see all)
- Vim Tutorial for Beginners: vimtutor - Dec 31, 2016
- Essential Gnome Shell Extensions for Gnome 3 Users - Oct 22, 2016
- How to Install 32-bit Wine 1.8 on CentOS 7 - Oct 16, 2016