I'm trying to do some network transfer test using NFS. The problem is when I try to eliminate the possibility of the hard disks being the bottleneck. I am unable to export /dev/shm as a NFS share. Initially there was an error about fsid or wrong filesystem.
If I use a symbolic such as /home/test -> /dev/shm, on the remote system, this causes the NFS client to see its own /dev/shm
If I mount /home/test as a tmpfs on the host and export it, the client also appear to use its own tmpfs rather than the host.
Is there anyway to work around this or some other way to test the network speed without being bottlenecked by the sending side?
On Fri, 24 Jun 2011, Emmanuel Noobadmin wrote:
I'm trying to do some network transfer test using NFS. The problem is when I try to eliminate the possibility of the hard disks being the bottleneck. I am unable to export /dev/shm as a NFS share. Initially there was an error about fsid or wrong filesystem.
If I use a symbolic such as /home/test -> /dev/shm, on the remote system, this causes the NFS client to see its own /dev/shm
If I mount /home/test as a tmpfs on the host and export it, the client also appear to use its own tmpfs rather than the host.
Is there anyway to work around this or some other way to test the network speed without being bottlenecked by the sending side?
/dev/shm's how I would do it.
Make a file on /dev/shm and the format it, mount it, export it.
dd if=/dev/zero of=/dev/shm/export bs=1M count=1000 mke2fs -j /dev/shm/export mount -o loop /dev/shm/export /mnt/foo
Then export /mnt/foo
That do?
jh
On 6/24/11, John Hodrien J.H.Hodrien@leeds.ac.uk wrote:
/dev/shm's how I would do it.
Make a file on /dev/shm and the format it, mount it, export it.
dd if=/dev/zero of=/dev/shm/export bs=1M count=1000 mke2fs -j /dev/shm/export mount -o loop /dev/shm/export /mnt/foo
Then export /mnt/foo
Thanks for this.
One note though, it does not seem to work if I mount the ramdisk into a subfolder and export the parent folder. e.g mount to /mnt/test/ramdisk and export /mnt/test would given the same problem. But mounting directly to /mnt/ramdisk and export /mnt/ramdisk is OK
At Sat, 25 Jun 2011 00:17:19 +0800 CentOS mailing list centos@centos.org wrote:
On 6/24/11, John Hodrien J.H.Hodrien@leeds.ac.uk wrote:
/dev/shm's how I would do it.
Make a file on /dev/shm and the format it, mount it, export it.
dd if=/dev/zero of=/dev/shm/export bs=1M count=1000 mke2fs -j /dev/shm/export mount -o loop /dev/shm/export /mnt/foo
Then export /mnt/foo
Thanks for this.
One note though, it does not seem to work if I mount the ramdisk into a subfolder and export the parent folder. e.g mount to /mnt/test/ramdisk and export /mnt/test would given the same problem. But mounting directly to /mnt/ramdisk and export /mnt/ramdisk is OK
When you export a file system, *other* file system mounted under the exported file system are not exported. This is normal (and I believe documented) behaviour of NFS.
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos