Unable to import diskgroup due to duplicate disk ID

book

Article ID: 100011872

calendar_today

Updated On:

Description

Error Message

VxVM vxdg ERROR V-5-1-16890, Disk group import of testdg failed.
Device hitachi_vsp0_04c6 is already imported in other disk group

Cause

The possible causes of having duplicated disk ID are

1. hardware level data mirroring

2. data copy between disks (eg.  dd data from one disk to the other)

3. SAN storage provision issue

Resolution

Here are the issues with these two disks (hitachi_vsp0_03cb and hitachi_vsp0_04c6) belonging to different disk groups: testdg and oradg.  The output below shows that these two disks having the same diskid 1363069056.31.license:

Disk:   hitachi_vsp0_03cb
type:   auto
flags:  online ready private autoconfig autoimport thinrclm
guid:   {bf8d6740-17d3-11e2-94e2-000b5de05721}
udid:   HITACHI%5FOPEN-V%20%20%20%20%20%20-SUN%5F14D05%5F03CB
site:    -

diskid: 1363069056.31.license
dgname: testdg
dgid:   1387494638.34.license
hostid: license
info:   format=cdsdisk,privoffset=256,pubslice=2,privslice=2
 
Disk:   hitachi_vsp0_04c6
type:   auto
flags:  online ready private autoconfig autoimport imported thinrclm
guid:   {11953cea-49c3-11e2-94e2-000b5de05721}
udid:   HITACHI%5FOPEN-V%20%20%20%20%20%20-SUN%5F14D05%5F04C6
site:    -
diskid: 1363069056.31.license
dgname: oradg
dgid:   1389657394.38.license
hostid: license
info:   format=cdsdisk,privoffset=256,pubslice=2,privslice=2
 

Oradg is already imported.  When tried to import the testdg , running into the error listed below

vxdg import testdg

VxVM vxdg ERROR V-5-1-16890, Disk group import of testdg failed.
Device hitachi_vsp0_04c6  is already imported in other disk group.

Solution:

The diskid need to be clear from the disk hitachi_vsp0_03cb in order to import the diskgroup testdg with a correct publen and puboffset to preserve the data

#vxdisk -f init hitachi_vsp0_03cb format=cdsdisk publen=207294208 puboffset=65792.
 

After that, vxvm will automatic import the diskgroup with one dma show no device

Add the disk back to the testdg by running the command below:

#vxdg -g testdg -k adddisk testdg14=hitachi_vsp0_03cb

To start up all the volumes in testdg after adding the disk back to it, run


#vxvol -g testdg  startall

 


Applies To

Vxvm in all version for all O/S

Issue/Introduction

Disk ids for two disks used in two different diskgroups somehow are the same which cause an issue when import these diskgroups