esx iscsi error Call ïscsimanager.query candidatenics"

Tags

In my lab environment I used iscsi as my shared storage. Today I have removed network adapters from software iscsi adapter to do some other networking stuff. After a while when im trying to reconfigure iscsi im getting below error

Call ïscsimanager.query candidatenics”

To resolve this problem I had to reset iscsi from esx shell by following below steps

clip_image001

Logged to the esx host & find iscsi related config files

Continue reading

VMware-Migrate iscsi traffic from standard switch to distribute switch

Tags

, , , ,

Option01

When we are having some extra network adapsters. We can follow below steps.

  1. In thi slab environment, we have two nics for existing iscsi connection using Vmware standard swtich.
    1. Esx01.mobilab.local have one standard switch configured for iscsi traffic

clip_image001

clip_image002

  1. Now we have configured vmware distributed switch and added vmnic4 & vmnic5 to this distributed switch & all the ip address configured.

Continue reading

VMware Vsphere raw device mapping

Tags

, , , ,

    Raw Device Mappings

    What is raw device mapping?

    Raw device mapping is a feature where the virtual machine can directly access the storage devices such as SAN or DAS.

    With a VMware we will use vmdk pointer to provide the proxy facility to raw device.

    In a virtual environment some cases we may need to have a raw device mappings.

    Why we need raw device mapping?

    • To configure Microsoft failover cluster, we can configure raw device as shared storage.
    • When we are configuring Microsoft failover cluster with one node is running on as a VM & other node/s running as a physical.
    • To run some of the san management software(ex hitachi horcm)
    • To run some backup software on virtual machine, and needs to get storage level backup

    How to Configure?

    1. Here I have one vm which is prepared to mount raw device

    clip_image001

    1. Using new datastore adding procedure, we can see new lun which is provided from our shared storage(in my case im using windows iscsi server)

    clip_image002

Continue reading

Powercli how to download esx log files

Üsing this script we can download esx log files to local computer, which is running powercli.

save this script as ps1

 

#############################################################
# We can use this script to downlog log files from esx hosts#
# #
# #
# #
#############################################################
Write-Host “Please create a esxlogs folder in your C drive before you run this script. This will download vmkernel,hostd & vpxa log files to your computer”
Add-PSSnapin vmware.vimautomation.core
Add-PSSnapin vmware.deployautomation
$vcentername=Read-Host “Enter Vcenter Name”
$esxhostname=Read-Host “Enter ESX host Name”
Connect-viserver $vcentername
$esxvmkernel=(get-log -key vmkernel -vmhost $esxhostname).entries
$esxvmhostd=(get-log -key hostd -vmhost $esxhostname).entries
$esxvpxa=(get-log -key vpxa -vmhost $esxhostname).entries

Add-Content -path c:\esxlogs\$esxhostname””vmkernel.txt -value $esxvmkernel

Add-Content -path c:\esxlogs\$esxhostname””hostd.txt -value $esxvmhostd

Add-Content -path c:\esxlogs\$esxhostname””vpxa.txt -value $esxvpxa

ESX 6.0 how to use pass phrase

In version 6.0 onwards we can use pass phrase instead of password for the esx hosts. In a default password policy its disabled, but we can enable it.

Steps.

  1. Login to the vcenter using web client.
  2. Select the host which we need to edit the password policy.
    1. Select manage
    2. Select Advanced System Settings
    3. Type “password” in search box and select “Security.passwordQualityControl”

clip_image001

  1. Edit the policy
    1. According to this policy, we need to use 16 characters which includes 3 words for our passphrase password policy.

clip_image002

  1. Now we can enter pass phrase as our password

Continue reading

vcenter 6.0 install & configure syslog server.

Tags

,

Vcenter 5 & 5.5 syslog server is separate component and we have to installed it separately but with vcenter 6. 0 syslogcollector service already installed and we can only customized.

How to costomize syslog server configuration.

  1. Opena syslog collector config file from notepad. This file is locate under “c:\programdata\vmware\vcenterserver\cfg\vmsyslogcollector”

Bydefault all the syslog will be installed under c:\programdata.

But as a best practice we can change this location to different drive or folder.

clip_image001

  1. In this exam I have changed it it c:\syslog folder.Also if we required we can change the ports and some other settings.

Continue reading

Vsphere esx-configure scratch partition–V 6.0

Vmware esx we can install on a small sd card or usb drive. But when we wants to store *vm-support output we may need some more space. Scratch partition is the solution for this problem. We can assign static scratch partition per esx host.

Steps for that.

  1. In this example we have separate data store for scratch partition. Data store name is SC

Continue reading