Saturday, March 29, 2008

Place in India


I like this photographs

Friday, March 28, 2008

Trying To Be a Photographer Part5

May be I can become a good photographer.

Yesterday I was speaking to one of my friend and he happen to be a expert in SLR camera. He shown me his 3500USD camera and I was like OMG , can I ever buy such camera in my life time. My client team leader was passing by and she asked is that Vikash camera? . I told I am not that rich to buy such camera till IRS (Internal revenue service which is supposed to do my US tax return) help me. My friend told he will teach me basic so that I can start learning at my own. Why not , I can do it. Its not a bad idea to become amateur photographer ? Lets see if my family approve me to buy such a expensive lens?

EF 70-200mm f/2.8L USM

Thursday, March 27, 2008

TRUCK BOMB which create terrorist

This video was send as a part of FWD: email to me, but when I looked at this video I was shocked. Just think about those people who suffered because of these. Those kid who has to live with parents or without limbs. And then another terrorist get born. When it is going to STOP . GOD has create such a beautiful place called EARTH and improved its beauty by allocating human life and we human started doing un human act. PLEASE STOP THIS

My Dream VCP

I started learning VMWare without having clue about it. When I spend around one year I got interest in it. I got opportunity to work for my current client from onsite and asked for my interested technology by my client team leader. Without failing I told VMWare and she also offer me performance monitoring (It was new team formed ). I told OK for both since this was a great opportunity to learn and develop my skill set. At the same time VMWare infrastructure was getting upgraded to new version from ESX2.X to VI3. As soon as I placed into VMWare team I was given complete overview of infrastructure and then asked to draw it on VISIO. I completed my visio drawing and got good feedback for it. This boosted my confidence and then I started play around the technology more. Only draw back for me was less exposure to Linux and shell scripting. I can understand shell scripting but could write one. But I never felt any trouble with that. I focused more on learning technology rather than scripting. I became one of the active team members for the VMWare and started getting involved into some key decision. I also got some more understanding about SAN infrastructure. After we successfully completed our migration to VI3 client were ready for some VMWare classroom training as they were having some credit for training. I got a option to do that training. Trainer was directly from VMWare. I completed my training by 14th December 2007 and was ready for my certification. After going through all those training material
http://www.megashare.com/358148

password: vcp

I gave my exam on 25th of Jan 2008 and completed with 98%. Ahaaa I missed out by 2% J . While going to test center I escape one accident because of some crazy driver. Exam center in charge told take your own time since these exam take long time. I told OK since I thought he may be have more idea about such exam. I completed my exam in 30 minute and went to him to collect my score card. He told just before you guy failed with 67% do you know him. I told you can pass my number and ask him to call me ,if he need any help . Thanks GOD that I am now VCP (VMWARE CERTIFIED PROFESSIONAL).







Same day I went to meet my friend in LA/SAN JOSE .

Trying To Be a Photographer Part1

I tried my luck every where and bought 700$ worth camera thinking that I am going to become photographer. Do you think I can ? I really doubt. Just buying SLR camera does not guarantee that you will become a photographer. But I always has a dream to buy a nice SLR camera. This came I bought because I wanted to capture precious moment of my new born baby. My baby was expected on 8th of September 2007.

Wednesday, March 26, 2008

Allow SSH access for root user

SSH is blocked by default for the root user.

To enable the root access
Edit the file /etc/ssh/sshd_config
You need to change the value PermitRootLogin to Yes
Needs a reboot

To open the Firewall Ports on your ESX Host:

To allow access to ESX Server for a service or management agent
1 Log on to the VI Client and select the server from the inventory panel.

The hardware configuration page for this server appears.
2 Click the Configuration tab and click Security Profile.

Select the SSH Client and SSH Server checkbox and click OK.

Set Directory colour for Putty (xterm)

Change color for xterm
/etc/ DIR_COLORS.xterm

# Text color codes:
# 30=black 31=red 32=green 33=yellow 34=blue 35=magenta 36=cyan 37=white
# Background color codes:
# 40=black 41=red 42=green 43=yellow 44=blue 45=magenta 46=cyan 47=white
NORMAL 00 # global default, although everything should be something.
FILE 00 # normal file
DIR 00;36 # directory


Sample sets the Directorycolor to cyan

Place the following file with a dot in your userdirectory to have usercustomized colors .DIR_COLORS.xterm

How to commit the snapshot offline

I open the parent vmdk file with nano:
SRV01.vmdk
-------------------------
version=1
CID=e3422786
parentCID=ffffffff

then made note of CID value to be used in delta vmdk reference.

I also made note of the LUN UUID under /vmfs/volumes/xxx-xxx-xxx/SRV01 because it is reference by the delta(child) vmdk file

then i opened the snapshot delta(child) vmdk file with nano:
SRV01-000010.vmdk
----------------------------
version=1
CID=44da2775
parentCID=e3422786

Made sure the ParendCID match the parent initial vmdk file.
The line in the delta vmdk file referening to location of parent must be referening to correct UUID, I had my initial EVA LUN's and new EVA 8000 LUN presented and these UUID's changed thus it could not locate the parent disk.

then i used vmkfstools -i to commit or called clone the delta and parent vmdk file into single vmdk file with all changes into one.
"vmkfstools -i SRV01-000010.vmdk /vmfs/volumes/xxx-xxx-xxx/SRV01-version2/NewDisk1.vmdk

SRV01-000010.vmdk is the meta data file it does not contain actual data the file SRV01-000010-delta.vmdk contains the data and in the meta data file it referes to the parent vmdk file and this is how it nows which 2 files to combine and make into on new file call NewDisk1.vmdk at new folder location.

Victoria Falls or Mosi-oa-Tunya (the Smoke that Thunders)

The Victoria Falls or Mosi-oa-Tunya (the Smoke that Thunders) is a waterfall situated in southern Africa between the countries of Zambia and Zimbabwe. The falls are, by some measures, the largest waterfall in the world, as well as being among the most unusual in form, and having arguably the most diverse and easily-seen wildlife of any major waterfall site.

Mosi-oa-Tunya is the name used by the local people and Victoria Falls is the later name given by Europeans (see pre-colonial history, below).

Although Victoria Falls constitute neither the highest nor the widest waterfall in the world, their claim to be the largest is based on a width of 1.7 km (1 mile) and height of 108 m (360 ft), forming the largest sheet of falling water in the world.


The unusual form of Victoria Falls enables virtually the whole width of the falls to be viewed face-on, at the same level as the top, from as close as 60 m (200 ft), because the whole Zambezi River drops into a deep, narrow slotlike chasm, connected to a long series of gorges. Few other waterfalls allow such a close approach on foot. Many of Africa's animals and birds can be seen in the immediate vicinity of Victoria Falls, and the continent's range of river fish is also well represented in the Zambezi, enabling wildlife viewing and sport fishing to be combined with sightseeing. Victoria Falls are one of Africa's major tourist attractions, and are a UNESCO World Heritage Site (see box below). The falls are shared between Zambia and Zimbabwe, and each country has a national park to protect them and a town serving as a tourism centre: Mosi-oa-Tunya National Park and Livingstone in Zambia, and Victoria Falls National Park and the town of Victoria Falls in Zimbabwe.

Physical Features: For a considerable distance above the falls, the Zambezi flows over a level sheet of basalt, in a shallow valley bounded by low and distant sandstone hills. The river's course is dotted with numerous tree-covered islands, which increase in number as the river approaches the falls. There are no mountains, escarpments, or deep valleys which might be expected to create a waterfall, only flat plateau extending hundreds of kilometres in all directions. The falls are formed as the full width of the river plummets in a single vertical drop into a chasm 60–120 m (200–400 ft) wide, carved by its waters along a fracture zone in the basalt plateau. The depth of the chasm, called the First Gorge, varies from 80 m (262 ft) at its western end to 108 m (360 ft) in the centre. The only outlet to the First Gorge is a 110 m (360 ft) wide gap about two-thirds of the way across the width of the falls from the western end, through which the whole volume of the river pours into the Victoria Falls gorges.

Flood And Dry Season Flow Rates: There are two islands on the crest of the falls that are large enough to divide the curtain of water even at full flood: Boaruka Island (or Cataract Island) near the western bank, and Livingstone Island near the middle. At less than full flood, additional islets divide the curtain of water into separate parallel streams. The main streams are named, in order from Zimbabwe (west) to Zambia (east): Leaping Water (called Devil's Cataract by some), Main Falls, Rainbow Falls (the highest) and the Eastern Cataract. The Zambezi basin above the falls experiences a rainy season from late November to early April, and a dry season the rest of the year. The river's annual flood season is February to May with a peak in April, The spray from the falls typically rises to a height of over 400 metres (1,300 ft), and sometimes even twice as high, and is visible from up to 50 km (30 miles) away. At full moon, a "moonbow" can be seen in the spray instead of the usual daylight rainbow. During the flood season, however, it is impossible to see the foot of the falls and most of its face, and the walks along the cliff opposite it are in a constant shower and shrouded in mist. Close to the edge of the cliff, spray shoots upward like inverted rain, especially at Zambia's Knife-Edge Bridge.

As the dry season takes effect, the islets on the crest become wider and more numerous, and in September to January up to half of the rocky face of the falls may become dry and the bottom of the First Gorge can be seen along most of its length. At this time it becomes possible (though not necessarily safe) to walk across some stretches of the river at the crest. It is also possible to walk to the bottom of the First Gorge at the Zimbabwean side. The minimum flow, which occurs in November, is around a tenth of the April figure; this variation in flow is greater than that of other major falls, and causes Victoria Falls' annual average flow rate to be lower than might be expected based on the maximum flow. Victoria Falls are roughly twice the height of North America's Niagara Falls and well over twice the width of its Horseshoe Falls. In height and width Victoria Falls is rivalled only by South America's Iguazu Falls.

Check space requirment for VMWare Update Manager

When you are using VMWare update manager you need decide about space for update. VMWare has came up with nice EXCEL file which help you to decide how much space is required for your environment.

http://www.MegaShare.com/381483

and password would be : update

Tuesday, March 25, 2008

How to rename Virtual Server

NOTE: If you are renaming any Virtual Machine make sure that there is NO snapshots associated with the server.


A. Change name in Windows OS:
Logon to the Virtual Server
Open system properties and then select "Computer Name"
Hit change and then supply new name of the server.
It will ask for reboot, but cancel this and shut down the machine.

METHOD1 :

B. Change name on VMware Host:

Unregister the virtual server in Virtual Center: right-click on server name, select Remove.
Using an SSH client, connect to the VMware Host Service Console where the VM resides.
Rename the Virtual Server's Home Directory any drives associated with the Virtual Server

cd /vmfs/volume/"LUN of Virtual Server"
sudo mv "oldservername" "newservername"
cd "newservername>"
Now rename all the file as shown in the pic. To rename the file use the following command

sudo mv "old file name" "newfile name"



After the rename the file should look like




PS: Here we are renaming server from NTDBPH2057M00 to NTAPPH2057M00

4. Update the descriptor file for each disk . In the above example the file would be ntapph2057m00_1.vmdk and ntapph2057m00.vmdk. Use VI or SCP to edit the file .You will find following entry RW 25165824 VMFS "ntdbph2057m00-flat.vmdk" and this need to be changed to RW 25165824 VMFS "ntapph2057m00-flat.vmdk"

5. Update the .vmxf file . In above example we have to update ntapph2057m00.vmxf. There will be something like ntdbph2057m00.vmx. Update the server name here

6. Update the file .vmx . In the above example we have to change following lines
nvram = "ntbph2057m00.nvram"
displayName = "ntdbph2057m00"
extendedConfigFile = "ntdbph2057m00.vmxf"

and remove following lines from the VMX file
migrate.hostlog = "./ntdbph2057m00-63889e62.hlog"
sched.swap.derivedName = "/vmfs/volumes/47963ca5-78df4610-1696-01a4bbe0612/ntdbph2057m00/ntdbph2057m00-63889e62.vswp"

7. Register the vmx file with the host and for example
sudo vmware-cmd -s register /vmfs/volumes/vmsan-p21-416/ntapph2057m00/ntapph2057m00.vmx.
8. VM with the new name should be avilable under Virtual Center. Edit the setting for the VM’s and point it to the correct Hard Disk. Make sure you remove the Hard Disk and then re—add them back.

9. Power On the machine and it will ask to confirm if you have to create a new identifier. Create a new one. VM will power on if every thing has been setup correctly

METHOD2 :

  1. Shut down the virtual machine.
  2. Rename the virtual machine inside the VC by right click and select rename.
  3. Once you are done with rename migrate this virtual machine to a different lun.
  4. As this machine move to different lun it rename all the required files which has been described in above steps.

Sunday, March 23, 2008

Why gorilla became crazy?

A man and his wife were spending the day at the zoo. She was wearing a loose-fitting pink dress, sleeveless with straps. He was wearing his usual jeans and t-shirt.

As they walked through the ape exhibit, they passed in front of a large, silverback gorilla. Noticing the wife, the gorilla immediately went crazy. He jumped on the bars and, holding on with one hand and 2 feet, he grunted and pounded his chest with his free hand. He was obviously very excited by the pretty lady in the pink dress.

The husband, noticing the excitement, thought this was funny. He suggested that his wife tease the poor fellow some more by puckering her lips and wiggling her bottom. She played along and the gorilla got extremely excited, now making noises that would wake the dead.

Then the husband suggested that she let one of her dress straps fall to show a little more skin. She did ... and the gorilla was about to tear the bars down!

"Now, show your thighs and sort of fan your dress at him," he said.
This drove the gorilla absolutely crazy, and he started doing flips and charging the bars!

Then the husband grabbed his wife, ripped open the door to the cage, flung her in with the gorilla, slammed the cage door shut and said, "Now, tell him you have a headache AND U ARE NOT IN THE MOOD NOW."

Friday, March 21, 2008

Stopping a VM and Releasing Files

I had a big problem with file getting locked and then you have to reboot the host to release the file. Come on guys there may be better way to do so. Here is something which you will never know until unless you speak to VMWare tech support. Yeah I understand they make some bucks by hiding such stuff but still I like VMWare for their open source and customer friendly attitude.

Here is what you have to do :


Stopping a VM and Releasing Files

Stopping a VM

VMware has added a new command in VI3 to help when a user has a VM that has become unresponsive. Below are the progressives steps to go through to get the VM cleanly powered off. Whatever you do, DO NOT kill the pid for the VM from the Service Console, unless you have tried absolutely everything. Killing the pid from the Service Console may prevent the VM from restarting.

The following steps assume that the usual graceful shutdowns do not work from within the VM operating system or the Virtual Infrastructure Client. Commands are bold underscore type, with descriptions of path names and some example output is included.

1. Logon to the ESX host where the VM is running and become root.
2. vmware-cmd -l to list all the registered VMs.
3. vmware-cmd /path/copied/from/vmware-cmd getstate to get state of vm
a. If the state requires an answer:
i. vmware-cmd /path/copied/from/vmware-cmd answer
b. If no answer is needed:
i. vmware-cmd /path/copied/from/vmware-cmd stop trysoft
1. if “trysoft” does not work:
a. vmware-cmd /path/copied/from/vmware-cmd stop hard
4. If the vmware-cmd does not help next up is to kill the master user world id
5. cat /proc/vmware/vm/*/names |grep vmname where vmname is the vm that is hung
a. find the value for vmid
6. less /proc/vmware/vm/vmid value/cpu/status where vmid value is the number from above
7. scroll over to the right until you find the group field that shows vm.#### where the #### numbers after vm. will be the master user world id
8. /usr/lib/vmware/bin/vmkload_app -k 9 #### where #### is the master user world id
a. If successful you will get a WARNING message that a signal 9 is being sent
9. If vmkload_app does not help next up is to crash the vm with the vm-support -X command
10. vm-support -x to get the vmid
11. From a directory that has ample space vm-support -X #### where #### is the vmid
12. Answer all the questions with the default answers. The entire process takes about 10 minutes and creates an archive log that can be submitted to support. It will also crash the vm.

Releasing Files

Sometimes a file or set of files in a VMFS become locked and any attempts to edit them or delete will give a device or resource busy error, even though the vm associated with the files is not running. If the vm is running then you would need to stop the vm to manipulate the files. If you know that the vm is stopped then you need to find the ESX server that has the files locked and then stop the process that is locking the file(s).

1. Logon to the ESX host where the VM was last known to be running.
2. vmkfstools -D /vmfs/volumes/path/to/file to dump information on the file into /var/log/vmkernel
3. less /var/log/vmkernel and scroll to the bottom, you will see output like below:
a. Nov 29 15:49:17 vm22 vmkernel: 2:00:15:18.435 cpu6:1038)FS3: 130:
b. Nov 29 15:49:17 vm22 vmkernel: 2:00:15:18.435 cpu6:1038)Lock [type 10c00001 offset 30439424 v 21, hb offset 4154368
c. Nov 29 15:49:17 vm22 vmkernel: gen 66493, mode 1, owner 46c60a7c-94813bcf-4273-0017a44c7727 mtime 8781867]  Bold type added to number for emphasis.
d. Nov 29 15:49:17 vm22 vmkernel: 2:00:15:18.435 cpu6:1038)Addr <4, 588, 7>, gen 20, links 1, type reg, flags 0x0, uid 0, gid 0, mode 644
e. Nov 29 15:49:17 vm22 vmkernel: 2:00:15:18.435 cpu6:1038)len 23973, nb 1 tbz 0, zla 2, bs 65536
f. Nov 29 15:49:17 vm22 vmkernel: 2:00:15:18.435 cpu6:1038)FS3: 132:
4. The owner of the lock is on line 3c, the last part is all you need, in this case 0017a44c7727
5. esxcfg-info | grep -i 'system uuid' | awk -F '-' '{print $NF}' will display the system uuid of the esx server. You need to run the esxcfg-info command on each esx server in the cluster to discover the owner.
6. When you find the ESX server that matches the uuid owner, logon to that ESX server and run the command: ps -elf|grep vmname where vmname is the problem vm. Example output below:
a. 4 S root 7570 1 0 65 -10 - 435 schedu Nov27 ? 00:00:02 /usr/lib/vmware/bin/vmkload_app /usr/lib/vmware/bin/vmware-vmx -ssched.group=host/user/pool2 -@ pipe=/tmp/vmhsdaemon-0/vmxf7fb85ef5d8b3522;vm=f7fb85ef5d8b3522 /vmfs/volumes/470e25b6-37016b37-a2b3-001b78bedd4c/iu-lsps-vstest/iu-lsps-vstest.vmx0
7. Since there is a process running, pid 7570 in the example, you need to kill it by following steps 5-12 on stopping a VM above
8. Once the kill is complete the files should be released.

Thursday, March 20, 2008

WHY MEN ARE NEVER DEPRESSED:

Men Are Just Happier People-- What do you expect from such simple creatures?

Your last name stays same. The garage is all yours. Wedding plans take care of themselves. Chocolate is just another snack. You can be President. You can never be pregnant. You can wear a white T-shirt to a water park. You can wear NO shirt to a water park. Car mechanics tell you the truth.. The world is your urinal. You never have to drive to another gas station rest-room because this one is just too icky. You don't have to stop and think of which way to turn a nut on a bolt. Same work, more pay. Wrinkles add character.

People never stare at your chest when you're talking to them. The occasional well-rendered belch is practically expected. New shoes don't cut, blister, or mangle your feet. One mood all the time.

A five-day vacation requires only one suitcase. You can open all your own jars. You get extra credit for the slightest act of thoughtfulness.

Your underwear is Rs. 195 for a three-pack. Three pairs of shoes are more than enough. You almost never have strap problems in public. You are unable to see wrinkles in your clothes. Everything on your face stays its original color. The same hairstyle lasts for years, maybe decades. You only have to shave your face and neck.

One wallet and one pair of shoes -- one color for all seasons. You can wear shorts no matter how your legs look. You can "do" your nails with a pocket knife (or ur teeth!!!!! ??? ) . You have freedom of choice concerning growing a mustache.

No wonder men are happier.

Wednesday, March 19, 2008

Where is a will there is a way

This video was shot by National Geographic. I was amazed to see this


Lizard Man

Here is the lizard Man :)