LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Tags used in this thread
Popular LQ Tags , ,

Reply
 
Thread Tools
Old 09-22-2009, 05:21 AM   #1
waroros
LQ Newbie
 
Registered: Sep 2009
Posts: 4
Thanked: 0
Share file on memory (like on tmpfs) via NFS (or alternatives)


[Log in to get rid of this advertisement]
Hi,

I want to store some file on tmpfs or any memory-based file system for better performance and share it via NFS or any protocal that can be used to mount folder. However, from the NFS faq, NFS doesn't support tmpfs.

Could anyone suggest a solution to achieve this?
windows_xp_2003 waroros is offline  
Tag This Post , ,
Reply With Quote
Old 09-22-2009, 10:09 PM   #2
MS3FGX
Senior Member
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 4,218
Thanked: 80
I tried it here on my machines and it looks like you need to put "fsid=0" in the export options for the share mounted on tmpfs, at which point it appears to work fine.

I have looked around online to figure out exactly what that option means, and it appears it is an NFS4 thing that sets that particular share as the root of the pseudo-filesystem. So this option might be a problem if you need to have multiple exports, though on my server I was still able to mount one of my other shares while I had the tmpfs share active.

Maybe somebody with more intimate knowledge of NFS could clear this up. I don't know if the option is safe to use in a production environment or not.
linuxubuntu MS3FGX is offline     Reply With Quote
Thanked by:
Old 09-22-2009, 10:56 PM   #3
waroros
LQ Newbie
 
Registered: Sep 2009
Posts: 4
Thanked: 0

Original Poster
Thank MS3FGX for your suggestion. I'd try that out. I'm not sure if it works with NFSv3 since I used only NFSv3.
windows_xp_2003 waroros is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
tmpfs for samba share saavik Linux - Server 1 01-31-2008 01:06 PM
NFS File Share - Cannot Mount Ingla Linux - Software 6 08-06-2007 08:56 PM
how much memory can tmpfs support? hongxing Linux - Software 1 04-10-2006 01:46 AM
tmpfs and swap memory basics kushalkoolwal Debian 1 09-12-2005 05:24 PM
top reports 99% memory used when using a tmpfs damonnew Linux - General 1 01-30-2005 02:51 AM


All times are GMT -5. The time now is 08:39 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration