Pio's work related musings

Pio's work related musings

David  //  

May 20 / 3:09am

Error: "The resource vswif0 is in use" when changing service console IP

When you try to change a service console IP from DHCP to Fixed, you'll get this error.

A simple workaround is to add a second service console with a new IP and delete the original.

Filed under  //  vmware  
Nov 12 / 4:03am

Serial ports created during a P2V process & why you should delete them asap

A quick tip for machines that have just been P2V'd with vConverter: 

Make sure you remove the TTY / serial devices which are automatically created. 

These are class as mapped host devices but unlike a mapped host cd drive, they cannot be disconnected without powering off the new VM.

As a result you can't vMotion the new VM and hence it stops DRS from being able to migrate the VM and also you can't put the host into maintenance mode (such as during a host update patch process)

Filed under  //  vmware  
Nov 12 / 2:20am

VMWare iSCSI access policy in vSphere ESX4.1

The iSCSI access policy is the method VMware uses to leverage multiple paths to iSCSI storage.

By default even if you have multiple paths from VMWare to your storage, it will use an active/passive configuration, usually meaning that you'll have a 1Gb/s bottleneck (unless you're fortunate enough to be using 10Gb/s networking.

To change the policy in older versions of VMware, you updated the properties of each volume on each server and changed the drop down to the value you want (usually Round Robin).  The change was instantaneous meaning a misclick of the list actually changed the value.

In ESX 4.1 this behaviour has been changed by adding a button next to the drop down.  You need to make sure you click this button for the change to be applied, otherwise you'll be wasting your time.

Vmware-iscsi-policy
Filed under  //  vmware  
Sep 4 / 6:39am

VMWare power on error after reboot

If you get the error in vCenter while powering on VMs "The operation is not allowed in the current state of the host", try connecting directly to the host and powering it on that way. 

If this works, unfortunately you'll need to remove the Host from vCenter and re-add it in order to be able to power on the server from within vCenter

Filed under  //  vmware  
Oct 21 / 4:26am

Monitoring VMware vSphere ESX4 with Dell ITAssistant with SNMP

This is a howto for setting up SNMP on VMware vSphere ESX4 to work with ITAssistant, written because there's precious little documentation on the matter and what documentation exists is quite often misleading or plain wrong!  Vmware in their wisdom have completely changed the way SNMP is configured in vSphere ESX4 (note not ESX4i which is a completely different kettle of fish and covered elsewhere).  This means (young padawan) you have to unlearn everything you knew and any documentation for pre-vSphere can be pretty much thrown out of the window.  The version used was 4.0.0 but should apply to future versions too.

Install Openmanage 6.1.x or higher

This is done the same way as on older vmware servers or linux systems.

1) download and unzip the Openmanage redhat package (OM_6.1.0_ManNode_A00.tar.gz) from the dell website to someone on in your vmware service console.

gzip -d OM_6.1.0_ManNode_A00.tar.gz
tar -xvf OM_6.1.0_ManNode_A00.tar

This will give the following files/volders:
COPYRIGHT.txt
docs/
license.txt
linux/
setup.sh

2) Run setup (as root) and select the first 3 options
sh setup.sh

##############################################

Server Administrator Custom Install Utility

##############################################

 

  Components for Server Administrator Managed Node Software:

 

    [x] 1. Server Administrator Web Server

    [x] 2. Server Instrumentation

    [x] 3. Storage Management

    [ ] 4. Remote Access Core Components

    [ ] 5. Remote Access SA Plugin Components

    [ ] 6. All

 

  Enter the number to select a component from the above list.

  Enter q to quit.

 

Then select i to install

3) start the Openmanage services
srvadmin-services.sh  start

4) Open the vmware firewall to allo access to the openmanage web interface

/usr/sbin/esxcfg-firewall -o 1311,tcp,in,OpenManage

Make sure you test it so you know openmanage is working and can see your hardware.  If you can see the disk systems, memory, cpus etc, then fix openmanage first.

Setup passive polling from ITAssistant

Passive monitoring is where the ITAssistant polls the server at a regular interval.  Supported methods in ITAssistant are CIM, SNMP and IPMI.  SNMP with the "get" string is the usual method and what this howto covers.  The ITAssistant documentation recommends creating a new readonly string for use with ITAssistant.

1) Edit the snmp conf file
/etc/snmp/snmpd.conf

2) Locate line 41 which should contain this string:
com2sec notConfigUser  default       public

3) Change the value from public to your string used with discovery in ITAssistant.

4) Append the following to the bottom of the file
smuxpeer .1.3.6.1.4.1.674.10892.1

This allows the snmp service to also serve out the Dell MIB information.

5) Restart the SNMPD service
/sbin/service snmpd restart
It often shows "failed" for the stop part but you can ignore that.

6) Restart the Dell Openmanage services for good measure
srvadmin-services.sh restart

7) Open up the SNMP service on the vmware firewall:
/usr/sbin/esxcfg-firewall -e snmpd

7) Test SNMP with the troubleshooting tool in ITAssistant (tools->troubleshooting tool).  Select the SNMP connectivity test and click the configure button to change the get string to your string (if you're not using

Alternatively use snmpwalk on the Dell MIB Tree
snmpwalk -v2c -c <your-string> 127.0.0.1 .1.3.6.1.4.1.674.10892.1
This should produce alot of scrolling text as it prints all the snmp output.

I'm still ironing out the quirks with active alerts (SNMP traps) and hope to have a definitive guide soon!

Filed under  //  dell   itassistant   vmware