The comments below are just a reminder for the next time I’ll need to increase the size of a mounted LVM2 enabled filesystem.
If you don’t have enough space left in the existing volume group, you have to create and add a physical volume.
When the disk is added to a running system, you may need to reinitialize the adapter to get the disk listed.
echo "- - -" > /sys/class/scsi_host/host#/scan
# pvcreate /dev/md6
Physical volume "/dev/md6" successfully created
Extend the existing volume group with the new physical volume:
# vgextend system /dev/md6
Volume group "system" successfully extended
Use ‘lvdisplay’ to search for the correct logical volume name you want to extend. In my case I needed to extend the logical volume on which the /var filesystem lies. This filesystem is named differently in the df output. The example below shows an 5G increase of the var logical volume.
# lvextend -L +5G /dev/system/lv-var
Extending logical volume lv-var to 23.00 GB
Logical volume lv-var successfully resized
The final step is to resize the filesystem to expand to fit in the resized logical volume:
# resize2fs /dev/system/lv-var
resize2fs 1.40-WIP (14-Nov-2006)
Filesystem at /dev/system/lv-var is mounted on /var; on-line resizing required
old desc_blocks = 2, new_desc_blocks = 2
Performing an on-line resize of /dev/system/lv-var to 6029312 (4k) blocks.
The filesystem on /dev/system/lv-var is now 6029312 blocks long.
Done and ready for use!
For a new and interesting project the hardware was finally delivered. It took some time to figure out what kind of hardware was capable of hosting three resource intensive SAP instances in a LPAR environment. We decided that the IBM p5 560Q with HMC, dual quad core and loads of memory should do the job. After unpacking, racking, cabling the fun part starts. Building a nice configuration. However, all went smooth until booting the server. After powering on the server the already installed service partition won’t become active and was stuck leaving a 0c31 error code on the display and HMC. It appears to be that the system was looking for a console. Booting again, now with an vterm open still gave no output. I had to connect a serial console running at a speed of 19200 baud and press 1. Horay! Just another hard day at the IT office..
The virusscanner I use for scanning mail on my home mailserver using mailscanner is clamav. Lately this package reported “Your ClamAV installation is OUTDATED”. This happens when new virus definitions have been installed while using an older not up to date version of the scan engine. Once in a while clamav releases a new version of the scanner to keep up with new anti virii techniques.
Because Debian stable will not update this package when a new version is released, you’re stuck with an old inconsistent virusscanner. Therefore Debian has come up with a project called “debian-volatile”. Which allows you to keep regarly changing packages functional the nice way. The packages in debian-volatile are also being checked for security updates, which is a nice thing.
For more info about this Debian project, see http://www.debian.org/volatile.
Tuesday I installed FuzzyOcrPlugin because there were quite a lot of spam emails coming through my spamassassin spam filter lately. It appeared to be mostly messages containing only an image with spam text on it which could not be processed.
There were some minor issues getting this plugin to work. Had to install gocr, libungif-bin and some other dependencies. Since the plugin is active there havn’t been any spam message that sneaked through. So I am very pleased with the result, hope it stays like this for some time.
For our monitoring system (nagios) we use snmp to check the status of several services. On RHEL4 hosts the snmp query timed out. By using snmpwalk you can see the query times out every time it reaches ‘hrStorageUsed.12′, see below. By increasing the timeout value of snmpwalk the command completes with some delay.
$ snmpwalk -v 3 -u username -A password -l authnopriv hostname
-cut-
HOST-RESOURCES-MIB::hrStorageUsed.12 = INTEGER: 0
Timeout: No Response from hostname
After investigation it appears to be the SELinux setting for snmpd which causes the delay. By disabling SELinux for snmpd the timeout don’t occur anymore.
You can disable SELinux for snmpd by issuing the following command:
# setsebool snmpd_disable_trans=1
To activate this change restart snmpd (service snmpd restart). To preserve this change after a reboot disable snmpd_disable_trans in ‘/etc/selinux/targeted/booleans’.
Yesterday I had some discussion with a colleage about the growing amount of spam thats sneaks through my SpamAssassin filter. He gave me some good advise to install Rules du Jour. This is a bash script that basicly downloads and installs new versions of rulesets for SpamAssassin as the authors release new versions. Information about the rulessets which can be used is found at SARE (SpamAssassin Rules Emporium).
So I installed and configured it right away and now one day has past the result looks very promising. This is definitly a must have enhancement to the standard rulessets of SpamAssassin.
By means of a business relationship activity Dell invited SARA for a driving course at SEC (Safety Experience Center) in Rosmalen. I was one of the happy few.
It was great fun to drive all sorts of cars on the various tracks. We did some brake and manouvre tests runs. We also learned how to react on understeer and oversteer.
My third 5-day Oracle course is finished today. This was the Oracle 10g Application server workshop I Ed 2 training. A lot of things were not new to me because I work with Apache and Linux on a daily basis. But the chapters which covered Java were interesting. During the lessons about Apache I had some time to explore the mozilla configuration of the instructors pc.
Normally it’s not possible to access the word wide web, because the trainging pc’s are behind a proxy, but when you change the proxy configuration of your brower from ges-proxy.us.oracle.com to ip-address 148.87.19.20 , you can browse to wherever you want. I am not sure this works for every training facility, but it’s worth a try. Happy surfing!
Recent Comments