V-5-1-639 - Unable to put the disks back into the diskgroup after being removed accidentally.

book

Article ID: 100029240

calendar_today

Updated On:

Description

Error Message

'vxdg adddisk' commands fails with the following error messages.

VxVM vxdg ERROR V-5-1-639 Failed to obtain locks: emcpower61s2: no such object in the configuration

Resolution

Disks which have been removed accidentally do not physically exist. Here is the example to illustrate this:

# vxdisk -o alldgs list
DEVICE      TYPE            DISK        GROUP        STATUS
c1t0d0s2    auto:sliced     rootdisk     rootdg      online
c1t1d0s2     auto:sliced     rootmirror  rootdg       online
emcpower51s2 auto:sliced    -            -            online
emcpower52s2auto:sliced    -            -            online
emcpower67s2auto:cdsdisk    lun-1daa     t3dg01      online
emcpower68s2 auto:cdsdisk    lun-1dab    t3dg01       online
emcpower70s2auto:cdsdisk    lun-1dcc     t3dg01      online
emcpower71s2 auto:cdsdisk    lun-1dad    t3dg01       online
emcpower73s2auto:cdsdisk    lun-1dae     t3dg01      online
emcpower74s2 auto:cdsdisk    lun-d1af    t3dg01       online
emcpower75s2auto:none      -            -            onlineinvalid
emcpower76s2 auto:none      -            -            onlineinvalid
-            -        lun-1da6     t3dg01       failedwas:emcpower61s2
-            -        lun-1da7     t3dg01       failedwas:emcpower62s2



The above 2 disks (emcpower61s2 and emcpower62s2)  which have been shown as 'failed was', do not exist on the above output.

If the physical disks exist and are ready to be replaced or added back to the diskgroup, those disks should be listed or shown as follow:

# vxdisk -o alldgs list
DEVICE      TYPE            DISK        GROUP        STATUS
c1t0d0s2    auto:sliced     rootdisk     rootdg      online
c1t1d0s2     auto:sliced     rootmirror  rootdg       online
emcpower51s2 auto:sliced    -            -            online
emcpower52s2auto:sliced    -            -            online
emcpower61s2auto:cdsdisk    -     -      online                          <<<<<<<
emcpower62s2auto:cdsdisk    -     -      online                          <<<<<<<
emcpower67s2auto:cdsdisk    lun-1daa     t3dg01      online
emcpower68s2 auto:cdsdisk    lun-1dab    t3dg01       online
emcpower70s2auto:cdsdisk    lun-1dcc     t3dg01      online
emcpower71s2 auto:cdsdisk    lun-1dad    t3dg01       online
emcpower73s2auto:cdsdisk    lun-1dae     t3dg01      online
emcpower74s2 auto:cdsdisk    lun-d1af    t3dg01       online
emcpower75s2auto:none      -            -            onlineinvalid
emcpower76s2 auto:none      -            -            onlineinvalid
-            -        lun-1da6     t3dg01       failedwas:emcpower61s2
-            -        lun-1da7     t3dg01       failedwas:emcpower62s2




Ensure that the operating system recognizes those physical devices, through 'format' command. If the operating system can access those devices in question, so can the volume manager and they will be listed in the "vxdisk -o alldgs list" output.

The operation to put the disks back into the diskgroup fails if the underlying devices do not exist.

The following need to be done to ensure the disks are visible through the operating system first:

1. Through 'format' or 'fdisk'  command and make sure that the disks are listed and visible through the operating system.
2.The VTOC or label is valid and readable.


Once the devices exist and are visible to the operating system, please ensure volume manager also sees them. To do this,we need to allow the volume manager to rescan all of the devices again (through 'vxdctl enable' command) and ensure the devices are listed through 'vxdisk -o alldgs list' command.

Once the devices are visible through volume manager, the following command can be executed to add the disk back into the Diskgroup :

# vxdg -g -k adddisk
 
If the -k option is specified, the disk media name must represent a disk media record that was previously dissociated from its disk access record with -k rmdisk; otherwise, a new disk media record is created to represent the disk. With the -k option, plexes requiring recovery are flagged as stale.

For example, for the above scenario, the following command adds one of the failed disk back into the diskgroup.

#vxdg -g t3dg01 -k adddisk lun-1da6=emcpower61s2
 

 

Issue/Introduction

Unable to put the disks back into the diskgroup after being removed accidentally.