When adding a VxVM tag (settag) to an EMC BCV device it fails as the hostid refers to a different host

book

Article ID: 100002404

calendar_today

Updated On:

Description

Error Message


VxVM vxdisk ERROR V-5-1-13909 The settag command failed on the following devices with error: Disk is in use by another host

Cause


Veritas disk access (da) name "emc1_00dc" refers to the EMC BCV lun which is a cloned image of EMC SRDF "R2" lun "emc1_0072".


SRDF "DR" SERVER: Bashful


Bashful # vxdisk -eo alldgs list | grep emc0
emc1_00dc auto:cdsdisk - (DopeyDg) online clone_disk c1t5006048C536979A0d80s2 bcv                  <<<< BCV image of "emc1_0072"
emc1_0072 auto:cdsdisk - (DopeyDg) online udid_mismatch c1t5006048C536979A0d65s2 srdf-r2            <<<< SRDF R2 lun. Write-Disabled



The hostid needs to be cleared for the BCV lun, in order for the tag name to be assigned using the "vxdisk settag " command:


Bashful # vxdisk settag bcv emc1_00dc
VxVM vxdisk ERROR V-5-1-13909  The settag command failed on the following devices with error: Disk is in use by another host
emc1_00dc


In this instance the EMC SRDF "R2" lun has a hostid of "Dopey" which relates to the EMC SRDF "R1" lun image presented to the production server.


Bashful # vxdisk list emc1_00dc
Device:    emc1_00dc
devicetag: emc1_00dc
type:      auto
hostid:  Dopey                                                                                   <<<< The hostid displayed is from the SRDF "R1" lun on the Production host "Dopey"
disk:      name=r1-008C id=1298306345.49.Dopey
group:     name=DopeyDg id=1298306534.57.Dopey
info:      format=cdsdisk,privoffset=256,pubslice=2,privslice=2
flags:     online ready private autoconfig autoimport imported clone_disk
pubpaths:  block=/dev/vx/dmp/emc1_00dcs2 char=/dev/vx/rdmp/emc1_00dcs2
guid:      {0f4a924c-1dd2-11b2-9af5-0003baa6d11f}
udid:      EMC%5FSYMMETRIX%5F000290301414%5F60060480000290301414533030304443
site:      -
version:   3.1
iosize:    min=512 (bytes) max=2048 (blocks)
public:    slice=2 offset=65792 len=4058368 disk_offset=0
private:   slice=2 offset=256 len=65536 disk_offset=0
update:    time=1298542682 seqno=0.22
ssb:       actual_seqno=0.1
headers:   0 240
configs:   count=1 len=48144
logs:      count=1 len=7296
Defined regions:
 config   priv 000048-000239[000192]: copy=01 offset=000000 enabled
 config   priv 000256-048207[047952]: copy=01 offset=000192 enabled
 log      priv 048208-055503[007296]: copy=01 offset=000000 enabled
 lockrgn  priv 055504-055647[000144]: part=00 offset=000000
Multipathing information:
numpaths:   1
c1t5006048C536979A0d80s2        state=enabled

 

Resolution

 

How to clear the "hostid" for the BCV lun


Bashful # vxdisk clearimport  emc1_00dc


Bashful # vxdisk  list emc1_00dc
Device:    emc1_00dc
devicetag: emc1_00dc
type:      auto
hostid:                                                                                      <<<< The hostid is now blank
disk:      name=r1-008C id=1298306345.49.Dopey
group:     name=DopeyDg id=1298306534.57.Dopey
info:      format=cdsdisk,privoffset=256,pubslice=2,privslice=2
flags:     online ready private autoconfig autoimport imported clone_disk
pubpaths:  block=/dev/vx/dmp/emc1_00dcs2 char=/dev/vx/rdmp/emc1_00dcs2
guid:      {0f4a924c-1dd2-11b2-9af5-0003baa6d11f}
udid:      EMC%5FSYMMETRIX%5F000290301414%5F60060480000290301414533030304443
site:      -
version:   3.1
iosize:    min=512 (bytes) max=2048 (blocks)
public:    slice=2 offset=65792 len=4058368 disk_offset=0
private:   slice=2 offset=256 len=65536 disk_offset=0
update:    time=1298542982 seqno=0.23
ssb:       actual_seqno=0.1
headers:   0 240
configs:   count=1 len=48144
logs:      count=1 len=7296
Defined regions:
 config   priv 000048-000239[000192]: copy=01 offset=000000 enabled
 config   priv 000256-048207[047952]: copy=01 offset=000192 enabled
 log      priv 048208-055503[007296]: copy=01 offset=000000 enabled
 lockrgn  priv 055504-055647[000144]: part=00 offset=000000
Multipathing information:
numpaths:   1
c1t5006048C536979A0d80s2        state=enabled



Now the "hostid" has been cleared, the specified tag name can be assigned to the BCV lun


The VxVM tag name of "bcv" will be assigned to disk access name (da) "emc1_00dc"


Bashful # vxdisk settag bcv emc1_00dc


The tag name assigned can be verified as follows:


Bashful # vxdisk listtag
DEVICE          NAME                            VALUE
emc1_00dc       bcv_DopeyDg                     -

Additional troubleshooting content


1.] The "-v" flag option with the "vxdisk list " command displays both UDID values, the DDL (Device Discovery Layer) UDID and on-disk UDID.


Bashful # vxdisk -v list emc1_00dc
Device:    emc1_00dc
devicetag: emc1_00dc
type:      auto
hostid:   
disk:      name=r1-008C id=1298306345.49.Dopey
group:     name=DopeyDg id=1298306534.57.Dopey
info:      format=cdsdisk,privoffset=256,pubslice=2,privslice=2
flags:     online ready private autoconfig autoimport imported clone_disk
pubpaths:  block=/dev/vx/dmp/emc1_00dcs2 char=/dev/vx/rdmp/emc1_00dcs2
guid:      {0f4a924c-1dd2-11b2-9af5-0003baa6d11f}
udid:      EMC%5FSYMMETRIX%5F000290301414%5F60060480000290301414533030304443       <<< UDID from the DDL. The true UDID of the disk
site:      -
version:   3.1
iosize:    min=512 (bytes) max=2048 (blocks)
public:    slice=2 offset=65792 len=4058368 disk_offset=0
private:   slice=2 offset=256 len=65536 disk_offset=0
update:    time=1298542992 seqno=0.24
ssb:       actual_seqno=0.1
headers:   0 240
configs:   count=1 len=48144
logs:      count=1 len=7296
Defined regions:
 config   priv 000048-000239[000192]: copy=01 offset=000000 enabled
 config   priv 000256-048207[047952]: copy=01 offset=000192 enabled
 log      priv 048208-055503[007296]: copy=01 offset=000000 enabled
 lockrgn  priv 055504-055647[000144]: part=00 offset=000000
Annotations:
 tag      udid_asl=EMC%5FSYMMETRIX%5F000290301414%5F60060480000290301414533030304443    <<< UDID on-disk value
 tag      bcv_DopeyDg                                                           <<<  VxVM  tag name listed here
Multipathing information:
numpaths:   1
c1t5006048C536979A0d80s2        state=enabled
 
 

Diskgroup import syntax


The BCV VxVM diskgroup image can be imported using the recently defined VxVM  tag reference "bcv_DopeyDg".


# vxdg -Cfn bcv_DopeyDg -o useclonedev=on -o updateid -o tag=bcv_DopeyDg import DopeyDg


Note: The above command imports the existing diskgroup "DopeyDg" with a new diskgroup name of "bcv_DopeyDg" using the device(s) tagged with a tag name of "bcv_DopeyDg".



When the EMC BCV LUN is "re-established", the VxVM tag content is lost for the corresponding BCV lun.


As stated earlier, Veritas disk access (da) name "emc1_00dc" refers to the EMC BCV lun, which is a cloned image of the EMC SRDF "R2" lun "emc1_0072".


# cat /bcv-mapping.txt
0072 00dc


# symmir -sid 414 -f /bcv-mapping.txt establish -nopr

'Incremental Establish' operation execution is in progress for the device list in device file '/bcv-mapping.txt'. Please wait...

'Incremental Establish' operation successfully initiated for the device list in device file '/bcv-mapping.txt'.


# symmir -sid 414 -f /bcv-mapping.txt split -nopr

'Split' operation execution is in progress for the device list in device file '/bcv-mapping.txt'. Please wait...

'Split' operation successfully executed for the device list in device file '/bcv-mapping.txt'.


# vxdisk listtag

# vxdisk scandisks

# vxdisk listtag


Note: The tag names will need to be redefined as described earlier.
 

Note: As of 5.0 MP3 onwards, the VxVM CLI command "vxdisk -e list" is capable of reporting the extended attribute based content for EMC BCV, BCV-NR, MIRROR, SRDF-R1, SRDF-R2, TDEV device states and EMC lun types.

 

 

Issue/Introduction


When adding a VxVM tag (settag) to an EMC BCV device it fails as the hostid refers to a different host. Figure 1.0




This document attempts to explain the steps required to assign a VxVM tag against a BCV image which is a cloned image of a SRDF (R2) device when using Veritas Volume Manager and DMP.


Note: The SRDF (R2) lun is in a write-disabled state at the time of the BCV split operation.


In this instance, the configuration consists of "4" EMC SRDF "R1" devices presented to production server "Dopey" from EMC Symmetrix id (SID) "822". An additional "4" EMC SRDF "R2" devices have been presented to DR server "Bashful" from EMC Symmetrix ID (SID) "414".


Additional Information

ETrack: 2070790 ETrack: 2070819