A geek joke

15
Sep
1

linux
Let me know if you find it funny :))

Filed under: Fun

Chinese Characters Aren’t Hard To Understand

19
Jun
7

chinese

Filed under: Fun

VMware HA agent has an error

16
Jun
1

I’ve been experience some problem with VMWare HA. The problem can be considered as weird since I don’t have any problem to add ESX node to the cluster except, all hosts with status “connect” all the time but once a while, some of the node will getting “HA agent has an error” and few minutes later it’s running back to normal. I did some research but mostly people on the Internet suggest to move all the VMs out, put the host in “Maintenance Mode” and reboot it, or reinstall the host, which is very inconvenient.

Below are the steps taken to resolve the issue
Solution : Uninstall & reinstall vpxa from problematic ESX host

First, let’s get the name of the running module

$rpm -qa | grep vpxa

Now we remove it

$service mgmt-vmware stop 
$/etc/init.d/vmware-vpxa stop 
$rpm -e [MODULE NAME ABOVE]

Then check again to make sure it’s gone

$rpm -qa | grep vpxa    <----This should be empty

After that we restart the service console

$service mgmt-vmware restart

Now let’s vCenter reconfigure HA by doing the following

Disconnect ESX host from cluster
Then remove ESX host from cluster 
Add ESX host to the cluster & reconfigure HA

The problem should be gone now.

Filed under: Vmware

Sync folders with Microsoft Robocopy

14
Jun
0

Lets say your source files are in Server1 and you want to get those files out to Server2, Server3, and Server4.

Your source files are in a share called Source on Server1.

Each one of your destination servers has the target directory shared out as Target.

Robocopy \\Server1\Source \\Server2\Destination /MIR /LOG+:Server2.log /NP
Robocopy \\Server1\Source \\Server3\Destination /MIR /LOG+:Server3.log /NP
Robocopy \\Server1\Source \\Server4\Destination /MIR /LOG+:Server4.log /NP

What this script does is it syncs the source folder (and all subdirectories) with the destination folder ( on all subdirectories)
So if you add a file to the source folder the next time the script is run it will add that file to all the destination folders.
If you delete a file to the source folder the next time the script is run it will delete that file from all the destination folders.
So your source folder becomes your master copy.

 

The /log switch creates a log file in the same directory as your script which records each transaction. The /NP switch hides the progress bar.

 

You can run the script manually or schedule it using the Windows scheduler.

 

Download the software here

Filed under: Microsoft

Cloud Computing Explained

5
Jun
1

I found this video on Youtube. They did an awesome job on explaining cloud computing. Enjoy!

Filed under: Vmware

Virtualization

4
Jun
0

2427791

Tagged as:

A great article about iSCSI

1
Jun
0

iscsi-design

VMWare has done a great job on creating this article. You can find it here http://www.vmware.com/files/pdf/iSCSI_design_deploy.pdf

Filed under: Vmware

SharePoint

31
May
0

sharepointjoel1_thumb_0086d6a2

Tagged as:

VCB: I forgot all about “automount disable” what now?

29
May
2

Before installing VCB and connecting the proxy host to the SAN you should disable automount via diskpart(cmd, diskpart, automount disable, automount scrub). When you don’t disable automount Windows will signature all “incoming” disks. When this happens the VMware hosts will not recognize the VMFS volumes anymore. But fortunately you can re-label the luns as VMFS.

Check with “fdisk -lu” what the current ID value is of the volumes, it’s “SFS” if Windows wrecked it. Write all the devices down and label them again as VMFS:
fdisk /dev/sd? (? the letter for that specific volume)

p
d
n
p
1
default
t
fb
X
b
1
128 (disk alignment, check your SAN manual for the correct value, 128 is correct in most cases…)
W

Now rescan the HBA devices, esxcfg-rescan vmhba0 etc etc.

Tagged as:

10 minutes Regular Expression

9
Dec
1

At the office, nothing much to do today so I played with the regular expression, here are a few fomulars I just created for Cisco gears

show processes cpu | exclude 0\.00\%.*0\.00\%.*\0\.00\%  - Shows you all the running processes, excluded the quite ones

show int status | include connected.*_4[135] - Show all ports which connected on vlan 41, 43, 45

show int status | include connected.*_4[1-5]   - Show all ports which connected on vlan 41 to 45

show int status | include connected.*_4[1-57-9]  - Show all connected port of vlan 41, 42, 43, 44, 45, 47, 48, 49 (  ex. [1-3a-c]: 1 to 3 or a to c )

show int status | include connected.*_4[^12345]  - Show all connected port of vlan 40, 46, 47, 48, 49 ( ex. [^123]: Anything but 1, 2 , 3 )

show int status | include connected.*(_4[12345]|_32) - Show all connected port of vlan 41, 42, 43, 44, 45 and 32 ( ex. [A|B] : A or B )

That should help you get the idea how to filter out the show command results

Tagged as: