Zero Filling a Disk in Linux

Zero Filling a Disk in Linux

The simple way to wipe or zerofill a disk is: dd if=/dev/zero of=/dev/sd? bs=1M However I found an article describing how to zero-fill with a progress indicator using pipebench, installed on Debian/Ubuntu ...

Increasing CentOS LVM under VMWare

Increasing CentOS LVM under VMWare

Background: I had an existing CentOS machine as a virtual machine running on VMWare ESX Server and it was running out of space so for future reference I did the ...

SquidGuard LDAP User Search and Special Characters

SquidGuard LDAP User Search and Special Characters

So I had a problem with the ldapusersearch string as some eejit has created an OU with spaces and an apostrophe in the name. So the characters are represented as: comma ...

Flushing local client DNS cache

Flushing local client DNS cache

From info I found here. This is how to flush the local client DNS cache. Windows: ipconfig /flushdns Linux: sudo /etc/init.d/networking restart Mac: lookupd -flushcache

Browsing all articles from February, 2011

Calf cramps after swimming

I have been experiencing cramps and pain in my right calf for a few weeks now which has forced me to cut down my swimming. The problem started when I [...]

Plesk 8.4.0 Upgrage – httpd 100%

Scary biscuits. I upgraded Plesk base packages 8.4.0 to 8.6.0, and I usually do the base packages before the other stuff. The base update went fine so I moved on [...]

Powershell Scheduled Task

To run a powershell script from a scheduled task the following can be used: C:\WINDOWS\system32\windowspowershell\v1.0\powershell.exe “& ‘c:\scripts\Send-ExchangeServerSummary.ps1′”

Add Exchange Snapin to Windows Powershell

Trying to run exchange-specific commands in the windows powershell returns errors so to make the windows powershell aware of the exchange commands we need to add the appropriate snap in [...]

Exchange 2007 Re-build Problem

We had a problem when re-building one of our client access / hub transport machines from scratch. The Exchange installation would not proceed as the machine existed before with the [...]

Killing Memory Hogs

On an old server I temporarily added the following script as a cron job to find and kill processes using too much memory. This is just a stop gap until [...]

Crontab -e returns a number

On a solaris system I sometimes try to edit the crontab file with crontab -e and all I get in return is a number (signifying the number of characters by [...]

MySQL: marked as crashed and should be repaired

I was receiving the following error message in a MySQL database. SQL Error: Table ‘./dbname/tablename’ is marked as crashed and should be repaired So first I tried: REPAIR TABLE `tablename`; [...]

MySQL Structure Backup

To backup / dump only the structure of a MySQL database (without the data) use the following: mysqldump -u root -p –no-data –all-databases > /var/struct_only.sql

Unix Timestamps and MySQL

Unix timestamps (the number of seconds since Jan 1st 1970) can be converted online at:http://www.unixtimestamp.comSome example dates:26 Feb 2006 19:37 114100066826 Feb 2007 19:37 117253662026 Feb 2008 19:37 120407262012 Aug [...]