Monday, July 29, 2013

Tag Devices as SSD


Only devices that are consumed by the PSA Native Multipathing (NMP) plugin can be tagged.
If you need more information about the commands listed in this topic, see the Getting Started with vSphere Command-Line Interfaces and vSphere Command-Line Interface Concepts and Examples documentation.

1

Identify the device to be tagged and its SATP.
esxcli storage nmp device list 
The command results in the following information.
naa.6006016015301d00167ce6e2ddb3de11
Device Display Name: DGC Fibre Channel Disk (naa.6006016015301d00167ce6e2ddb3de11)
Storage Array Type: VMW_SATP_CX
Storage Array Type Device Config: {navireg ipfilter}
Path Selection Policy: VMW_PSP_MRU
Path Selection Policy Device Config: Current Path=vmhba4:C0:T0:L25
Working Paths: vmhba4:C0:T0:L25
2

Note down the SATP associated with the device.
3

Add a PSA claim rule to mark the device as SSD.

You can add a claim rule by specifying the device name.
esxcli storage nmp satp rule add -s SATP  --device device_name --option=enable_ssd

You can add a claim rule by specifying the vendor name and the model name.
esxcli storage nmp satp rule add -s SATP  -V vendor_name -M model_name --option=enable_ssd

You can add a claim rule based on the transport protocol.
esxcli storage nmp satp rule add -s SATP  --transport transport_protocol --option=enable_ssd

You can add a claim rule based on the driver name.
esxcli storage nmp satp rule add -s SATP  --driver driver_name --option=enable_ssd
4

Unclaim the device.

You can unclaim the device by specifying the device name.
esxcli storage core claiming unclaim --type device --device device_name

You can unclaim the device by specifying the vendor name and the model name.
esxcli storage core claiming unclaim --type device -V vendor_name -M model_name

You can unclaim the device based on the transport protocol.
esxcli storage core claiming unclaim --type device --transport transport_protocol

You can unclaim the device based on the driver name.
esxcli storage core claiming unclaim --type device --driver driver_name
5

Reclaim the device by running the following commands.
esxcli storage core claimrule load
esxcli storage core claimrule run
6

Verify if devices are tagged as SSD.
esxcli storage core device list -d device_name
The command output indicates if a listed device is tagged as SSD.
Is SSD: true 
If the SSD device that you want to tag is shared among multiple hosts, make sure that you tag the device from all the hosts that share the device.

Thursday, July 25, 2013

Command to force ESXi to PSOD (Purple Screen of Death)

You can run the below mentioned command on esxi shell
(local or ssh).

vsish -e set /reliability/crashMe/Panic 1

Saturday, July 20, 2013

Required ports for ESXi 5.1.x (2039095)


There is table for few common ports required for ESXi 5.1.x :-

Port
Protocol
Source
Target
Description
22
TCP
Client PC
ESXi 5.1.x
SSH Server
53
UDP
ESXi 5.1.x
DNS Server
DNS Client
68
UDP
ESXi 5.1.x
DHCP Server
DHCP Client
80
TCP
Client PC
ESXi 5.1.x
Redirect Web Browser to HTTPS Service (443)
111
TCP
ESXi/ESX host
NFS Server
NFS Client – RPC Portmapper
111
UDP
ESXi/ESX host
NFS Server
NFS Client – RPC Portmapper
123
UDP
ESXi/ESX host
NTP Time Server
NTP Client
514
TCP/UDP
ESXi 5.1.x
Syslog Server
Remote syslog logging
902
TCP/UDP
ESXi 5.1.x
ESXi 5.1.x
Host access to other hosts for migration and provisioning
902
UDP
vCenter Server
ESXi 5.1.x
(UDP) Status update (heartbeat) connection from ESXi to vCenter Server
902
TCP
vSphere Client
ESXi 5.1.x
vSphere Client access to virtual machine consoles (MKS)
2049
TCP
ESXi 5.1.x
NFS Server
Transactions from NFS storage devices
2049
UDP
ESXi 5.1.x
NFS Server
Transactions from NFS storage devices
3260
TCP
ESXi 5.1.x
iSCSI storage server
Transactions to iSCSI storage devices
8000
TCP
ESXi 5.1.x (VM Target)
ESXi 5.1.x (VM Source)
Requests from vMotion
8000
TCP
ESXi 5.1.x (VM Source)
ESXi 5.1.x (VM Target)
Requests from vMotion
8100
TCP/UDP
ESXi 5.1.x
ESXi 5.1.x
Traffic between hosts for vSphere Fault Tolerance (FT)
8182
TCP/UDP
ESXi 5.1.x
ESXi 5.1.x
Traffic between hosts for vSphere High Availability (vSphere HA)
8200
TCP/UDP
ESXi 5.1.x
ESXi 5.1.x
Traffic between hosts for vSphere Fault Tolerance (FT)


For more details on ports click on link below:-