Wednesday, June 13, 2012

NetWare Server Migration Physical to Virtual (P2V) using VMware

Master’s guide to VMware Fault Tolerance

Extending an EagerZeroedThick Disk

http://blogs.vmware.com/vsphere/2012/06/extending-an-eagerzeroedthick-disk.html

~ # vmkfstools -X 6G -d eagerzeroedthick  /vmfs/volumes/cs-ee-symmlun-001A/cormac.vmdk                                              
Grow: 100% done. All data on '/vmfs/volumes/cs-ee-symmlun-001A/cormac.vmdk' will be overwritten with zeros from sector <8388608> onwards.
Zeroing: 100% done. 

VAAI

The following outputs shows that Hardware Acceleration is enabled on ESX to take advantage of the storage primitives on ESX 4.1 and ESXi 5.x. Use the esxcfg-advcfg command to check that the options are set to 1 (enabled):

# esxcfg-advcfg -g /DataMover/HardwareAcceleratedMove
# esxcfg-advcfg -g /DataMover/HardwareAcceleratedInit
# esxcfg-advcfg -g /VMFS3/HardwareAcceleratedLocking

To check if the storage array supports VAAI primitives, you can use the following command:

esxcli storage core device vaai status get -d naa.60a98000572d54724a346a6170627a52
VAAI Plugin Name: VMW_VAAIP_NETAPP
ATS Status: supported
Clone Status: supported
Zero Status: supported
Delete Status: supported
 

Tuesday, June 12, 2012

Custom ESXi 5 ISO for UCS, Nexus 1000v and PowerPath VE

Get the maximum IOPS (PowerCLI)

http://www.lucd.info/2011/04/22/get-the-maximum-iops/

$metrics = "disk.numberwrite.summation","disk.numberread.summation"
$start = (Get-Date).AddMinutes(-5)
$report = @()

$vms = Get-VM | where {$_.PowerState -eq "PoweredOn"}
$stats = Get-Stat -Realtime -Stat $metrics -Entity $vms -Start $start
$interval = $stats[0].IntervalSecs

$lunTab = @{}
foreach($ds in (Get-Datastore -VM $vms | where {$_.Type -eq "VMFS"})){
  $ds.ExtensionData.Info.Vmfs.Extent | %{
    $lunTab[$_.DiskName] = $ds.Name
  }
}

$report = $stats | Group-Object -Property {$_.Entity.Name},Instance | %{
  New-Object PSObject -Property @{
    VM = $_.Values[0]
    Disk = $_.Values[1]
    IOPSMax = ($_.Group | `
      Group-Object -Property Timestamp | `
      %{$_.Group[0].Value + $_.Group[1].Value} | `
      Measure-Object -Maximum).Maximum / $interval
    Datastore = $lunTab[$_.Values[1]]
  }
}

$report

File Server Capacity Tool v1.2- (64 bit)

Tool for file server (cifs/smb/smb2) benchmark and capacity planning.

http://www.microsoft.com/en-us/download/details.aspx?id=27284

Monday, May 28, 2012

Fundamentals of vSphere Performance Management

http://www.doublecloud.org/2010/03/fundamentals-of-vsphere-performance-management/

Performance monitoring is a critical aspect of vSphere administration. This article introduces you the basic concepts and terminologies in vSphere performance management, for example, performance counters, performance metrics, real time vs historical statistics, etc. Much of the content is based on my book VMware VI and vSphere SDK by Prentice Hall.
Once you understand these basics, the related tools and APIs should be relatively easy. If you are already familiar with vSphere Client performance monitoring or esxtop, they help as well.

Performance Statistics (PowerCLI) 
http://www.sandfordit.com/vwiki/Performance_Statistics_(PowerCLI)

Performance Statistics (Perl SDK) 
http://www.vmware.com/vmtn/technology/developer/webinars/vi-perl-toolkit_webcast_2006-10-11.pdf

Thursday, May 17, 2012

Friday, May 11, 2012

ControlByWeb Ethernet I/O

http://www.controlbyweb.com/

ControlByWeb Ethernet I/O products provide an easy and reliable way to monitor & control devices over a network.

Saturday, April 21, 2012

How to enable/disable Intel VT-d on XEN


Usually, you just need 'iommu=1' to enable VT-d. At the same time, most of VT-d features (DMA remapping, snoop control, queued invalidation and interrupt remapping) are enabled by default if they are available. You can use 'no-xxx' to disable a feature, for example, 'iommu=no-snoop' disable snoop control.
When RMRR address range is not in reserved memory (BIOS issue), can use 'iommu_inclusive_mapping=1' to work around it.
The grub configuration is like:
title Xen-Linux (2.6.18-xen)
        root (hd0,0)
        kernel /boot/xen.gz iommu=1
        module /boot/vmlinuz-2.6.18.8-xen root=LABEL=/
        module /boot/initrd-2.6.18-xen.img

How to disable Intel VT-d on ESX

When using Interrupt Remapping on some servers, you may experience vHBAs and other PCI devices stop responding in ESXi 6.0.x, ESXi 5.x and ESXi/ESX 4.1

This issue should be solved by server vendors releasing fixed BIOS version but if there is not a fix available you can use following workaround until new BIOS is released.

Disabling Intel VT-d Interrupt Remapping:

ESX/ESXi 4.1:
esxcfg-advcfg -k TRUE iovDisableIR
(reboot)

ESXi 5.0:
esxcli system settings kernel set --setting=iovDisableIR -v TRUE
(reboot)

Disabling all VT-d features:
Advanced setting VMkernel.Boot.noIOMMU = unchecked = 0

For more info look at https://kb.vmware.com/kb/1030265 

Friday, April 20, 2012

VMware Perl SDK - SSL Certificate verification

PROBLEM:

[root@MON-PROXY vm]# ./vminfo.pl --url https://10.10.4.70/sdk/vimService --username dpasek -vmname mon_proxy
Enter password:
Server version unavailable at 'https://10.10.4.70:443/sdk/vimService.wsdl' at /usr/lib/perl5/5.8.8/VMware/VICommon.pm line 545, line 1.

SOLUTION:

[root@MON-PROXY vm]# export PERL_LWP_SSL_VERIFY_HOSTNAME=0
[root@MON-PROXY vm]# ./vminfo.pl --url https://10.10.4.70/sdk/vimService --username dpasek -vmname mon_proxy

Thursday, April 19, 2012

VMware SRM

SRM Scripts
C:\Program Files (x86)\VMware\VMware vCenter Site Recovery Manager\scripts\SAN

command.pl
discoverArray.pl
discoverLuns.pl
testfailover.pl
failover.pl


SRM Logs
%ALLUSERSPROFILE%\VMware\VMware vCenter Site Recovery Manager\Logs\

Links:
http://www.yellow-bricks.com/2009/01/20/sra-discoverluns/
http://www.yellow-bricks.com/2012/01/10/hacking-site-recovery-manager-srm-a-storage-array-adapter/
http://www.yellow-bricks.com/2012/01/12/fiddling-around-with-srms-storage-replication-adapter-part-ii/

Sunday, April 15, 2012

Dell OpenManage Offline Bundle and VIB for ESXi

OMSA 6.5
http://www.dell.com/support/drivers/us/en/555/DriverDetails/DriverFileFormats?c=us&l=en&s=&cs=555&DriverId=R300511

OMSA 7.0
http://www.dell.com/support/drivers/us/en/555/DriverDetails/DriverFileFormats?DriverId=VPTVV&FileId=2922404090&productCode=poweredge-r720&urlProductCode=False

It can be installed with VMware Update Manager (VUM) or with CLI.
VUM is preferred, simpler and more convenient option.

CLI installation:
vihostupdate.pl -server -i -b OM-SrvAdmin-Dell-Web-6.3.0-2075.VIBESX41i_A00.8.zip

vicfg-advcfg --server --username --password --set 1 UserVars.CIMoemProviderEnabled

For example:
vicfg-advcfg --server 10.10.1.72 --set 1 UserVars.CIMoemProviderEnabled

Note:
in ESX5 advanced parameter changed to
UserVars.CIMvmw_OpenManageProviderEnabled

Friday, March 16, 2012

vSphere PowerCLI Administration Guide

http://www.vmware.com/support/developer/PowerCLI/PowerCLI41/doc/viwin_admg.pdf

DELL PCT 6224 (EQL configuration)

  1. Enable the RSTP on the switch
  2. Enable “spanning-tree portfast” on all ports connected to the SAN
  3. Enable Jumbo Frame support on ports connected to the SAN
  4. Disable the “storm control” feature on ports connected to the SAN
  5. When you have dedicated SAN network enable Flow Control on the switch

Configuration:

Switch(config)# spanning-tree mode rstp
Switch(config)# interface range ethernet 1/g1-1/g12
Switch(config-if)# spanning-tree portfast
Switch(config-if)# mtu 9216
Switch(config-if)# no storm-control unicast
Switch(config-if)# exit
Switch(config)# flowcontrol (only you have dedicated SAN)
Switch# copy running-config startup-config

Wednesday, March 14, 2012

ESX, NUMA and "Node Interleaving"

Node interleaving disabled equals NUMA which is the best practice for ESX. That's usually default setting in BIOS of NUMA capable servers.

NUMA can be disabled by enabling Node Interleaving in the BIOS of the ESX host but that's not good practice for NUMA systems.

Full explanation at http://frankdenneman.nl/2010/12/node-interleaving-enable-or-disable/

Sunday, March 11, 2012

Friday, February 17, 2012

How to install Apache with perl modules on CENTOS

1/ Install Apache
yum install httpd

2/ Configure Apache on startup
chkconfig httpd on

3/ Allow port 80 and 443 in IPTABLES firewall
edit conf file /etc/sysconfig/iptables and add folowing lines before last reject line

-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 443 -j ACCEPT

4/ Install PERL modules


rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm

yum list *NCFTP*

yum install ncftp

perl -MCPAN -e shell
cpan> install XML::Simple

Wednesday, January 25, 2012

DELL racadm on CentOS 5.7

Here are 4 simple steps to get, setup and use DELL RACADM cli tool.
  1. Install and configure minimal installation of CENTOS 5.7 x86_64
  2. wget http://linux.dell.com/repo/hardware/OMSA_6.1/platform_independent/rh50_64/racadm/mgmtst-racadm-6.1.0-648.i386.rpm
  3. yum install compat-libstdc++-33
  4. rpm -i mgmtst-racadm-6.1.0-648.i386.rpm

and here we go ...

You can use racadm to query for example DELL M1000e CMC
racadm -r 10.10.1.54 -u root -p calvin getsysinfo

Bellow are links to some other posts about RACADM ...

RACADM Command Line Interface for DRAC ...
http://en.community.dell.com/techcenter/systems-management/w/wiki/racadm-command-line-interface-for-drac.aspx

How to setup racadm on Centos ...
http://linux.dell.com/repo/hardware/OMSA_6.1/#yum

Here is some blog about ...
http://yo61.com/install-dell-racadm-on-fedora-11.html

Here is the software repository for racadm install package
http://linux.dell.com/repo/hardware/OMSA_6.1/platform_independent/rh50_64/racadm/

Monday, December 12, 2011

Data Center Interconnect: Layer 2 Extension Between Remote Data Centers

http://www.cisco.com/en/US/prod/collateral/switches/ps5718/ps708/white_paper_c11_493718.html

This document is intended to help network managers and systems managers understand the various solutions and recommendations that Cisco offers to geographically extend Layer 2 networks over multiple distant data centers. These offerings address the requirements of high performance and fast convergence.
This document also introduces the capabilities of the Cisco® Data Center Interconnect (DCI) solution. Please note that it does not address the requirements for SANs.
Initially, this document describes the types of connectivity (Layer 2, Layer 3, and storage) that can be established between remote data center locations, together with the services that a given enterprise can obtain from a service provider.
The discussion then focuses on LAN extension designs, analyzing some of the most relevant business factors requiring the deployment of a LAN extension, and providing a list of solution requirements.
The document concludes by describing some technical alternatives to provide LAN extension functions, including:

• Point-to-point or point-to-multipoint interconnection, using virtual switching system (VSS), virtual PortChannel (vPC), and optical technologies

• Point-to-point interconnection using Ethernet over Multiprotocol Label Switching (EoMPLS) natively (over an MPLS core) and over a Layer 3 IP core

• Point-to-multipoint interconnections, using virtual private LAN services (VPLS) or advanced VPLS (A-VPLS) natively (over an MPLS core) or over a Layer 3 IP core

For each technical alternative, specific platform support and positioning information is provided.

Tuesday, November 08, 2011

VMware vSphere Health Check Report v5.0.0

http://communities.vmware.com/docs/DOC-9842

This script generates a health check report for the new vSphere release of VMware ESX(i) 4.x/5.x and VMware vCenter 4.x/5.x and it's managed entities. User's can now fully customize the report based on the categories that are of importance to their operating environment, including selecting specific set of ESX(i) hosts and/or Virtual Machines.

Monday, November 07, 2011

UBERAlign - disk partition alignment

UBERAlign is vSphere tool automating disk partition alignment and disk space reclamation.