Ramdisk: Difference between revisions

From CLONWiki
Jump to navigation Jump to search
Boiarino (talk | contribs)
No edit summary
Boiarino (talk | contribs)
No edit summary
Line 1: Line 1:
On critical daq servers (clondaqx) directory ''/et'' resides in ramdisk. Following have to be done during installation:
On critical daq servers (clondaqx) directory ''/et'' resides in ramdisk. Add following line in ''/etc/fstab'':


  su
  none /et  tmpfs   nodev,nosuid,noexec,nodiratime,size=4096M   0 0
mkdir /et
  mount -t tmpfs -o size=4096M xfs /et


To make it permanent, add following line in ''/etc/fstab'':
it will show up after reboot.


  tmpfs  /etc  xfs  nodev,nosuid,noexec,nodiratime,size=4096M  0 0




Line 22: Line 19:
  mkdir /mnt/ramdisk
  mkdir /mnt/ramdisk
  mount -t tmpfs -o size=4g xfs /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

Revision as of 14:15, 9 March 2018

On critical daq servers (clondaqx) directory /et resides in ramdisk. Add following line in /etc/fstab:

 none  /et  tmpfs   nodev,nosuid,noexec,nodiratime,size=4096M   0 0

it will show up after reboot.



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