How to modify the enclosure name using vxdmpadm

book

Article ID: 100029810

calendar_today

Updated On:

Description

Description

How to modify the enclosure name using vxdmpadm

 

Resolution

The names assigned to disks when enclosure based naming is enabled is determined by the enclosure name.  This can be modified using the vxdmpadm command.

# vxdisk list
DEVICE      TYPE            DISK        GROUP        STATUS
c1t0d0s2    auto:none      -            -            online invalid
EMC_CLARiiON0_0  auto:cdsdisk    -            -            online
EMC_CLARiiON0_1  auto:cdsdisk    -            -            online
EMC_CLARiiON0_2  auto:cdsdisk    -            -            online
EMC_CLARiiON0_3  auto:cdsdisk    -            -            online

#vxdmpadm listenclosure all
ENCLR_NAME        ENCLR_TYPE    ENCLR_SNO      STATUS      ARRAY_TYPE
============================================================================
EMC_CLARiiON0    EMC_CLARiiON   APM00064800091      CONNECTED    A/A
Disk              Disk          DISKS                CONNECTED    Disk

Syntax for the command to modify the enclosure name is:

# vxdmpadm settattr enclosure name=

Using the following command, you can modify the enclosure name to be "MyEMC":

# vxdmpadm setattr enclosure EMC_CLARiiON0 name=MyEMC

#vxdmpadm listenclosure all
ENCLR_NAME        ENCLR_TYPE    ENCLR_SNO      STATUS      ARRAY_TYPE
============================================================================
MyEMC            EMC_CLARiiON   APM00064800091      CONNECTED    A/A
Disk              Disk          DISKS                CONNECTED    Disk

#vxdisk list
DEVICE      TYPE            DISK        GROUP        STATUS
c1t0d0s2    auto:none      -            -            online invalid
MyEMC_0      auto:cdsdisk    -            -            online
MyEMC_1      auto:cdsdisk    -            -            online
MyEMC_2      auto:cdsdisk    -            -            online
MyEMC_3      auto:cdsdisk    -            -            online

 
Note : Validate if the new enclosure name already exists on the server or if there is a stale entry present in /etc/vx/array.info before modifying the enclosure name. Kindly refer to the article linked.

 

Issue/Introduction

How to modify the enclosure name using vxdmpadm