Host Profile error: value specified is out of range

errorhostprofile01

In vCenter Server 5.5 the Host Profile creation procedure fails with error “Value specified is out of range”.

This issue is caused by a devices that have not been properly removed from the host. The error you receive is the following:

A general system error occurred:
Value specified is out of range. Range 1 to 256
Value specified is out of range. Range 0 to 16
Value specified is out of range. Range 1 to 256

errorhostprofile02

 

Fix

To fix this problem you need to manually remove the references to the detached devices left in the system.

Enable SSH access in the ESXi host you need to fix.

Open an SSH session to the host who failed the host profile creation task then run the command:

# esxcli storage core device list

errorhostprofile03

A list of devices are shown in the screen.

errorhostprofile04

Look for devices with no configured value in Display Name, Multipath Plugin, Vendor, Model, etc. fields. Take note of the affected NAA ID.

errorhostprofile05

These devices are still referenced but need to be removed in order to solve the issue. To list devices with an off State run the command:

# esxcli storage core device detached list

errorhostprofile06

To remove permanently the devices, run the command:

# esxcli storage core device detached remove -d <NAA_ID>

errorhostprofile07

Now try creating the host profile once again.

errorhostprofile08

This time the task complete successfully and the Host Profile created is shown in the Host Profiles tab.

errorhostprofile09

Repeat the procedure for all affected hosts.

firma