Archive for the ‘Linux’ category

Manually Rotate Logs with logrotate

September 8th, 2010

The individual configuration files for logrotate are located in /etc/logrotate.d:

# cd /etc/logrotate.d/

Then, to manually rotate the logs for exim, simply run the following.

# logrotate exim

Note: you won’t see any output, but you will notice that the exim logs in /var/log are now rotated out.

Share

Locate command not found

July 29th, 2010

Error:

# locate filename
-bash: locate: command not found

This indicates that the “slocate” package is not installed. Install it with:

yum -y install slocate

Then update the database with:

# updatedb
Share

Update 3Ware Firmware

April 22nd, 2010

1. Grab the tw_cli software, as well as the firmware for your RAID card from http://3ware.com/support/download.asp
2. Extract the firmare .zip file with “unzip”, then extract the tw_cli software and make it executable.

[root@vz ~]# tar -xvf tw_cli-linux-x86_64-x.x.x.tgz
#chmod +x tw_cli

3. Then you can update the firmware (this assumes that you’re doing so on the first array)

# ./tw_cli /c0 update fw=/root/prom0006.img

Warning: Updating the firmware can render the device driver and/or
management tools incompatible. Before you update the firmware,
it is recommended that you:

1) Back up your data.

2) Make sure you have a copy of the current firmware image so that
you can roll back, if necessary.

3) Close all applications.

Examining compatibility data from firmware image and /c0 ... Done.

New-Firmware Current-Firmware Current-Driver Current-API
------------------------------------------------------------------------
FE9X 3.08.00.029 FE9X 3.04.00.005 2.26.08.003-2.6.18RH2.06.01.006

Both API and Driver are compatible with the new firmware.
Recommendation: proceed to update.

Given the above recommendation...
Do you want to continue ? Y|N [N]: Y
Downloading the firmware from file /root/prom0006.img ...

4. Finally, reboot to enable the new firmware.

Share

cPanel Web Site Hosting by IntraHost