NFS export of TMPFS
Subsystems (2)
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 - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs
Quoted 16 lines · Weikuan Yu
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
Quoted 7 lines
[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 - [email protected]
https://lists.sourceforge.net/lists/listinfo/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.*
Quoted 28 lines · Peter Staubach
Quoted 16 lines · Weikuan Yu
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,
WeikuanQuoted 8 lines
[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
Quoted 3 lines
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 - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs
Quoted 3 lines · Weikuan Yu
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 - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs
Quoted 10 lines · Peter Staubach
Quoted 3 lines · Weikuan Yu
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
Quoted 4 lines
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 - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs