How to remove inaccessible Datastore from ESXi



1.Find out the datastore names using:

   VMFS:
      esxcli storage vmfs extent list

   NFS:
      esxcli storage nfs list
2.Remove Datstore forcefully using:

   esxcli storage nfs remove -v <DatastoreName>

esxcli to connect iscsi target from esxi server



esxcli iscsi adapter discovery sendtarget add -A vmhba32 -a 10.230.5.60:3260

Enable software ISCSI Adapter on esxi



1.Check iscsi adapter enabled using

esxcli iscsi adapter list
2.Enable iscsi adapter
 ~ # esxcli iscsi software set -e true
Software iSCSI Enabled
3.Verify the iqn number using:
esxcli iscsi adapter get -A vmhba | grep iqn




How to Join Vcenter server to active directory

1. log in to Vcenter server using https://<IP>:5480 and login with root access

2. Go to network and edit
    Include AD domain IP 

3. ssh root@IP VCSA
   a)vi /etc/hosts :
     add domain IP and name
   b)vi /etc/resolv.conf
     add "search domain.com"
4. run the below command to join:
 
/opt/likewise/bin/domainjoin-cli join <domain name> <username> <passed>

 Example:
root@vcsa92 [ ~ ]# /opt/likewise/bin/domainjoin-cli join ranji.local administrator@ranji.local netapp1!
Joining to AD Domain:   ranji.local
With Computer DNS Name: vcsa92.ranji.local
SUCCESS
root@vcsa92 [ ~ ]#

VCSA reboot Failed to start File System Check on /dev/dis…uuid

Error:

While VCSA boots Failed to start File System Check on /dev/dis…uuid

Solution:

from VCSA maintance console shell ,open the file cat /run/initramfs/rdsosreport.txt. and verify the /dev/sda disk name got corrupted.

run below commands:

1. fsck -y /dev/sda3

2. reboot -f

How to increase ESXi webclient login user application timeout

 To increase the default 15min timeout to 2hr Login to the esxi webclient on the right top corner ->Click the User login tab Select "...