Author Archive
Google 411 – 1-800-466-4411
by Hersey on Feb.23, 2010, under My Notes
Check out Google 411 – 1-800-GOOG-411 or 1-800-466-4411
Google’s new 411 service is free, fast and easy to use. Give it a try now and see how simple it is to find and connect with local businesses for free.
Just call 1-800-466-4411
Unix tail (like) utility for Windows
by Hersey on Nov.25, 2009, under Tools
Bare Metal Software’s Bare Tail
Bare Tail is a handy little free utility that allows you to monitor log files on Windows real-time. Basically a GUI of the Unix command tail -f.
Allows you to tail monitor multiple files. Pretty neat check it out here http://www.baremetalsoft.com/baretail/index.php
The Windows 2003 Resource kit contains a command line tail utility that is also pretty handy.
Failover to Standby Datamover
by Hersey on Nov.05, 2009, under My Notes
Last night a tech from EMC was here to update the Control Station and DART code on our Celerra to enable file system deduplication (more about this later).
As part of this process we had to failover to our standby datamover. Thought these commands might be useful later so here they are.
server_2 – Primary datamover
server_3 – Standby datamover
Fail over to standby mover
# server_standby server_2 -a mover
Faults server_x and renames it to server_2.faulted.server_3
Renames server_3 to server_2
server_3 is now online as server_2
During the time it took to failover I dropped 3 pings to the datamover.
Fall back to primary mover
# server_standby server_2.faulted.server_3 -r mover
Renames standby server to server_3
Renames server_2.faulted.server_3 to server_2
server_2 is now back online as the primary mover.
Again I dropped 3 pings while the datamovers switched.
Here are a couple other useful Celerra commands.
Listing your datamovers and their status from the command line:
# /nas/bin/nas_server -l
id type acl slot groupID state name
1 1 0 2 0 server_2
2 4 0 3 0 server_3
You can get this info from the GUI but this is quick if you are logged into the Control Station CLI.
View the nas version running on your datamovers:
# server_version ALL
server_2 : Product: EMC Celerra File Server Version: T5.6.46.410
server_3 : Product: EMC Celerra File Server Version: T5.6.46.410
Basic stuff but it might be useful to have on hand later.
VMware Cookbook
by Hersey on Nov.03, 2009, under Virtualization
I just picked this up today – VMware Cookbook – A Real-World Guide to Effective VMware Use
Most of the book was written while vSphere was still in beta so the book covers ESX/ESXi 3.5 and Virtual Center 2.5.
I have only thumbed through it so far but it looks like there is a lot of good information. There are some pretty good tables with the configuration differences between 3.5 and 4 in Chapter 1. The command line reference in Chapter 5 should be useful to both versions, as well as the Security stuff in Chapter 6.
Looking forward to reading the book cover to cover.
Another nice Windows Disk Defrag Utility
by Hersey on Sep.29, 2009, under Cool Stuff, Tools
Defraggler – http://www.piriform.com/defraggler
Use Defraggler to defrag your entire hard drive, or individual files – unique in the industry. This compact and portable Windows application supports NTFS and FAT32 file systems.
And it’s free for personal and commercial use.
Free DLL Icon Extractor
by Hersey on Sep.22, 2009, under Cool Stuff
Handy little free utility that allows you to extract icons from dlls or exes and save them as an ico file.
Download it here http://www.nirsoft.net/utils/iconsext.html
Setting Up a Serial Console on RedHat Linux 9.0
by Hersey on Aug.08, 2009, under My Notes
I put these instuctions together several years ago. I am moving from a co-located physical server to a VPS with Hands-on Web Hosting so in the process of moving I am trying to consolidate some of my older sites that I no longer update. I am guessing these instructions should also be usable on newer versions of RedHat, Fedora, or other Linux distros.
–
If you are running RedHat 9.0 and want to run “headless” (no monitor, keyboard, or mouse) but still want to have a console to receive console messages or login, here are the basics of what I did to get it working.
This example will set up a serial console on Com 1 (ttyS0) at 38.4K Baud, Data bits 8, Parity None, 1 stop bit.
Requirements:
* agetty – alternative Linux getty – agetty is included in the RedHat 9.0 Installation (unless you chose not to install it)
* A Null Modem Cable – To connect to your PC, laptop, or terminal. You can make one yourself or pick one up from Radio Shack for a few bucks.
* Running lilo as your boot loader.
* Support for console on serial port must be compiled into the kernel (not loaded as a module) This option is located under Character devices – it is compiled in by default on Redhat 9 installations.
* Root access.
Make sure you set up your BIOS to continue on Keyboard or Mouse errors. Some machines will allow you to ignore these errors specifically, on others you may have to configure it to continue on any error.
In /etc/lilo.conf add this to the global section:
serial = 0,38400n8
Then add this to the append line in the kernel section:
append = “console=ttyS0,38400n8″
If you are already using an append for other options just add console=ttyS0,38400n8 to the end of those. Once you have made the changes to /etc/lilo.conf remember to run /sbin/lilo to set the new configuration for the next boot.
To enable the ability to login on to the machine using the serial console add the following line to /etc/inittab:
s0:12345:respawn:/sbin/agetty -i -h -L 38400 ttyS0 vt100
Connect the null modem cable to Com 1 and then to your PC, Laptop, or Terminal. Configure the connection (terminal program) for 38400 baud (38.4k), 8 data bits, parity none, and stop bits 1. (On windows you can connect using Hyperterminal, TeraTerm, or any other terminal program that supports serial ports. On a Linux machine you can use minicom).
Now reboot the linux box that you configured the serial console on and monitor the connection. You should see the kernel decompress and then the boot messages over your serial connection. Once the machine has finished booting you should receive a logon prompt on the console.
If you receive a bunch of garbage on the terminal check your baud and parity settings. If you do not receive a logon prompt check you inittab configuration and make sure agetty is running on ttyS0 (ps -ef | grep agetty).
For more help check out the man pages for agetty, lilo, lilo.conf, and inittab.
You can also try a google search for linux serial console, there are a lot of other similar ways to do this.
Staging Patches in vSphere vCenter Update Manager
by Hersey on Jul.20, 2009, under My Notes, Tools, Virtualization
New feature in vCenter Update Manager allows you to stage vSphere updates before installing them.
Use the Stage wizard to download the patches before using remediation. This downloads and prepares the patches while the host is still online. This decrease the amount of time the host is off line (in maintenance mode) will applying patches.
You can stage at the cluster and Data Center level to prepare all hosts in the cluster for remediation.
Shortcuts in Home-Inventory-Hosts and Clusters
Just updated to ESX 4.0.0 build 175625. Staging took about 3 1/2 minutes total and remediation took about 12 minutes per host (this include Entering maintenance mode, VM migration, patch installation, reboot, exit maintenance mode). Three and a half minutes of savings may not seem like much, and across three hosts it really isn’t that big of a deal, but across 20 hosts that would make a huge difference.
Awesome new vSphere feature!
vSphere vNetwork Distributed Switch vDS Configuration
by Hersey on Jul.17, 2009, under My Notes, Networking
One of the new features of vSphere is the vNetwork Distributed Switch (vDS). Basically vDS allows you to create, manage, and provision your virtual network across all of your vSphere hosts in vCenter. vDS is available under the Enterprise Plus license.
Here is how I set up my vDS. I basically used the 3 host configuration example in What’s New in VMware vSphere 4: Virtual Networking white paper as a guide.
First I created a new vNetwork Distributed Switch in Inventory->Networking.
I configured it for 8 dvUplink ports. Why 8? Well I have 8 NICs in each of my host, and I would like to be able to use and manage all eight of them across one vDS.
I added each of my host to the vDS but did not add any physical adapters yet.
After the new vDS is created I created my port groups. One port group for the Service Console, one for vmotion, and one for each of my production VLANs.
When creating these port groups I just used the defaults except for changing the VLANs where needed.
Now that I have my vDS set up, time to migrate the host networks to the new switch. In Inventory->Hosts and Clusters select the host Configuration tab then Networking and the Distributed Virtual Switch button.
First i migrated the Virtual Machine networks to the new vDS. I took one NIC out of the port channel on the physical switch and added that physical NICs to the vDS. I did this for each of my hosts.
Then I use the Migrate Virtual Machine Networking wizard to move all of my VMs from the vSwitch port groups to the new vDS.
After this is done I add the rest of the physical NICs associated with my VM network to the vDS and recreate the port channel on the physical switch.
Now on to the vmkernel ports. I used the Manage Virtual Adapters wizard to migrate my VMotion VMKernel adapter to the new vDS.
I then did the same to my service console. Before I started making changes to the Service Console I put the host in maintenance mode. I created a new service console with a new IP address on the same subnet on my management port group and made sure I had connectivitiy (OK I did not do this the first time, messed up and lost the Service Console connectivity to my host – had to go CLI to fix it, but that is a completely different multi-page post in itself – very thankful for the spare NIC I have in each host).
Since my vMotion vmkernel port and Service Console are now on the vDS I attached their physical NICs to the new vDS and then added them to the port channel on the physical switch.
The only issue I had was with the iSCSI vmkernel ports. I was not able to get them to work on the vDS so they are still configured on a vSwitch on each hosts.
Not sure why I could not get it to work, but I will tackle that another day.
After I verified everything works, I deleted the old Virtual Switches from each host.
Just a quick overview of how I set up my vDS. Hope you find it helpful.
TGIF!
HAVE A GREAT WEEKEND!!!
Vizioncore Puzzle Contest – I WON!
by Hersey on Jul.14, 2009, under Cool Stuff
Check it out I was chosen as one of the winners in the Vizioncore Crossword Puzzle contest that has been going on the for the last few weeks! The contest was to promote the release Vizioncore’s backup product vRanger Pro DPP 4.0.
I guessed at the last clue and looks like I got it right.
Very Awesome!!!











