How to promote an EMC MirrorView secondary lun using the EMC naviseccli utility

book

Article ID: 100037715

calendar_today

Updated On:

Description

Description

The following EMC CLARiiON devices are presented to a Solaris server using Veritas DMP as the multipathing solution.

 

 

How to establish which EMC MirrorView consistency group has the primary role set

 

Sample syntax

 

In this instance, the production server is connected to the EMC CLARiiON array with an IP address of "10.209.64.27"

 

# /opt/Navisphere/bin/naviseccli -h 10.209.64.27 mirror -async -listgroups -name asyncCG -role
Group Name:  asyncCG
Role:  Primary

 

The DR server in this instance is connect to the EMC CLARiiON array with an IP address of "10.209.64.29"

 

# /opt/Navisphere/bin/naviseccli -h 10.209.64.29 mirror -async -listgroups -name asyncCG -role
Group Name:  asyncCG
Role:  Secondary

 

How to display the EMC MirrorView group names for each consistency group

 

Sample output

 

# /opt/Navisphere/bin/naviseccli -h 10.209.64.27 mirror -async -listgroups -name asyncCG
Group Name:  asyncCG
Group ID:  50:06:01:60:C1:E0:2D:28:00:00:00:00
Description:
Update Type:  Time elapsed since end of last update
Update Period, in minutes:  60
Time in minutes until next update:  0
State:  Synchronized
Role:  Primary
Condition:  Normal
Sync Rate:  Medium
Recovery Policy:  Automatic
Mirror Name:  asyncSOLMirr2
Mirror WWN:  28:2D:E0:C1:60:01:06:50:C7:01:00:00:00:00:00:00
Primary WWN:  50:06:01:60:C1:E0:2D:28
Secondary WWN:  50:06:01:60:C1:E0:A3:66
Array hosting remote image:  50:06:01:60:C1:E0:A3:66
Local LUN ID:  60:06:01:60:93:00:1B:00:FE:38:27:61:D2:AA:DF:11
Local LUN Number:  501
Mirror Name:  asyncSOLMirr1
Mirror WWN:  28:2D:E0:C1:60:01:06:50:C6:01:00:00:00:00:00:00
Primary WWN:  50:06:01:60:C1:E0:2D:28
Secondary WWN:  50:06:01:60:C1:E0:A3:66
Array hosting remote image:  50:06:01:60:C1:E0:A3:66
Local LUN ID:  60:06:01:60:93:00:1B:00:CE:5C:1D:54:D2:AA:DF:11
Local LUN Number:  500
Mirror Name:  asyncSOLMirr3
Mirror WWN:  28:2D:E0:C1:60:01:06:50:C8:01:00:00:00:00:00:00
Primary WWN:  50:06:01:60:C1:E0:2D:28
Secondary WWN:  50:06:01:60:C1:E0:A3:66
Array hosting remote image:  50:06:01:60:C1:E0:A3:66
Local LUN ID:  60:06:01:60:93:00:1B:00:36:F1:91:6F:D2:AA:DF:11
Local LUN Number:  502

 

# /opt/Navisphere/bin/naviseccli -h 10.209.64.29 mirror -async -listgroups -name asyncCG
Group Name:  asyncCG
Group ID:  50:06:01:60:C1:E0:A3:66:02:00:00:00
Description:
Update Type:  Time elapsed since end of last update
Update Period, in minutes:  60
Time in minutes until next update:  0
State:  Synchronized
Role:  Secondary
Condition:  Normal
Sync Rate:  Medium
Recovery Policy:  Automatic
Mirror Name:  asyncSOLMirr3
Mirror WWN:  28:2D:E0:C1:60:01:06:50:C8:01:00:00:00:00:00:00
Primary WWN:  50:06:01:60:C1:E0:2D:28
Secondary WWN:  50:06:01:60:C1:E0:A3:66
Array hosting remote image:  50:06:01:60:C1:E0:2D:28
Local LUN ID:  60:06:01:60:0F:31:1F:00:0C:00:54:87:D2:AA:DF:11
Local LUN Number:  602
Mirror Name:  asyncSOLMirr1
Mirror WWN:  28:2D:E0:C1:60:01:06:50:C6:01:00:00:00:00:00:00
Primary WWN:  50:06:01:60:C1:E0:2D:28
Secondary WWN:  50:06:01:60:C1:E0:A3:66
Array hosting remote image:  50:06:01:60:C1:E0:2D:28
Local LUN ID:  60:06:01:60:0F:31:1F:00:2C:FA:26:7C:D2:AA:DF:11
Local LUN Number:  600
Mirror Name:  asyncSOLMirr2
Mirror WWN:  28:2D:E0:C1:60:01:06:50:C7:01:00:00:00:00:00:00
Primary WWN:  50:06:01:60:C1:E0:2D:28
Secondary WWN:  50:06:01:60:C1:E0:A3:66
Array hosting remote image:  50:06:01:60:C1:E0:2D:28
Local LUN ID:  60:06:01:60:0F:31:1F:00:2D:FA:26:7C:D2:AA:DF:11
Local LUN Number:  601

 

Volume Manager representation of the EMC MirrorView devices across the related servers

 

Sample output

 

Production:

# vxdisk -e list
DEVICE       TYPE           DISK        GROUP        STATUS               OS_NATIVE_NAME   ATTR
disk_0       auto:none      -            -           online invalid       c2t0d0s2         -
emc_clariion0_38 auto:cdsdisk   -            -           online               c4t5006016841E02D28d6s2 lun RAID_5
emc_clariion0_500 auto:cdsdisk   emc_clariion0_500  asyncDG1    online               c4t5006016841E02D28d0s2 lun RAID_5
emc_clariion0_501 auto:cdsdisk   emc_clariion0_501  asyncDG2    online               c4t5006016841E02D28d2s2 lun RAID_5
emc_clariion0_502 auto:cdsdisk   emc_clariion0_502  asyncDG3    online               c4t5006016841E02D28d1s2 lun RAID_5
emc_clariion0_503 auto:cdsdisk   emc_clariion0_503  syncDG1     online               c4t5006016841E02D28d3s2 lun RAID_5
emc_clariion0_504 auto:cdsdisk   emc_clariion0_504  syncDG2     online               c4t5006016841E02D28d4s2 lun RAID_5
emc_clariion0_505 auto:cdsdisk   emc_clariion0_505  syncDG3     online               c4t5006016841E02D28d5s2 lun RAID_5

 

DR Server:

 

# vxdisk -e list
DEVICE       TYPE           DISK        GROUP        STATUS               OS_NATIVE_NAME   ATTR
disk_0       auto:sliced    c2t0d0       rootdg      online               c2t0d0s2         -
disk_1       auto:sliced    c2t0d0-s0    rootdg2     online               c2t1d0s2         -
emc_clariion0_600 auto           -            -           error                c1t5006016841E0A366d0s2 lun RAID_5
emc_clariion0_601 auto           -            -           error                c1t5006016841E0A366d1s2 lun RAID_5
emc_clariion0_602 auto           -            -           error                c1t5006016841E0A366d2s2 lun RAID_5
emc_clariion0_603 auto           -            -           error                c1t5006016841E0A366d4s2 lun RAID_5
emc_clariion0_604 auto           -            -           error                c1t5006016841E0A366d3s2 lun RAID_5
emc_clariion0_605 auto           -            -           error                c1t5006016841E0A366d5s2 lun RAID_5


How to promote the EMC MirrorView secondary lun copy on the DR server

 

1.] Deport the respective EMC MirrorView diskgroups on the production server.

 

# vxdg deport asyncDG1 asyncDG2 asyncDG3


# vxdisk list

DEVICE       TYPE            DISK         GROUP        STATUS
disk_0       auto:none       -            -            online invalid
emc_clariion0_38 auto:cdsdisk    -            -            online
emc_clariion0_500 auto:cdsdisk    -            -            online
emc_clariion0_501 auto:cdsdisk    -            -            online
emc_clariion0_502 auto:cdsdisk    -            -            online
emc_clariion0_503 auto:cdsdisk    emc_clariion0_503  syncDG1      online
emc_clariion0_504 auto:cdsdisk    emc_clariion0_504  syncDG2      online
emc_clariion0_505 auto:cdsdisk    emc_clariion0_505  syncDG3      online

 

Note: In this instance the EMC CLARiiON enclosure connected to the DR server has an IP address of "10.209.64.29"

 

2.] To promote the EMC MirrorView secondary luns, type:

 

# /opt/Navisphere/bin/naviseccli -h 10.209.64.29 mirror -async -promotegroup -name asyncCG
Warning! This command is a very powerful and unforgiving command like
formatting of a disk. Improper use of this command can have unexpected results.
Do you want to continue (y/n)? y

 

How to confirm the EMC MirrorView roles have changed

 

DR Server:
 

# /opt/Navisphere/bin/naviseccli -h 10.209.64.29 mirror -async -listgroups -name asyncCG -role
Group Name:  asyncCG
Role:  Primary

 

Production Server:


# /opt/Navisphere/bin/naviseccli -h 10.209.64.27 mirror -async -listgroups -name asyncCG -role
Group Name:  asyncCG
Role:  Secondary

 

DR Server

 

# vxdisk list
DEVICE       TYPE            DISK         GROUP        STATUS
disk_0       auto:sliced     c2t0d0       rootdg       online
disk_1       auto:sliced     c2t0d0-s0    rootdg2      online
emc_clariion0_600 auto            -            -            error
emc_clariion0_601 auto            -            -            error
emc_clariion0_602 auto            -            -            error
emc_clariion0_603 auto            -            -            error
emc_clariion0_604 auto            -            -            error
emc_clariion0_605 auto            -            -            error

 

Update Volume Manager since the EMC MirrorView secondary luns have been updated


# vxdisk scandisks

 

# vxdisk -e -o alldgs list
DEVICE       TYPE           DISK        GROUP        STATUS               OS_NATIVE_NAME   ATTR
disk_0       auto:sliced    c2t0d0       rootdg      online               c2t0d0s2         -
disk_1       auto:sliced    c2t0d0-s0    rootdg2     online               c2t1d0s2         -
emc_clariion0_600 auto:cdsdisk   -            (asyncDG1)  online               c1t5006016841E0A366d0s2 lun RAID_5
emc_clariion0_601 auto:cdsdisk   -            (asyncDG2)  online               c1t5006016841E0A366d1s2 lun RAID_5
emc_clariion0_602 auto:cdsdisk   -            (asyncDG3)  online               c1t5006016841E0A366d2s2 lun RAID_5

emc_clariion0_603 auto           -            -           error                c1t5006016841E0A366d4s2 lun RAID_5
emc_clariion0_604 auto           -            -           error                c1t5006016841E0A366d3s2 lun RAID_5
emc_clariion0_605 auto           -            -           error                c1t5006016841E0A366d5s2 lun RAID_5

 

Production Server:

 

The original primary luns on the production server will be reported in an "error" state now the secondary luns on the DR server have been promoted

 

# vxdisk scandisks


# vxdisk list

DEVICE       TYPE            DISK         GROUP        STATUS
disk_0       auto:none       -            -            online invalid
emc_clariion0_38 auto:cdsdisk    -            -            online
emc_clariion0_500 auto            -            -            error
emc_clariion0_501 auto            -            -            error
emc_clariion0_502 auto            -            -            error

emc_clariion0_503 auto:cdsdisk    emc_clariion0_503  syncDG1      online
emc_clariion0_504 auto:cdsdisk    emc_clariion0_504  syncDG2      online
emc_clariion0_505 auto:cdsdisk    emc_clariion0_505  syncDG3      online

 

When importing the related EMC MirrorView diskgroup images on the DR server clear the hostid from the production server

 

Sample syntax

 

# vxdg import asyncDG1
VxVM vxdg ERROR V-5-1-10978 Disk group asyncDG1: import failed:
Disk is in use by another host

 

Note: The "-C" is used in connection with the vxdg command to clear the hostid of the production server.


# vxdg -C import asyncDG1

# vxdg -C import asyncDG2

# vxdg -C import asyncDG3


# vxdisk -e -o alldgs list
DEVICE       TYPE           DISK        GROUP        STATUS               OS_NATIVE_NAME   ATTR
disk_0       auto:sliced    c2t0d0       rootdg      online               c2t0d0s2         -
disk_1       auto:sliced    c2t0d0-s0    rootdg2     online               c2t1d0s2         -
emc_clariion0_600 auto:cdsdisk   emc_clariion0_500  asyncDG1    online               c1t5006016841E0A366d0s2 lun RAID_5
emc_clariion0_601 auto:cdsdisk   emc_clariion0_501  asyncDG2    online               c1t5006016841E0A366d1s2 lun RAID_5
emc_clariion0_602 auto:cdsdisk   emc_clariion0_502  asyncDG3    online               c1t5006016841E0A366d2s2 lun RAID_5
emc_clariion0_603 auto           -            -           error                c1t5006016841E0A366d4s2 lun RAID_5
emc_clariion0_604 auto           -            -           error                c1t5006016841E0A366d3s2 lun RAID_5
emc_clariion0_605 auto           -            -           error                c1t5006016841E0A366d5s2 lun RAID_5

 

Revised EMC MirrorView consistency group content following the role change

 

# /opt/Navisphere/bin/naviseccli -h 10.209.64.27 mirror -async -listgroups -name asyncCG
Group Name:  asyncCG
Group ID:  50:06:01:60:C1:E0:2D:28:00:00:00:00
Description:
Update Type:  Time elapsed since end of last update
Update Period, in minutes:  60
Time in minutes until next update:  0
State:  Consistent
Role:  Secondary
Condition:  Normal
Sync Rate:  Medium
Recovery Policy:  Manual
Mirror Name:  asyncSOLMirr1
Mirror WWN:  66:A3:E0:C1:60:01:06:50:CE:00:00:00:00:00:00:00
Primary WWN:  50:06:01:60:C1:E0:A3:66
Secondary WWN:  50:06:01:60:C1:E0:2D:28
Array hosting remote image:  50:06:01:60:C1:E0:A3:66
Local LUN ID:  60:06:01:60:93:00:1B:00:CE:5C:1D:54:D2:AA:DF:11
Local LUN Number:  500
Mirror Name:  asyncSOLMirr2
Mirror WWN:  66:A3:E0:C1:60:01:06:50:CF:00:00:00:00:00:00:00
Primary WWN:  50:06:01:60:C1:E0:A3:66
Secondary WWN:  50:06:01:60:C1:E0:2D:28
Array hosting remote image:  50:06:01:60:C1:E0:A3:66
Local LUN ID:  60:06:01:60:93:00:1B:00:FE:38:27:61:D2:AA:DF:11
Local LUN Number:  501
Mirror Name:  asyncSOLMirr3
Mirror WWN:  66:A3:E0:C1:60:01:06:50:D0:00:00:00:00:00:00:00
Primary WWN:  50:06:01:60:C1:E0:A3:66
Secondary WWN:  50:06:01:60:C1:E0:2D:28
Array hosting remote image:  50:06:01:60:C1:E0:A3:66
Local LUN ID:  60:06:01:60:93:00:1B:00:36:F1:91:6F:D2:AA:DF:11
Local LUN Number:  502

#


# /opt/Navisphere/bin/naviseccli -h 10.209.64.29 mirror -async -listgroups -name asyncCG

Group Name:  asyncCG
Group ID:  50:06:01:60:C1:E0:A3:66:02:00:00:00
Description:
Update Type:  Time elapsed since end of last update
Update Period, in minutes:  60
Time in minutes until next update:  52
State:  Consistent
Role:  Primary
Condition:  Normal
Sync Rate:  Medium
Recovery Policy:  Manual
Mirror Name:  asyncSOLMirr3
Mirror WWN:  66:A3:E0:C1:60:01:06:50:D0:00:00:00:00:00:00:00
Primary WWN:  50:06:01:60:C1:E0:A3:66
Secondary WWN:  50:06:01:60:C1:E0:2D:28
Array hosting remote image:  50:06:01:60:C1:E0:2D:28
Local LUN ID:  60:06:01:60:0F:31:1F:00:0C:00:54:87:D2:AA:DF:11
Local LUN Number:  602
Mirror Name:  asyncSOLMirr2
Mirror WWN:  66:A3:E0:C1:60:01:06:50:CF:00:00:00:00:00:00:00
Primary WWN:  50:06:01:60:C1:E0:A3:66
Secondary WWN:  50:06:01:60:C1:E0:2D:28
Array hosting remote image:  50:06:01:60:C1:E0:2D:28
Local LUN ID:  60:06:01:60:0F:31:1F:00:2D:FA:26:7C:D2:AA:DF:11
Local LUN Number:  601
Mirror Name:  asyncSOLMirr1
Mirror WWN:  66:A3:E0:C1:60:01:06:50:CE:00:00:00:00:00:00:00
Primary WWN:  50:06:01:60:C1:E0:A3:66
Secondary WWN:  50:06:01:60:C1:E0:2D:28
Array hosting remote image:  50:06:01:60:C1:E0:2D:28
Local LUN ID:  60:06:01:60:0F:31:1F:00:2C:FA:26:7C:D2:AA:DF:11
Local LUN Number:  600

#

 

 

Additional error messages

 

# /opt/Navisphere/bin/naviseccli -h 10.209.64.29 mirror -async -syncgroup -name asyncCG
Warning! During synchronization, array performance may be impacted.
Do you want to sync the mirror group asyncCG (y/n)? y
Group synchronize command is not issued from the primary array.  (0x7152833e)

 

# /opt/Navisphere/bin/naviseccli -h 10.209.64.27 mirror -async -syncgroup -name asyncCG
Warning! During synchronization, array performance may be impacted.
Do you want to sync the mirror group asyncCG (y/n)? y
Cannot synchronize a group that is already synchronized  (0x71528362)

 

# /opt/Navisphere/bin/naviseccli -h 10.209.64.27 mirror -async -promotegroup -name asyncCG
Warning! This command is a very powerful and unforgiving command like
formatting of a disk. Improper use of this command can have unexpected results.
Do you want to continue (y/n)? y
Group that is promoted is not a secondary group  (0x7152814b)

 

Issue/Introduction

How to promote an EMC MirrorView secondary lun using the EMC naviseccli utility