How to import one of two bcv clones diskgroups

book

Article ID: 100002186

calendar_today

Updated On:

Resolution

For systems that have cloned diskgroup either because they are using BCV copies (for EMCstorage) or some other third party software that has cloned the LUNS, normally we can use the 'useclonedev' flag with vxdg import command, starting from VxVM5.0 onwards.
 
Syntax:
vxdg [-Cfst][-n newname] [-o clearreserve]
[-ouseclonedev={on|off}] [-o updateid]
[-ogroupreserve=fencekey [-o verify]]
[-onoreonline] [-o selectcp=diskid]
[-osite=sitename] [-o tag=name] import diskgroup
 
The above command  works ONLY if there is a single clone diskgroup presented toVxVM.
 
If there are 2 clone diskgroups, the 'useclonedev' flag with 'vxdg import' command will fail.
 
Consider the following scenarios, where there exists 2 cloned diskgroups.
 
#  vxdisk -o alldgs -e list | grep -i team-am
c2t16d71s2  auto      -            (team-am)    online       c2t16d71s2  srdf-r2      
c2t16d72s2  auto      -            (team-am)    online       c2t16d72s2  srdf-r2      
c2t16d80s2  auto      -            (team-am)    online       c2t16d80s2  bcv          
c2t16d82s2  auto      -            (team-am)    online       c2t16d82s2   bcv
 
srdf-r2 and bcv are both from the same clones.
 
So, in order to succesfully import the diskgroup 'team-am' from the bcv clone (not from thesrdf-r2), the devices belonging to srdf-r2 clone need to be removed temporarily from VxVM first.
 
The following need to be done:
 
# vxdisk rm c2t16d71s2
# vxdisk rm c2t16d72s2
 
then
 
# vxdg -C import team-am
 
and to bring the devices belonging to srdf-r2 clone  back into the VxVM, simply execute:
 
# vxdctl enable
 

 

Issue/Introduction

How to import one of two bcv clones diskgroups