Archive for July, 2008

More cables than you can shake a stick at

Thursday, July 31st, 2008

Gizmodo (my daily dose of gadget envy) has a great overview with explanations on use of the cable types in use attached to the average PC, media center or home cinema center. Get it straigh once and for all in one great list:

Giz Explains: An Illustrated Guide to Every Stupid Cable You Need

Surprise surgery today

Wednesday, July 30th, 2008

I went to see my doctor this morning about a painful lump in my left armpit, and to my surprise he sent me right on through to a surgeon in the ER at one of our local hospitals. Not 45 minutes later I was on the table under a local anaesthetic with said surgeon cutting into my armpit.

Turns out it was a mostly harmless abcess caused by an infection, but I was not a happy camper overall. Tonight I had to remove the bandages and it HURT like a mofo (my mom did the peeling, she’s a former nurse).

Right now it feels kinda weird having a one inch open cut in my armpit through which I can see the inside of me…yuk. At least I can lift up my arm again, so here’s hoping for a good night’s sleep.

VMware ESX 3i is now free

Wednesday, July 30th, 2008

As a professional user of VMware’s Virtual Infrastructure 3 (and thus ESX Server 3, which is the backbone of the VI3 suite) I personally think VMware is the leader in virtualisation right now. But as virtualisation, server consolidation through virtualisation and “Green IT” are hot focus points in the industry at the moment, Microsoft, Citrix and to a lesser extent Parallels are pushing hard to gain market share. Microsoft has released Windows Server 2008 with Hyper-V and Citrix is working hard to get their XenServer in there.

VMware had already made their Windows-based VMware Server (formerly GSX Server) free, but last week has done the same with ESX Server 3i. The 3i edition can do everything their flagship product ESX Server 3 can, it just lacks all the frills on the local server (such as local console-based management tools etc.), reducing it to the base hypervisor core which weighs in at a beautifully small 32 MB. They can do this because the management of the server does not need to reside on the server itself: you can use the VMware Infrastructure Client to manage it remotely or join the ESX 3i server in your Virtual Infrastructure 3 environment, handing over management to your VirtualCenter server.

So, if you’re looking for an easy and quickly to deploy virtualisation product, look no further. You can get all the power of ESX Server 3 for nothing by downloading and registering for an ESX3i license for free. Absolute killer.

I think this is a truly smart move by VMware: now they have a free product available in both branches of vrtualisation products types, both OS-based and hypervisor-based (i.e. bare-metal). Sweet.

Tips for the VMware VCP exam

Monday, July 28th, 2008

As I’ve been studying (well…) for the VCP (VMware Certified Professional) exam over the past days, and here’s my take on getting ready for the exam:

  1. Take the VMV13IC course (not so much a tip, but an official  prerequisite for the exam)
  2. Splash out on the optional 5th day of the course, because it’s a lab day that really helps you gain some basic hands-on exprecience (assuming you’re not already building and managing VMware systems at work)
  3. Download all pertinent manuals (all right here for the last release) and READ THEM.
  4. Go through the exam blueprint and mock exam found here

Try to avoid trusting the Testkings, Actualtests etc. you find online. VMware shuffles a lot of the questions often, and are well-known for asking stuff stright out of the manuals (which don’t feature heavily in the course). It’s okay to use the tests as exactly that: practice, but don’t let the be your only preparation.

Cisco TelePresence is pretty cool, actually

Thursday, July 24th, 2008

Yes, this is a glitzy marketing video, and yes, the product itself will probably cost an arm, a leg and selling your soul to the devil, but still I’d quite like to have this and work with it. Of course, that would mean I’d need to shave more often before going to work…

You need to a flashplayer enabled browser to view this YouTube video

Full product info here @ Cisco.

Armarac – a mini 19-inch rack that rocks

Wednesday, July 23rd, 2008

Thureon have released Armarac, a wall-mounted zero footprint mini rack that can hold several 19″ 1U or 2U servers or a wiring closet. The small size is made possible by using VertiBlade, which basically means mounting the equipment vertically. And to top it off it looks really, really great. So great in fact that it’s won a Silver Award at this year’s IDEA awards (International Design Excellence Awards). Designed by Australian firm 4design for Thureon and available in four colours (so far), this is a stunning piece of equipment:

I can actually see this thing taking off, completely replacing the boring old 10U or 21U mini-racks, especially for branch offices or distributed locations. In fact, I would happily use this anywhere, even at home.

Excellent piece of kit, I’m looking forward to getting one ;-)

Ten things you may not know about Wikipedia

Wednesday, July 23rd, 2008

While browsing Wikipedia I bumped into this interesting list, Ten things you may not know about Wikipedia (full list with descriptions can be found here). As a frequent user and sometimes contributer I found this quite interesting, especially number 6.

  1. We’re not for sale.
  2. Everyone can use our work with a few conditions.
  3. We speak Banyumasan…and about 250 other languages.
  4. You can’t actually change anything in Wikipedia…you can only add to it.
  5. We care deeply about the quality of our work.
  6. We do not expect you to trust us.
  7. We are not alone.
  8. We are only collectors.
  9. We’re neither a dictatorship nor any other political system.
  10. We’re in it for the long haul.

Of course, as with any source, you should always check before accepting anything as truth, doubly so with publicly-editable sources, but I still would actually grade my trust of Wikipedia info as 90%.

Very true

Tuesday, July 22nd, 2008

“The man who smiles when things go wrong has thought of someone to blame it on.” - Robert Bloch

Using EtherChannel for high availability on Cisco switches

Monday, July 21st, 2008

When building high availability networks or systems the three golden rules are:

  1. No single points of failure
  2. All failovers are automatic and swift
  3. Use non-proprietary technologies where possible

When coupling server to the network I myself quite like using EtherChannel. EtherChannel allows multiple physical Ethernet links to combine into one logical channel, which allows the links in the channel to share traffic load, as well as redundancy in the event that one or more links in the channel fail. So you have at least two cables linking a server to a switch, and with some intelligence in setting up the link you both double the bandwidth available to that server and make sure that a dead cable doesn’t leave your server dead in the water and you racing to the data center.

Equipment used

As a big friend of Cisco equipment I’ll use a Cisco switch to show the configuration at the switch end, although many other managed switches from other brands do support the EtherChannel standards as well. Of course the server (or in fact the network card) also needs to support the configuration, I’ll be using an HP ProLiant server today with an HP Dual Port ProLiant Network Adapter (again, other brands of course also support this configuration).
Another note: All commands used below are Cisco IOS commands. if you’re using a switch running CatOS please scroll to the end of this article for a short recap of the used commands for CatOS.

First you’ll need to check if your switch supports EtherChannel by using the show command on one of the ports you’d like to use, and look for the ‘Channel’ key word:

asp-lsw-01#show interface Gi1/5 capabilities
GigabitEthernet1/5
Model: WS-C4948-RJ-45
Type: 10/100/1000-TX
Speed: 10,100,1000,auto
Duplex: half,full,auto
Auto-MDIX: no
Trunk encap. type: 802.1Q,ISL
Trunk mode: on,off,desirable,nonegotiate
Channel: yes
Broadcast suppression: percentage(0-100), hw
Flowcontrol: rx-(off,on,desired),tx-(off,on,desired)
VLAN Membership: static, dynamic
Fast Start: yes
CoS rewrite: yes
ToS rewrite: yes
Inline power: no
SPAN: source/destination
UDLD: yes
Link Debounce: no
Link Debounce Time: no
Port Security: yes
Dot1x: yes
Maximum MTU: 9198 bytes (Jumbo Frames)
Multiple Media Types: no
Diagnostic Monitoring: N/A
Queuing: rx-(N/A), tx-(1p3q1t, Sharing/Shaping)
asp-lsw-01#

Hooray, my switch understands EtherChannels. To check the capabilities of your network card you’ll have to refer to the manufacturer’s information I’m afraid.

Cabling

As Cisco puts it:

The EtherChannel should start on a single device and end on another single device. The device can be a switch, a switch stack, a workstation, or a server.

  • Within a single switch chassis, the EtherChannel can start or end on different modules. This setup is applicable for Cisco Catalyst 4000/4500/6000/6500 switches.
  • Within a single switch stack, the EtherChannel can start or end on different stack members.

Do note that CatOS-based Cisco switches do have stricter requirements on EtherChannels, basically you can only create EtherChannels on adjoining odd/even pairs, otherwise the switch will not accept your port selections.

Rule of thumb on cabling: never ever connect a cable to a port on your network without configuring it first! Especially connecting multiple cables to the same end device can produce some very unexpected and nasty results on your network as for example STP goes haywire on ill-configured ports and disables entire trees of switches on your LAN. Connect the cables only after finishing your configuration.

Understanding EtherChannel negotiation and port mode

EtherChannel ports can use two protocols for EtherChannel negotiation: either the Cisco-proprietary PAgP or LACP (IEEE 802.3ad). I generally prefer using accepted cross-brand standards (see HA golden rule 3 above) , so we’ll use LACP here as well. When setting an EtherChannel mode in a Cisco switch, your choices are ‘on’, ‘off’, ‘active’, ‘passive’, ‘desirable’ or ‘auto’. Each mode setting forces a particular negotiation protocol and behaviour as such:

Mode Negotiation Operation
on None Enables EtherChannel, does not negotiate
off None Disables EtherChannel
active LACP Initiates negotiation to enable EtherChannel
passive LACP Responds to received negotiation requests
desirable PAgP Initiates negotiation to enable EtherChannel
auto PAgP Responds to received negotiation requests

I shall not bore you with the pros and cons of using negotiation vs. fixed configuration, you will have to decide for yourself here whether you’ll use on or active mode. In this example I’ll be using active mode.

Configuring the switch

As an EtherChannel uses multiple ports, you will have to repeat these steps for all ports you wish to couple in this channel.

1. Set the port to switchport mode (optional, only necessary on L2/L3 switches):

asp-lsw-01(config)#int Gi1/5
asp-lsw-01(config-if)#switchport

2. If you’re using VLANs, set the port to access mode for the correct VLAN (I’m using VLAN 2 in this example):

asp-lsw-01(config-if)#switchport access vlan 2
asp-lsw-01(config-if)#switchport mode access

3. As this ports connects to a server directly (as opposed to a part of the network infrastructure such as another switch) you can enable portfast, thus shortening the time the port takes to become active. Never ever enable portfast on ports connected to other switches etc.

asp-lsw-01(config-if)#spanning-tree portfast
%Warning: portfast should only be enabled on ports connected to
a single host. Connecting hubs, concentrators, switches, bridges,
etc... to this interface  when portfast is enabled, can cause
temporary bridging loops. Use with CAUTION
%Portfast has been configured on GigabitEthernet1/5 but will
only have effect when the interface is in a non-trunking mode.

4. Configure the port for EtherChannel using the mode you chose earlier. Make sure you use an unused channel group number.

asp-lsw-01(config-if)#channel-group 1 mode active
Creating a port-channel interface Port-channel 1

This concludes the configuration of the switch port (don’t forget to perform these steps on all ports that have to be linked in the EtherChannel!).

Configuring the server

As we’re using an HP ProLiant server we can configure the EtherChannel using the HP Network Configuration Utility. Other brands and types will have their own drivers and software to get this done. One thing to keep in mind is that the NIC software may not call the setup “EtherChannel” but may use other terms like “Teaming” (which is what HP calls it).

1. Start the HP Network Configuration Utility (from the task bar of the Start menu):

2. Select both listed NICs and click the ‘Team’ button. This will immediately create the team:

3. Select the team and click the ‘Properties’ button:

4. Pick the appropriate Team Type Selection, in our case “802.3ad” (which is the IEEE standard number for LACP):

5. Choose the Transmit Load Balancing Method from the next drop-down list, and click ‘Ok’ after you’ve made your selection.

6. Apply the configuration, after which the server will want to reboot. After the reboot, go back to the HP Network Configuration Utility to check that the Teaming is functioning as expected (i.e.: showing a green icon).

If all went well you should now have a new network adapter in your Windows network configuration. This is the adapter you will use to configure the network from now on (i.e.: IP address, file and printer sharing, etc.).

More, more, more…

Now that you have an EtherChannel link to your switch, ponder in this: what if the switch fails? You would in fact still lose connectivity to the server. Yowsa. Remember HA golden rule number 1: No single points of failure. You could actually create two EtherChannels (so using four network cables in total), each to a separate but interconnected switch, thus ensuring that even a switch failure wouldn’t kill the traffic to your server. If both switches are configured properly STP (Spanning Tree Protocol) will disable one of the EtherChannels while the primary is active, but will fail over to the second link if the first one dies.
How far are you willing to go for HA?

CatOS: a slightly different approach

If your Cisco switch happens to be running CatOS, the EtherChannel modes and the commands to configure the switch ports are somewhat different. The modes are:

Mode Operation
on Enables EtherChannel, does not negotiate
off Disables EtherChannel
desirable Initiates negotiation to enable EtherChannel
auto Responds to received negotiation requests

Using the same example as before the commands on CatOS would be:

1. assign the ports to the correct VLAN (VLAN 2 in this example, being set on ports 5/1 and 5/2 (as CatOS works with port sets)):

old-sw-01 (enable)set vlan 2 5/1-2
old-sw-01 (enable)set trunk 5/1-2 off

2. Enable portfast (optional):

old-sw-01 (enable)set spantree portfast 5/1-2 enable

3. Enable EtherChannel on the port set:

old-sw-01 (enable)set port channel 5/1-2 mode on

4. Set the load distribution method:

old-sw-01 (enable)set port channel all distribution mac source

This concludes the configuration of the switch ports, as you can see you don’t need to repeat these steps on CatOS as you’ve just configured both ports in the set in one go.

Small theme update

Monday, July 21st, 2008

I did just a small visual update to my theme (which I still quite like) today, mainly introducing a background slightly darker at the top to more emphasise the start of the page, changing the logo at the top and changing the font for headings and the tabs to the left to Georgia, a nice serif typeface to introduce a bit more variety to the blog, and changed the text color scheme to a more classical feel. I also added a small ‘about‘ page.