pondelok 25. augusta 2014

RHEL/CentOS 7 on SW RAID1 with LVM

Installing RHEL/CentOS 7 on software RAID 1 with LVM

I wasn't able to do this task in new CentOS 7. You can set up RAID as well as LVM but not LVM on RAID in new anaconda installer.
The quick hack is to use CentOS 6.5 DVD to do the partitioning and then hit back to cancel installation. Then, when booting CentOS 7 just select mount points for created logical volumes. It will recognize the RAID arrays as well as volume group with created logical volumes.
If you know better way, let me know in the comments.
Thanks, Aas.

štvrtok 13. marca 2014

SendmailAnalyzer on RHEL/CentOS/Fedora

Installation of SendmailAnalyzer on RHEL/CentOS/Fedora via RPM package.


First install tool for building RPM packages
yum install rpm-build
Next, download sorces from sourceforge.net
wget "http://downloads.sourceforge.net/project/sa-report/sa-report/8.7/sendmailanalyzer-8.7.tar.gz"
Create work directories
mkdir -p ~/rpmbuild/{SOURCES,SPECS}
Extract spec file from the tarball
tar xf sendmailanalyzer-8.7.tar.gz -C ~/rpmbuild/SPECS --strip-components=3 sendmailanalyzer-8.7/packaging/RPM/sendmailanalyzer.spec
Dive into SPECS folder
cd ~/rpmbuild/SPECS/
And buid the package
rpmbuild -bb sendmailanalyzer.spec
Finally we can install it with yum
yum localinstall ../RPMS/noarch/sendmailanalyzer-8.7-1.el6.noarch.rpm

 Some post installation work to do:

Uncomment the following line in /etc/cron.d/sendmailanalyzer
0 1 * * * root /usr/bin/sa_cache > /dev/null 2>&1

Uncomment /etc/httpd/conf.d/sendmailanalyzer.conf and add place from where you wish to acces the reports (your IP or "all")
Allow from 192.168.1.2

Reload configuration
service httpd reload
Start sendmailanalyzer
service sendmailanalyzer start
Enable autostart
chkconfig sendmailanalyzer on


If you would like to examine the graphs right away you don't need to wait for cron job. Just update the cache manually with /usr/bin/sa_cache.
I hope this helps someone, like this recipe helped me.

If something is written unclear or you need advice drop me an email.

Aas.