SVC - How to determine the name of auxilary vdisks associated with master vdisks

 

On the SVC use the svcinfo lshostvdiskmap command as follows to find the names of the vdisks associated with a particular host, in this case host1.

svcinfo lshostvdiskmap host1

id	name	SCSI_id	vdisk_id	vdisk_name	wwpn			vdisk_UID
1	host1	0	3		M_host1_0	3200001C45119ABD	60040769016F827BC80000000000002E
1	host1	1	4		M_host1_1	3200001C45119ABD	60040769016F827BC800000000000007

For each of the vdisk names found above use the svcinfo lsvdisk command as follows to find the Remote Copy (RC) relationship name.

svcinfo lsvdisk M_host1_0

id 3
name M_host1_0
IO_group_id 0
IO_group_name io_grp0
status online
mdisk_grp_id 0
mdisk_grp_name mdisk_grp1
capacity 94.0GB
type striped
formatted no
mdisk_id
mdisk_name
FC_id
FC_name
RC_id 6
RC_name host1_boot
vdisk_UID 60040769016F827BC80000000000002E
throttling 0
preferred_node_id 1
fast_write_state not_empty
cache readwrite
udid
fc_map_count 0
sync_rate 50
copy_count 1

copy_id 0
status online
sync yes
primary yes
mdisk_grp_id 0
mdisk_grp_name mdisk_grp1
type striped
mdisk_id
mdisk_name
fast_write_state empty
used_capacity 94.00GB
real_capacity 94.00GB
free_capacity 0.00MB
overallocation 100
autoexpand
warning
grainsize

Then use the svcinfo lsrcrelationship command as follows with the name of the RC relationship to find the name of the auxilary disks on the remote SVC.

svcinfo lsrcrelationship host1_boot

id 6
name host1_boot
master_cluster_id 0000020063A0A2F2
master_cluster_name M_cluster1
master_vdisk_id 6
master_vdisk_name M_host1_0
aux_cluster_id 0000030042A0A859
aux_cluster_name A_cluster1
aux_vdisk_id 5
aux_vdisk_name A_host1_0
primary master
consistency_group_id 235
consistency_group_name host1_CG1
state consistent_synchronized
bg_copy_priority 50
progress
freeze_time
status online
sync
copy_type metro

The name of the auxilary vdisk associated with the master vdisk M_host1_0 is A_host1_0