V2V Critix to VMWare CentOS 6

As I was trying to convert using VMware convertor from Critix to VMWare guest OS which is using CentOS 6, I bump into a difficult problem which took me at least 24 hours trying to resolve it.

The system fails to boot up and when grub is modified to show the output text of the console, it always hang after “Probing EDD (edd=off to disable)”

This include trying to following task
1) rebuild initramfs
2) downgrade lvm2 version (this fails as one of the rpm depends on latest lvm2 to work)
3) reinstall grub
4) performing a V2V using Acronis
5) removing xe-guest tools

This solutions works for me. I have to remove the following line from the GRUB boot loader for it to work.
console=hvc0

The above line is meant for Xen Console thus VMWare does not have such feature

I do really hope this helps someone out there as I have spend alot of time troubleshooting it.

ESET ANTIVIRUS CentOS installation

Trying to install ESET ANTIVIRUS on CentOS 6 and bump into a slight issues.

Problem

error: Failed dependencies:
        /lib/ld-linux.so.2 is needed by esets-4.0-10.x86_64
        /usr/lib/gconv/UTF-16.so is needed by esets-4.0-10.x86_64

I will just need to install the necessary dependencies

yum install ed glibc.i686

Enjoy!

Dell iDRAC racadm issue

Happen to came across this problem. It does not happen to my other units of Dell Servers doing the same deployment procedure.

Take note that you need to purchase Dell DRAC Enterprise in order to execute ‘racadm’

[root@server ~]# racadm getled
 
NOTE:
This Integrated Dell Remote Access Controller does not support RACADM commands.
Please contact Dell Customer Service to upgrade your version of iDRAC.

Strangely, this should not happen to me as I have purchased Dell DRAC Enterprise. This did not happen to my previous unit of Dell Servers.

After much troubleshooting and pulling of my hair, I managed to locate the problem to this 2 specific package not installed by OMSA

yum install srvadmin-idrac7 srvadmin-idracadm7

After which, let’s try to execute the command again

[root@server ~]# racadm getled
LED State :    Not-Blinking

Looks good :) Hope it helps!

PHP Build Issue libmysqlclient.so: No such file or directory

Bump into a slight issue today

Problem:

gcc: /usr/lib64/mysql/libmysqlclient.so: No such file or directory
make: *** [sapi/fpm/php-fpm] Error 1

Solutions:

ln -s /usr/lib64/libmysqlclient.so /usr/lib64/mysql/libmysqlclient.so

A pretty quick solution for the problem I encounter :)

Export List of Website in II7

In IIS5/6, an easy way is to export the list under IIS manager.

However, in IIS7, things are easier using command line

%windir%\system32\inetsrv\appcmd list site > c:\website.xls

command is good, get things done faster :)

Enjoy!

Cisco ASA 5505 Failover Active/Standby Configuration

Here is the quick configuration command

On Active Unit

failover
failover lan unit primary
failover lan interface fo Vlan3
failover interface ip fo 10.0.0.1 255.255.255.252 standby 10.0.0.2
 
interface Ethernet0/6
 switchport access vlan 3

Secondary Configuration

failover
failover lan unit secondary
failover lan interface fo Vlan3
failover interface ip fo 10.0.0.1 255.255.255.252 standby 10.0.0.2

Force the current unit to go on standby mode

no failover active

You got to understand how failover works as this is just a quick config on Cisco ASA

Enjoy!

Changing of Hosts file to test website before real migration

Take note, you need to have administrative rights before you can edit the hosts file

Usually when you do website migration, you want to test the website in the new server before you point your live traffic over. There is a few methods is doing so but changing your host file will be the best option as it will allows you to do REAL testing

1) You need to run Notepad as a administrative rights

2) After which, go to “File” -> “Open” and key in “%systemroot%\system32\drivers\etc\hosts” (without quotes) under the “File Name”

3) You will need to add an entry like this at the end of the file.

You need to replace “x.x.x.x” with your new server IP address and “mydomain.com” with your real domain name that you are testing on

4) You will then need to close your browser, and flush the dns cache on your computer.

5) Now, try to ping your “mydomain.com” and you should see the new IP address

Hope this helps!

OpenX permission issue

Everytime when I login to my openx installation, I had this error message

Error: File permission errors detected.
These may impact the accurate delivery of your ads,
See the debug.log file for the list of unwritable files

This has to do with some of the file permission error. For my case, I just need to execute this two command to fix my problem

chmod -R a+w /home/openx/var/cache/
chmod -R a+w /home/openx/www/images/

Enjoy!

Passive FTP in Windows 2003

A quick command to enable passive FTP

Simply put, it is opening a hole in the firewall to allow passive connections to go through. You might want to google more to learn more about it. This is just a quick command to do it.

I have specific port 5500 to 5520 for this. You might need to restart the server to ensure everything is working.

cd "C:\Inetpub\AdminScripts"
adsutil.vbs set /MSFTPSVC/PassivePortRange "5500-5520"
FOR /L %I IN (5500,1,5520) DO netsh firewall add portopening TCP %I "Passive FTP"%I 
net stop msftpsvc
net start msftpsvc

Hope it helps.

Dell LCD Custom Text

Recently I had setup a HA-pair in my environment and if I do not have my computer with me, I need the NOC guys to be able to identify which is the ‘active’ unit and I found out that writing custom text to Dell LCD panel is pretty easy after some digging.

If you have not installed OMSA, please go to this link and follow the instructions.

Next, install the IMPI tool for you to be able to read/write to the LCD panel

yum install -y OpenIPMI-tools

You just need to know 2 commands to read/write to the LCD.

To see your current content on the LCD panel

ipmitool delloem lcd info

To write your custom text to the LCD panel

ipmitool delloem lcd set mode userdefined MyCustomText

There you go, it’s so simple.

Hope someone find this useful =)