# The value can be percentage of total RAM or size in megabytes - for example: #Maximum size of memory to be used by tmpfs or ramfs. # cannot be swapped, not SELinux friendly) # 1 - ramfs (no max size in older kernels, Ramlog configuration file is located in /etc/default/ramlog on deb based systems and you can set there below variables: Īfter rebooting you need to run ‘ramlog getlogsize' to determine the size of your actual /var/log.Add about 40% to that number to ensure your ramdisk has sufficient size - this will be the ramdisk sizeĮdit your boot manager config file such as /etc/nf, /boot/grub/menu.lst or /etc/nf and add update the actual kernel by adding kernel paramter ‘ramdisk_size=xxx' where xxx is calculated ramdisk size Sudo update-rc.d sysklogd start 10 2 3 4 5. #Now update sysklogd in init levels, so it is stopped properly before ramlog is stopped: This will complete the installation now you need to run the following commands Now you should be having ramlog_2.0.0_all.deb package install this package using the following command deb package from here using the following command Note:- This article is for advanced users onlyįirst you need to download the. Then /var/log is unmounted, /var/log.hdd is unmounted as well and empty directory /var/log.hdd is deleted. During ramlog stop phase files from /var/log.hdd are synchronized with /var/log Frequency of the automatic log saves can be controller via cron, by default, the ramlog file is placed into /etc/cron.dailyħ.On shutdown ramlog shuts among the last daemons.Ĩ. Logrotate works on ramdisk as well.Ħ.In case ramlog is restarted (by default it is one time per day), directory /var/log.hdd is synchronized with /var/log using rsync. If kernel ramdisk is used, ramdisk created in /dev/ram9 and it is mounted to /var/log, by default ramlog takes all ramdisk memory specified by kernel argument "ramdisk_size".ĥ.All other daemons are started and all logs are updated in ramdisk. It is good for notebook users, for systems with UPS or for systems running from flash - to save some write cycles.ġ.Ramlog starts among the first daemons (it depends on other daemons you have installed).Ģ.Directory /var/log.hdd is created and hardlinked to /var/log.ģ.In case tmpfs (default) or ramfs is used, it is mounted over /var/log Install ramlog if you have enough of free memory and you want to keep your logs on ramdisk. Note: Logs not saved to harddrive are lost in case of power outage or kernel panic. Program rsync is used for log synchronization. Ramlog 2.x is using tmpfs by default, ramfs and kernel ramdisk are suppored as well. On shutdown it saves log files back to harddisk so logs are consistent. Logs on harddrive are kept in folder /var/log.hdd which is updated when ramlog is restarted or stopped. All logs after that will be updated on ramdisk. ![]() On startup it creates ramdisk, it copies files from /var/log into ramdisk and mounts ramdisk as /var/log.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |