create linux ram disk to share via nfs

# mkdir -p /mnt/ramdisk
# mkdir -p /exports/ramdisk
# mount -t tmpfs -o size=32G tmpfs /mnt/ramdisk
# mount –bind /mnt/ramdisk /exports/ramdisk
# vi /etc/exports
/exports/ramdisk 10.1.10.0/24(rw,fsid=0)
# service nfs restart
# chmod 777 /mnt/ramdisk
# chmod 777 /exports/ramdisk
# /etc/rc.d/init.d/nfs restart

Leave a Reply

Your email address will not be published. Required fields are marked *