I want to read and write to a ramdisk on OpenSolaris for performance testing purposes. The tests would be aimed at network transmission and I want to rule out disk performance. I set up the ramdisk on the NFS server, machine A, with
mkfile -nv 1000m `pwd`/ramdisk
on a directory that was mounted via NFS onto machine B. Reading the ramdisk went fine, but writing to it, just overwrote the file. I then setup a ramdisk with
ramdiskadm -a ramdisk1 1000m
which I can write to fine but I can't access over NFS. The ramdisk is put on /dev/ramdisk which is a link to /devices/pseudo I added /devices/pseudo to /etc/dfs/sharetab and mounted it on machine B without error, but the contents of the directory on machine B are emtpy.
ramdiskadm, but did you format it with a file system, then export the file system? You can't export block devices over NFS (NFS is the Network File System, as in not for block devices, that's what protocols like iSCSI, ATAoE, or FCoE are for). – Chris S♦ Jul 1 '11 at 1:58