Hotplug and unplug of disks on H710 controller
search cancel

Hotplug and unplug of disks on H710 controller

book

Article ID: 334377

calendar_today

Updated On:

Products

VMware vSphere ESXi

Issue/Introduction

You can perform hot plug and unplug of HDDs on H710 controller.You can use MegaCLI to hot plug and unplug of HDDs.

Environment

VMware vSphere ESXi 5.5

Resolution

To hot plug and unplug of HDDs, you must perform the following steps.
  1. Open MegaCLI.
  2. Check the initial configuration of your adapter.
    ./MegaCli -CfgDsply a<adapter number>
  3. Take the HDD disk offline.
    ./MegaCli -PDOffline -PhysDrv[<enclosureID:Slot number>] -a<adapter number>
  4. Check the adapter configuration.
    ./MegaCli -CfgDsply -a<adapter number>
    Once the disk goes offline, the disk status changes to Permanent Device Loss (PDL) state and the components are marked as Absent. The virtual drive is no longer available.
  5. Plug in a new disk. The virtual drive is still not detected.
  6. Check the state of the new disk.
    ./MegaCli -PDInfo -PhysDrv[<enclosureID:Slot number>] -a<adapter number>
  7. Create a new virtual drive.
    ./MegaCli -CfgLDAdd -R[<enclosureID:Slot number>] [WB] [RA] [Direct] [NoCachedBadBBU] [-strpsz<userconfigured>] -a<adapter number>
  8. Verify that the adapter detects the new virtual drive.
    ./MegaCli -CfgDsply -a<adapter number>
    The diskgroup can detect the new disk. However, vSAN still cannot detect the disk and the components remain in Absent state.
  9. Log in to vCenter Server using the vSphere Web Client
  10. Add the newly created virtual drive to the disk group and remove the old virtual drive from the disk group.

Effect on vSAN after adding the new drive to a disk group
vSAN detects the drive and adds it to the diskgroup, including the components that are created on the new disk group.

Effect on vSAN after planned disk removal or when the disk is offline
vSAN marks the disks as in Permanent Device Loss state and the corresponding components are in Absent state.

Effect on vSAN after plugging the new drive in the same slot

The ESXi detects the new disk. vSAN does not detect the disk and the components remain in Absent state.

Effect on vSAN after creation of a new virtual drive
vSAN detects the virtual drive. The corresponding VM components still remain in absent state. You should add the new virtual drive to the diskgroup and remove the virtual drive from the diskgroup, which is offline and in Permanent Device Lost state. However, if vSAN is enabled for automatic mode, you might notice two diskgroups, one with a healthy SSD and a missing HDD and the other with a missing SSD and a healthy HDD. To delete the missing HDD disk, perform the following procedure.
  1. Switch the vSAN cluster to manual mode.
  2. Remove the diskgroup that includes a missing SSD disk and a healthy HDD disk. as available. This makes the HDD available for use. You can verify the command on your ESXi host.
    vdq -q
  3. Add the HDD disk to the diskgroup that has a healthy SSD but a missing HDD.
    Note that the task might show as failure.
  4. Refresh the vSphere web client to verify if the disk is added to the diskgroup.
  5. Delete the missing HDD from the diskgroup.
  6. Put the vSAN cluster back to the automatic mode.

Additional Information

For translated versions of this article, see: