All of lore.kernel.org
 help / color / mirror / Atom feed
* NFS export of TMPFS
@ 2006-12-01 21:46 Weikuan Yu
  2006-12-01 21:52 ` Peter Staubach
  0 siblings, 1 reply; 5+ messages in thread
From: Weikuan Yu @ 2006-12-01 21:46 UTC (permalink / raw)
  To: nfs

Hi,

I am trying to export a memory-based file system via NFS. However, I am 
not able to do with either ramfs or tmpfs. Here is the reported error. 
Is there a protection in NFS server to prevent this?

I also tried to use ramdisk. That worked, however, I am not able to 
create a ramdisk of more than 1G. I need to create a ramdisk that is 2G 
or more. Any insights on this.

I will be happy if I can get solutions for either of the approaches. Or 
is there any other alternatives?

Thanks,
Weikuan

[root@yoda1 ~]# mount -t tmpfs none /nfs
[root@yoda1 ~]# df -h /nfs
Filesystem            Size  Used Avail Use% Mounted on
none                  506M     0  506M   0% /nfs
[root@yoda1 ~]# ssh node0002
-bash-3.00# mount 192.168.1.254:/nfs /nfs
mount: 192.168.1.254:/nfs failed, reason given by server: Permission denied

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: NFS export of TMPFS
  2006-12-01 21:46 NFS export of TMPFS Weikuan Yu
@ 2006-12-01 21:52 ` Peter Staubach
  2006-12-01 21:56   ` Weikuan Yu
  0 siblings, 1 reply; 5+ messages in thread
From: Peter Staubach @ 2006-12-01 21:52 UTC (permalink / raw)
  To: Weikuan Yu; +Cc: nfs

Weikuan Yu wrote:
> Hi,
>
> I am trying to export a memory-based file system via NFS. However, I am 
> not able to do with either ramfs or tmpfs. Here is the reported error. 
> Is there a protection in NFS server to prevent this?
>
> I also tried to use ramdisk. That worked, however, I am not able to 
> create a ramdisk of more than 1G. I need to create a ramdisk that is 2G 
> or more. Any insights on this.
>
> I will be happy if I can get solutions for either of the approaches. Or 
> is there any other alternatives?
>
> Thanks,
> Weikuan
>
> [root@yoda1 ~]# mount -t tmpfs none /nfs
> [root@yoda1 ~]# df -h /nfs
> Filesystem            Size  Used Avail Use% Mounted on
> none                  506M     0  506M   0% /nfs
> [root@yoda1 ~]# ssh node0002
> -bash-3.00# mount 192.168.1.254:/nfs /nfs
> mount: 192.168.1.254:/nfs failed, reason given by server: Permission denied

You might try exportfs(8)'ing the file system before trying to mount it...

       ps

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: NFS export of TMPFS
  2006-12-01 21:52 ` Peter Staubach
@ 2006-12-01 21:56   ` Weikuan Yu
  2006-12-01 21:58     ` Peter Staubach
  0 siblings, 1 reply; 5+ messages in thread
From: Weikuan Yu @ 2006-12-01 21:56 UTC (permalink / raw)
  To: Peter Staubach; +Cc: nfs

Thansk for your prompt reply. Forgot to add that they are exported. Here 
  is the output from exportfs. The problem is I can nfs-mount /data 
(/dev/hda2) fine, but not /nfs (tmpfs).

Weikuan

-bash-3.00# exportfs
/nfs            160.91.202.127/255.255.255.128
/data           160.91.202.127/255.255.255.128
/nfs            192.168.120.*
/data           192.168.120.*


Peter Staubach wrote:
> Weikuan Yu wrote:
> 
>> Hi,
>>
>> I am trying to export a memory-based file system via NFS. However, I 
>> am not able to do with either ramfs or tmpfs. Here is the reported 
>> error. Is there a protection in NFS server to prevent this?
>>
>> I also tried to use ramdisk. That worked, however, I am not able to 
>> create a ramdisk of more than 1G. I need to create a ramdisk that is 
>> 2G or more. Any insights on this.
>>
>> I will be happy if I can get solutions for either of the approaches. 
>> Or is there any other alternatives?
>>
>> Thanks,
>> Weikuan
>>
>> [root@yoda1 ~]# mount -t tmpfs none /nfs
>> [root@yoda1 ~]# df -h /nfs
>> Filesystem            Size  Used Avail Use% Mounted on
>> none                  506M     0  506M   0% /nfs
>> [root@yoda1 ~]# ssh node0002
>> -bash-3.00# mount 192.168.1.254:/nfs /nfs
>> mount: 192.168.1.254:/nfs failed, reason given by server: Permission 
>> denied
> 
> 
> You might try exportfs(8)'ing the file system before trying to mount it...
> 
>       ps

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: NFS export of TMPFS
  2006-12-01 21:56   ` Weikuan Yu
@ 2006-12-01 21:58     ` Peter Staubach
  2006-12-01 22:36       ` Weikuan Yu
  0 siblings, 1 reply; 5+ messages in thread
From: Peter Staubach @ 2006-12-01 21:58 UTC (permalink / raw)
  To: Weikuan Yu; +Cc: nfs

Weikuan Yu wrote:
> Thansk for your prompt reply. Forgot to add that they are exported. 
> Here  is the output from exportfs. The problem is I can nfs-mount 
> /data (/dev/hda2) fine, but not /nfs (tmpfs). 

Sorry, just a little cautious from the snippet of commands -- you
exported /nfs _after_ it was created/mounted?  That wasn't shown
in the list of commands...

    Thanx...

       ps

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: NFS export of TMPFS
  2006-12-01 21:58     ` Peter Staubach
@ 2006-12-01 22:36       ` Weikuan Yu
  0 siblings, 0 replies; 5+ messages in thread
From: Weikuan Yu @ 2006-12-01 22:36 UTC (permalink / raw)
  To: Peter Staubach; +Cc: nfs



Peter Staubach wrote:
> Weikuan Yu wrote:
> 
>> Thansk for your prompt reply. Forgot to add that they are exported. 
>> Here  is the output from exportfs. The problem is I can nfs-mount 
>> /data (/dev/hda2) fine, but not /nfs (tmpfs). 
> 
> 
> Sorry, just a little cautious from the snippet of commands -- you
> exported /nfs _after_ it was created/mounted?  That wasn't shown
> in the list of commands...

Yes, you are right. Thanks for your suggestion.

Weikuan

> 
>    Thanx...
> 
>       ps

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-12-01 22:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-01 21:46 NFS export of TMPFS Weikuan Yu
2006-12-01 21:52 ` Peter Staubach
2006-12-01 21:56   ` Weikuan Yu
2006-12-01 21:58     ` Peter Staubach
2006-12-01 22:36       ` Weikuan Yu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.