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
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:
Steps below:
- Expand the Dell Storage Manager menu, and then click Storage.
- In the SC Series tab, select a Storage Center.
- In the Storage tab navigation pane, click the name of the volume you want to unmap from a server to open the Volume view.
- Click the Mappings tab.
- Select the server for which you want to modify mapping settings, then click Edit. The Edit Volume Mapping Settings dialog box opens.
- Select the volume should be presented as Read/Write to the server check box.
- When you are finished, click OK.