Posts

Showing posts from 2013

How to Add SWAP file

Linux RAM is composed of chunks of memory called pages. To free up pages of RAM, a “Linux swap” can occur and a page of memory is copied from the RAM to preconfigured space on the hard disk. Linux swaps allow a system to harness more memory than was originally physically available. However, swapping does have disadvantages. Because hard disks have a much slower memory than RAM, virtual private server performance may slow down considerably. Additionally, swap thrashing can begin to take place if the system gets swamped from too many files being swapped in and out. Check for Swap Space Before we proceed to set up a swap file, we need to check if any swap files have been enabled on the VPS by looking at the summary of swap usage. Swapon –s An empty list will confirm that you have no swap files enabled: Filename Type size used Priority /dev/sda1 partition 7834620 7092 -1 Check the File System : After we know that we do not have a ...

Installing Oracle 11g R2 Express Edition

You can click here  for Orcale Installation

Parallel SSH execution and a single shell to control them all

 Execute commands simultaneously on multiple server using PSSH/CLUSTER  you can clieck here  parallel-ssh

Logrotation in Linux/unix

Log files are the most valuable tools available for Linux system security. The logrotate program is used to provide the administrator with an up-to-date record of events taking place on the system. The logrotate utility may also be used to back up log files, so copies may be used to establish patterns for system use. logrotate the logrotate program is a log file manager. It is used to regularly cycle (or rotate) log files by removing the oldest ones from your system and creating new log files. It may be used to rotate based on the age of the file or the file’s size, and usually runs automatically through the cron utility. The logrotate program may also be used to compress log files and to configure e-mail to users when they are rotated. Configuration File :-  Files /var/lib/logrotate.status   >> this file update  status of recent execution of  logrotation. root@puppet:~/sadeek/big# ls -l /var/lib/logrotate/status -rw-r--r-- 1 root root 2030 Feb...