Setting Up a NFS Server on Top of tmpfs /dev/shm

By: Zhiqiang Ma In: Linux

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 option fsid=1 to /dev/shm entry in /etc/exports:

/dev/shm 10.0.0.1/24(rw,fsid=1,sync)

Then nfsserver:/dev/shm can be mounted in 10.0.0.1/24.

Author: Zhiqiang Ma Posted on: May 11, 2010 Views: 1,620
Tags: , , , ,
Like this post? Subscribe full-text feeds from all Fclose.com blogs:
One Response to Setting Up a NFS Server on Top of tmpfs /dev/shm | Add Comment
Add your comments, share your thoughts

Be nice. Keep it clean. Stay on topic. No spam.