Creating New Datastore Failed with Error: Cannot change the host config

  • Post category:VMware / Vmware vSphere
  • Post last modified:July 24, 2024

Introduction

Recently I worked on a case, where a user was trying to create a Datastore and he was getting an error: Cannot change the host configuration

 

Unable to Create a New Datastore Getting Error: Cannot change the host configuration

While looking into the VMKernel Logs I can see:

2020-11-05T03:30:34.511Z cpu11:2097999)NMP: nmp_ThrottleLogForDevice:3872: Cmd 0x2a (0x459b1213ac80, 3049584) to dev "naa.6000d310012345000000000000000007" on path "vmhba2:C0:T0:L3" Failed: H:0x0 D:0x2 P:0x0 Valid sense data: 0x7 0x27 0x0. Act:NONE
2020-11-05T03:30:34.511Z cpu11:2097999)ScsiDeviceIO: 3483: Cmd(0x459b1213ac80) 0x2a, CmdSN 0x3 from world 3049584 to dev "naa.6000d310012345000000000000000007" failed H:0x0 D:0x2 P:0x0 Valid sense data: 0x7 0x27 0x0.

As per the SCSI Errors, we can see:

Type

Code

Name

Description

Host Status

[0x0]

OK

This status is returned when there is no error on the host side. This is when you will see if there is a status for a Device or Plugin. It is also when you will see Valid sense data instead of Possible sense Data.

Device Status

[0x2]

CHECK_CONDITION

This status is returned when a command fails for a specific reason. When a CHECK CONDITION is received, the ESX storage stack will send out a SCSI command 0x3 (REQUEST SENSE) in order to get the SCSI sense data (Sense Key, Additional Sense Code, ASC Qualifier, and other bits). The sense data is listed after Valid sense data in the order of Sense Key, Additional Sense Code, and ASC Qualifier.

Plugin Status

[0x0]

GOOD

No error. (ESXi 5.x / 6.x only)

Sense Key

[0x7]

DATA PROTECT

 

Additional Sense Data

27/00

WRITE PROTECTED

 

Based on the SCSI Errors we can see the Sense Key Data Protect so which means we are seeing this issue because of the Storage End.

While investigating the SAN we found that the LUN which was presented from the Storage was in Read-Only Mode due to which vCenter was not able to make any changes with the Datastore.

 

Resolution:

Changed the Datastore from Ready-Only to Read/Write from EMC Storage Manager:

https://www.dell.com/support/manuals/en-in/storage-sc2080/dsm-2016-web-ui-ag/change-a-volume/server-mapping-to-read-only?guid=guid-367ebf50-a57b-4d90-b14e-323e4a162a18&lang=en-us

Steps below:

  1. Expand the Dell Storage Manager menu, and then click Storage.
  2. In the SC Series tab, select a Storage Center.
  3. In the Storage tab navigation pane, click the name of the volume you want to unmap from a server to open the Volume view.
  4. Click the Mappings tab.
  5. Select the server for which you want to modify mapping settings, then click Edit. The Edit Volume Mapping Settings dialog box opens.
  6. Select the volume should be presented as Read/Write to the server check box.
  7. When you are finished, click OK.

Ashutosh Dixit

I am currently working as a Senior Technical Support Engineer with VMware Premier Services for Telco. Before this, I worked as a Technical Lead with Microsoft Enterprise Platform Support for Production and Premier Support. I am an expert in High-Availability, Deployments, and VMware Core technology along with Tanzu and Horizon.

Leave a Reply