101TECH is a South Florida based I.T Solution Provider.
We Deliver Enterprise Class I.T Solutions For Small , Mid-Market Business and Startup Companies.

We Can help you :
  • Maintain Your Existing Computers and Network.
  • Evaluate & recommend technology solutions.
  • Secure your vital business information and infrastructure.
  • Assist in establishing business continuity plans.
  • Monitor and Tune your Servers and Applications
  • Design and Maintain your Web site.
  • Host your Servers , Email and Other Web Services.

DRBD , Centos and unmount nfs resources

April 20th, 2009

I have recently built a DRBD + Linux HA NFS cluster , part of the structure was to create a drbd disk resource and mount it on /var/lib/nfs. This allows to switch nfs over to the secondary node without getting “stale nfs handle” errors. Heartbeat was having a hardtime doing a clean umount of the file system and ended up rebooting the machine.

Apr 20 06:47:07 fs Filesystem[9823]: [9887]: INFO: No processes on /var/lib/nfs were signalled
Apr 20 06:47:08 fs Filesystem[9823]: [9890]: ERROR: Couldn’t unmount /var/lib/nfs; trying cleanup with SIGKILL

After some poking around the systems It looked like nfs was not showtdown cleanly. looking into the rc script i changed the signal from 2 to 9

From :

stop)
# Stop daemons.
echo -n $”Shutting down NFS mountd: ”
killproc rpc.mountd
echo
echo -n $”Shutting down NFS daemon: ”
killproc nfsd -2
echo

To :

stop)
# Stop daemons.
echo -n $”Shutting down NFS mountd: ”
killproc rpc.mountd
echo
echo -n $”Shutting down NFS daemon: ”
killproc nfsd -9
echo

and now, all is well :)

Apr 20 06:52:49 fs Filesystem[8696]: [8754]: INFO: unmounted /var/lib/nfs successfully

searching the web shows this is a somewhat known issue

Change VMware fusion network settings

April 3rd, 2009

After a long day restoring my mac from backups I finally started up my virtual machines only to find out my network settings are configured wrong , I use static ip’s on my vm’s so the easy way was to just get my old settings back , here’s how:

Stop all your vm’s , exit fusion and follow the process

1. remove current settings :

cd /Library/Application\ Support/VMware\ Fusion/
sudo rm locations

2. rebuild config ( script does not need your answers ) :

sudo ./vmware-config-net.pl
sudo ./boot.sh –restart

3. change your ip in the locations file :

sudo vi locations
change this line ( for hostonly address )
answer VNET_8_HOSTONLY_HOSTADDR 192.168.119.1

4. apply settings

sudo ./vmware-config-net.pl
sudo ./boot.sh –restart

5. verify

ifconfig -a

Fix word 2007 startup issues

March 23rd, 2009

If you are having issue with word when double clicking a document or launching an attachment , it could be a corrupt reg key.
open registry editor and rename the following value :
HKEY_CURRENT_USER\Software\Microsoft\Office\version number\Word\Data
where version number is your office version ( 2007 = 12 ) .

you can also do this via command line ( as administrator )

reg delete HKCU\Software\Microsoft\Office\12.0\Word\Data /f

this article has some more good info.

Check postgesql table size

March 23rd, 2009

SELECT relname, reltuples, relpages * 8 / 1024 AS “MB” FROM pg_class ORDER BY relpages DESC;

original post

Limit account number in qmailadmin

March 13th, 2009

you can do this by creating ( or editing ) /var/vpopmail/domains/domainname/.qmailadmin-limits , the below code will limit all settings to 30 accounts per feature.

maxpopaccounts: 30
maxaliases: 30
maxforwards: 30
maxautoresponders: 30
maxmailinglists: 30