Networking :: NFS problems



I just remembered tmpfs cannot be exported by NFS. Not too sure about unionfs either.
So, create a 4MB ramdisk with ext2, try to export that, it should work.
(dd if=/dev/zero of=/dev/ram2 bs=1M count=4; mke2fs -m0 /dev/ram2)

Or export the cdrom.

Sidenote: Wait, is that's all that is required to make a ram disk in linux? I needed a way of storing a continuous written to file without writing it to a harddrive/flash.

Quote
Sidenote: Wait, is that's all that is required to make a ram disk in linux? I needed a way of storing a continuous written to file without writing it to a harddrive/flash.

Yes. Although the max size is defined when compiling the kernel and is usually 4MB, and the max number of ramdisks is also defined compile-time, the default is 16. Most people use tmpfs instead, since it's newer, faster, and can be resized on the fly, but old-fashioned ramdisks have their uses.

Quote (curaga @ June 15 2008,23:16)
I just remembered tmpfs cannot be exported by NFS. Not too sure about unionfs either.
So, create a 4MB ramdisk with ext2, try to export that, it should work.
(dd if=/dev/zero of=/dev/ram2 bs=1M count=4; mke2fs -m0 /dev/ram2)

Looks like that is the problem. Creating the ramdisk & mounting it to /mnt/r2 & then exporting that allowed it to be mounted back to the same machine.

I think this needs a wiki page to explain. I'll put it on my list of pages to do, along with the DMIX/umix one requested elsewhere.

Thanks for the help.

andrewb,
 I never tried to export directories that are in unionfs/tmpfs, only hard drive directories.  I will update the info file in nfs-kernel-server.dsl with what you put in the wiki.  Thanks.

Next Page...
original here.