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

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

Pages

October 2014
M T W T F S S
« Sep   Nov »
 12345
6789101112
13141516171819
20212223242526
2728293031  

RSS Link

  • An error has occurred; the feed is probably down. Try again later.

Twitter Updates

Blog Stats

  • 345,754 hits

Archives

Pengunjung


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:

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

and remember to execute # exportfs -a again.

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


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: