Unable to Unallocate a LUN – The LDEV is being used by the host (KAIC06400-E)

0
883

Problem

I tried to unallocate a LUN that was previously connected to a *VIO server but I have received the following error: “An error occurred during processing on the storage system (The LDEV is being used by the host, or an error occurred in the VSP procedure) (KAIC06400-E)”

scsi-reservation

The LUN was removed from the AIX host prior to my attempt to unallocated the LUN.

*VIO= The Virtual I/O Server is software that is located in a logical partition. This software facilitates the sharing of physical I/O resources between client logical partitions within the server. The Virtual I/O Server provides virtual SCSI target, virtual fibre channel, Shared Ethernet Adapter, and PowerVM™ Active Memory Sharing capability to client logical partitions within the system. As a result, client logical partitions can share SCSI devices, fibre channel adapters, Ethernet adapters, and expand the amount of memory available to logical partitions using paging space devices.  To make things short it is similar to VMware only provided by IBM to virtual Unix servers.

Solution

The problem was that the LUN (LDEV) that I was trying to unallocate still had SCSI reservation which took ownership on the LUN.

There are two ways to overcome this error:

  1. By connecting to the Server by PUTTY and removed the SCSI reservation on the LUN
  2. By connecting to Storage Manager and remove the SCSI reservation

Connecting to the Server by PUTTY and removed the SCSI reservation on the LUN

  • Connect to the server by putty
  • Enter the following command: /usr/DynamicLinkManager/bin/dlmpr –k DISK_NUMBER In order to see if the disk has SCSI reservation
  • Enter the following command: /usr/DynamicLinkManager/bin/dlmpr –c DISK_NUMBER In order to delete the SCSI reservation
  • #  /usr/DynamicLinkManager/cluster/dlm_hacmp_gdisk_reserve_check hdisk0
    HDLM script start dlm_hacmp_gdisk_reserve_check hdisk0
    KAPL10642-I Reservation Key of hdisk0 was cleared.
    KAPL10665-I The dlmpr utility completed.

2

Connecting to Storage Manager and remove the SCSI reservation

  • Connect to storage navigator
  • Go to Ports/Host Groups and go to one of the ports that the LUN you are trying to unallocated is connected to
  • Mark the host name that the LUN is allocated to

scsi-reservation2

  • Go to LUNs > stand on one of the LUNs > More Actions > View Host Reserved LUNs

scsi-reservation3

  • Mark the LUN you want to unallocated > Release Host Reserved LUNs

scsi-reservation1

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.