Hotplug and unplug of disks on LSI 9271-8i controller
search cancel

Hotplug and unplug of disks on LSI 9271-8i controller

book

Article ID: 315282

calendar_today

Updated On:

Products

VMware vSphere ESXi

Issue/Introduction

You can hot unplug and plug SSD disks on LSI 9271-8i controller.

Environment

VMware vSphere ESXi 5.5

Resolution

You can use MegaCLI to hot unplug and plug of SSD and HDD disks on LSI 9271-8i controller.
 
Unplanned hot unplug and plug in of SSD or HDD disks
Perform the following steps to hot unplug and plug of SSD or HDD Disks.
 
  1. Open MegaCLI.
  2. Verify the configuration of your adapter.
    ./MegaCli -CfgDsply a<adapter number>
  3. Unplug the disk.
    After you hot unplug the disk, vSAN marks the disk as in Permanent Device Loss (PDL) state. The corresponding components are marked as Absent.
  4. Plug the disk back into the same slot.
  5. Verify the configuration of the adapter.
    ./MegaCli -CfgDsply a<adapter number>
    After you hot plugin, the components still remain in Absent state because the disk is not yet detected by vSAN.
  6. Verify the status of the disk.
    ./MegaCli -PDInfo -PhysDrv[<enclosureID:Slot number>] -a<adapter number>
    The disk is in Unconfigured state.
  7. To recover the disk from its current state, you must change the disk status to Unconfigured-Good.
    /opt/lsi/MegaCLI # ./MegaCli -PDMakeGood -PhysDrv[<enclosureID:Slot number>] -a<adapter number>
    The status of the disk changed to Unconfigured-Good.
  8. Scan the controller to list the foreign configuration.
    /opt/lsi/MegaCLI # ./MegaCli -CfgForeign -Scan -a<adapter number>
  9. Import the foreign configuration.
    /opt/lsi/MegaCLI # ./MegaCli -CfgForeign -Import -a<adapter number>
  10. Verify the disk details.
    ./MegaCli -CfgDsply a<adapter number>
After importing the foreign configuration, the adapter detects the lost virtual drive. The availability of virtual drive information in the adapter causes the driver to declare the driver details to the ESXi host as available for use. vSAN detects the disk and successfully claims it. As a result, the components become active again.


Planned hot unplug and plug in of SSD or HDD disks
Perform the following steps to hot unplug and plug of SSD or HDD Disks.
  1. Open MegaCLI.
  2. Verify the configuration of your adapter.
    ./MegaCli -CfgDsply a<adapter number>
  3. Take the disk offline.
    ./MegaCli -PDOffline -PhysDrv[<enclosureID:Slot number>] -a<adapter number>
  4. Verify the configuration of the adapter.
    ./MegaCli -CfgDsply a<adapter number>
  5. Plug in a new disk.
  6. Mark the disk as missing.
    /MegaCli -PDMarkMissing -PhysDrv[<enclosureID:Slot number>] -a<adapter number>
  7. Prepare the disk for removal from the slot.
    /MegaCli -PDPrpRmv -PhysDrv[<enclosureID:Slot number>] -a<adapter number>
  8. Plug in the disk in the same slot.
  9. Verify the configuration of the adapter after inserting a new disk in the same slot.
    ./MegaCli -CfgDsply a<adapter number>
    vSAN is unable to detect the disk and marks the disk in PDL state and the corresponding components are in ABSENT state.
  10. Create a new virtual drive using a new disk.
    1. Check the state of the new disk. The required state of the disk must be Unconfigured-good.
      ./MegaCli -PDInfo -PhysDrv[<enclosureID:Slot number>] -a<adapter number>
    2. Create a new virtual drive.
      ./MegaCli -CfgLDAdd -R[<enclosureID:Slot number>] [WB] [RA] [Direct] [NoCachedBadBBU] [-strpsz<userconfigured>] -a<adapter number>
      ./MegaCli -GetPreservedCacheList -a<adapter number>
      ./MegaCli -DiscardPreservedCache -L4 -a<adapter number>
      ./MegaCli -CfgLDAdd -R[<enclosureID:Slot number>] [WB] [RA] [Direct] [NoCachedBadBBU] [-strpsz<userconfigured>] -a<adapter number>
    3. Verify if the adapter can detect the new virtual drive.
      ./MegaCli -CfgDsply a<adapter number>
    4. (Optional) Rename the new virtual driver, if required.
      ./MegaCli -LDSetProp -Name VSANSSD-<Slot number> -L3 -a<adapter number>
Effect on vSAN after creating a new virtual drive
Your ESXi host can now detect the new virtual drive and creates a corresponding SCSI device. vSAN cannot detect the disk and the corresponding components remain in an Absent state.

Mark the SCSI device as SSD
Perform the following steps to enable the SCSi device detected by your ESXi host.
  1. Add a claim rule by specifying the device name.
    esxcli storage nmp satp rule add -s SATP --device device_name --option="enable_ssd"
  2. Delete a claim rule from the set of claim rules.
    esxcli storage core claiming unclaim --type device --device device_name
  3. Replace the current rules in the VMkernel with the modified rules from the configuration file.
    esxcli storage core claimrule load
  4. Run the path claiming rules.
    esxcli storage core claimrule run
vSAN can now detect the SSD disk.

Create a new disk group
Perform the following steps to create a new disk group.
  1. Navigate to the vSphere web client.
  2. If vSAN is enabled for automatic mode, then change it to manual mode.
  3. Delete the disk group that includes a missing SSD drive.
  4. Create a new disk group using the newly added SSD and the HDD disks.
  5. Switch the vSAN cluster back to the automatic mode.
vSAN detects the new disk drive and the components that are created on the new disk group.
 

Additional Information

Additional Information

For translated versions of this article, see: