Re: Exporting /dev/shm as NFS share?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On 6/24/11, John Hodrien <J.H.Hodrien@xxxxxxxxxxx> 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
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux