Skip to main content

VCF Host expansion task failed at "Validate vSAN disks for ESXi Host(s)"

Hello There,

This article briefs about an issue faced during expanding the cluster with vSAN ready node via SDDC Manager.

VCF: 4.5.0

ESXi : VMware ESXi 7.0.3 build-20328353

Thanks to my colleague Ahmed Alameri for his contribution.

We were recently working on cluster expansion via SDDC Manager and the task was failed at "Validate vSAN disks for ESXi Host(s)"

We had to quickly login to the ESXi host and check if the disks are healthy and are eligible to be used for vSAN.

We enabled SSH service on the host, and through CLI we validated if the disks were eligible for vSAN by running command 'vdq -q'

Output Sample:

[
   {
      "Name"     : "t10.NVMe_NVMe_Pxxxx_MU_U.2_1x.xTB________000xxxxxxxxx",
      "VSANUUID" : "",
      "State"    : "Eligible for use by VSAN",
      "Reason"   : "None",
      "IsSSD"    : "1",
"IsCapacityFlash": "0",
      "IsPDL"    : "0",
      "Size(MB)" : "1526185",
    "FormatType" : "512e",
   "IsVsanDirectDisk" : "0"
   },

We made sure the state of the disk and if "IsSSD" marked as "1"

The next step we validated the partitions of all the disks and found that 3 disks partition was unknown, we tried to clear the partition through GUI but it failed.


We ran the below command to list the disks:

[root@esxi:~] cd /vmfs/devices/disks

Identified the name of the disks and marked the disks as gpt using below command.

[root@esxi:/dev/disks] partedUtil mklabel Express_Flash_1.6TB_SFF gpt

Then we tried to clear the disk partition and it was successfully cleared and we tried to restart the task, however it still failed with below error message. 

 
 

After checking on the physical host, we found one of the cache disk was having a minor difference of capacity and due to which the VCF task was failing, we had to replace the disk and match it with remaining cache disks and we tried to restart the task and the expansion was finished successfully.



 


Comments

Popular posts from this blog

Create a vCenter role using vCenter MOB

 Requirement: Finding a way to automate the creation of Role for any services with its permissions. Example: Citrix service account to be integrated with vCenter. Steps: 1) Login to vCenter : https://192.168.1.68/mob  2) Click on 'Content'                3) Click on Authorization Manager                                     4) Click on  'AddAuthorizationRole'                             5) Provide name in name field & privId in xml format & Click Invoke Method                        This should give you a return value and then the Role will be reflected on vCenter. 

Script to collect LLDP Information of all the hosts connected to vCenter

  Challenge : To have a clean inventory of host to switch mapping, we had to gather the lldp information of all the ESXi hosts. It would be easier if the hosts are a few/ in a single digit.  We had to find an easy and automated script which can generate the output.  Pre-requisites : 1) Requires power-cli to be installed. 2) Install-Module -Name VMware.PowerCLI -Scope CurrentUser  Powershell script :  1) To ignore ssl certificate error Set-PowerCLIConfiguration -InvalidCertificateAction Ignore -Confirm:$true  2) Script to connect to vCenter and provide valid credentials, and the script will provide the output in a csv format to the provided location, which can be customized.  # Array of vCenter Server names or IP addresses $vCenterServers = @("192.168.1.62") # Add all your vCenter Servers here # Output file path $OutputPath = "C:\Users\asyed\Documents\ESXi_LLDP_Report1.csv" # Change this to your desired output path # --- Script Start --- Write-Host "Con...

Script to Collect the BMC/OOB/CIMC IP Address of ESXi hosts connected to vCenter

 Requirement: We needed to collect all the iDRAC/ILO/CIMC/OOB/BMC IPs of the ESXi host connected to vCenter Note: Create a directory and update the path. Script: # Prompt for vCenter $vcenter = Read-Host "Enter vCenter IP or FQDN" $cred = Get-Credential # Output file $OutputPath = "C:\Users\TestUser\Documents\ESXi_Full_Report.csv" # Connect Connect-VIServer -Server $vcenter -Credential $cred -WarningAction SilentlyContinue Write-Host "Connected to vCenter. Gathering data..." -ForegroundColor Green $report = @() $vmhosts = Get-VMHost foreach ($vmhost in $vmhosts) {     Write-Host "Processing host: $($vmhost.Name)" -ForegroundColor Cyan     $view = Get-View $vmhost.Id     # --- SERIAL NUMBER LOGIC ---     $serial = $view.Hardware.SystemInfo.SerialNumber     if (-not $serial) {         foreach ($id in $view.Summary.Hardware.OtherIdentifyingInfo) {             if ($id.IdentifierType.Key ...