Ramdisk: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 2: | Line 2: | ||
su | su | ||
mkdir / | mkdir /et | ||
mount -t tmpfs -o size=4g xfs /et | mount -t tmpfs -o size=4g xfs /et | ||
Revision as of 13:01, 9 March 2018
On critical daq servers (clondaqx) directory /et resides in ramdisk. Following have to be done during installation:
su mkdir /et mount -t tmpfs -o size=4g xfs /et
To make it permanent, add following line in /etc/fstab:
tmpfs /etc xfs nodev,nosuid,noexec,nodiratime,size=4096M 0 0
General info
Check available memory size:
free -g
Example of creating 4G ramdisk and mounting it as /mnt/ramdisk:
su mkdir /mnt/ramdisk mount -t tmpfs -o size=4g xfs /mnt/ramdisk
To make it permanent, add it to /etc/fstab:
tmpfs /mnt/ramdisk xfs nodev,nosuid,noexec,nodiratime,size=4096M 0 0