Overview of manually reconfiguring a LUN

This section only provides an overview of the prechecks and the procedure to manually add or remove a LUN. The procedures have been elaborately documented in the topics listed in the following table:

Table:

Task

Topic

Removing LUN dynamically from an existing target ID

Cleaning up the operating system device tree after removing LUNs

See Manually cleaning up the operating system device tree after removing LUNs.

Scanning an operating system device tree after adding or removing LUNs

See Scanning an operating system device tree after adding or removing LUNs.

Adding LUN dynamically to a new target ID

Changing the LUN characteristics

Figure: LUN reconfiguration overview

LUN reconfiguration overview

Prechecks

Perform the following prechecks before manually reconfiguring a LUN:

Table: Prechecks

Task

Command

Check the /etc/vx/disk.info file

# grep "0xffff" /etc/vx/disk.info

Refresh the OS layer

# cfgmgr [-v]

List OS device handles

# lsdev - Cc disk

Refresh VxVM and DMP

# vxdisk scandisks

Refresh DDL layer/dev_t (device number) list

# vxddladm assign names

Note:

Ensure that the OS and VxVM are both clean prior to provisioning any new LUNs.

Manually removing a LUN

Perform the following steps to manually remove a LUN:

Table: LUN removal steps

Task

Validation

Unmount file system (s)

Confirm whether the disk has been removed from the disk group.

Close the VxVM device:

# vxdisk rm da-name

Confirm whether the VxVM device has been closed:

# vxdisk list

Disable DMP paths:

# vxdmpadm - f disable dmpnodename=da-name

Confirm whether the DMP paths have been disabled:

# vxdmpadm getsubpaths dmpnodename=da-name

Mask LUN from the server

Confirm whether the LUN has been removed at the array level.

Clean-up OS device handles:

# rmdev - dl hdisk#

Confirm whether OS device handles are clean:

# lsdev -Cc disk

Refresh VxVM and DMP:

# vxdisk scandisks

Refresh DDL layer/dev_t (device number) list:

# vxddladm assign names

Manually adding a LUN

To manually add a LUN

  1. Mask LUN to HBA worldwide name (WWN) in the server.
  2. Refresh the array database.
  3. Refresh OS device handles.
  4. Refresh VxVM and DMP.
  5. Refresh the /etc/vx/disk.info file.

More Information

Manually removing LUNs dynamically from an existing target ID

Manually adding new LUNs dynamically to a new target ID

Changing the characteristics of a LUN from the array side