When updating the UDID(Unique Disk Identifier) content for a BCV lun, it fails as the hostid refers to a different host
book
Article ID: 100002403
calendar_today
Updated On:
Resolution
Disk access name "emc1_00dc" refers to an EMC BCV lun, which is a cloned image of an EMC SRDF "R2" lun.
SRDF "DR" SERVER: Bashful
Bashful # vxdisk -e list emc1_00dc emc1_0072
DEVICE TYPE DISK GROUP STATUS OS_NATIVE_NAME ATTR
emc1_00dc auto:cdsdisk - - online udid_mismatch c1t5006048C536979A0d80s2 bcv
DEVICE TYPE DISK GROUP STATUS OS_NATIVE_NAME ATTR
emc1_0072 auto:cdsdisk - - online udid_mismatch c1t5006048C536979A0d65s2 srdf-r2
The hostid needs to be cleared from the BCV lun, in order for the UDID related content to be updated by the "vxdisk updateudid " command:
Bashful # vxdisk updateudid emc1_00dc
VxVM vxdisk ERROR V-5-1-12201 Device updateudid failed: Disk is in use by another host
In this instance the BCV LUN has a hostid of "Dopey" which relates to the EMC SRDF "R1" LUN presented to the production server.
Bashful # vxdisk list emc1_00dc
Device: emc1_00dc
devicetag: emc1_00dc
type: auto
hostid: Dopey <<<< This is the hostid from the SRDF "R1" lun on the production host "Dopey".
disk: name= 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 udid_mismatch autoimport
pubpaths: block=/dev/vx/dmp/emc1_00dcs2 char=/dev/vx/rdmp/emc1_00dcs2
guid: {18a89e34-1dd2-11b2-94fe-0003baa8421b}
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=1298546897 seqno=0.14
ssb: actual_seqno=0.0
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
How to clear the "hostid" value for the BCV lun "emc1_00dc"
Bashful # vxdisk clearimport emc1_00dc
Bashful # vxdisk -v list emc1_00dc
Device: emc1_00dc
devicetag: emc1_00dc
type: auto
hostid: <<< The hostid value has been cleared
disk: name= 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 udid_mismatch
pubpaths: block=/dev/vx/dmp/emc1_00dcs2 char=/dev/vx/rdmp/emc1_00dcs2
guid: {18a89e34-1dd2-11b2-94fe-0003baa8421b}
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=1298547055 seqno=0.16
ssb: actual_seqno=0.0
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%5F000290300822%5F60060480000290300822533030303843
Multipathing information:
numpaths: 1
c1t5006048C536979A0d80s2 state=enabled
Now the "hostid" has been cleared the UDID value can be updated
Bashful # vxdisk updateudid emc1_00dc
Validating that the on-disk UDID value changes
Bashful # vxdisk -v list emc1_00dc
Device: emc1_00dc
devicetag: emc1_00dc
type: auto
hostid:
disk: name= 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 clone_disk
pubpaths: block=/dev/vx/dmp/emc1_00dcs2 char=/dev/vx/rdmp/emc1_00dcs2
guid: {18a89e34-1dd2-11b2-94fe-0003baa8421b}
udid: EMC%5FSYMMETRIX%5F000290301414%5F60060480000290301414533030304443 <<<< UDID value from the DDL (Device Discovery layer)
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=1298547203 seqno=0.19
ssb: actual_seqno=0.0
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 << The on-disk UDID
Multipathing information:
numpaths: 1
c1t5006048C536979A0d80s2 state=enabled
Following the UDID update, both the DDL and on-disk UDID values are now in sync.
BCV diskgroup import syntax
The BCV VxVM diskgroup image of the SRDF "R2" lun can be imported using the following syntax.
# vxdg -Cfn bcv_DopeyDg -o useclonedev=on -o updateid import DopeyDg
Storage Foundation 5.1
Note: Solaris 8 support withdrawn for Storage Foundation 5.1
Issue/Introduction
When updating the UDID(Unique Disk Identifier) content for a BCV lun, it fails as the hostid refers to a different host.
Figure 1.0
This document attempts to explain the steps required to update the UDID (Unique Disk Identifier) content for a BCV LUN which is a cloned image of a SRDF (R2) device.
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
Was this article helpful?
thumb_up
Yes
thumb_down
No