Subscribe

Get-NcSnapmirror expand by default all group relationship

Hello Community,

 

With PSTK 4.2.0.0, the command Get-NcSnapmirror should not expand by default all group relationship (Vserver or Flexgroup) but it seems it is the case event without adding -Expand parameter:

 

PS C:\Users\masson> Get-NcSnapmirror -Controller $cot3

SourceLocation DestinationLocation Status MirrorState
-------------- ------------------- ------ -----------
BP2I_PRD: BP2I_DP: idle broken-off
BP2I_PRD:vol1 BP2I_DP:vol1 idle broken-off
BP2I_PRD:vol2 BP2I_DP:vol2 idle broken-off
BP2I_PRD:vol3 BP2I_DP:vol3 idle broken-off
ESX_PRODSmiley Very HappyS_1_NFS DST:ESX_PROD_DS_1_NFS_vault idle snapmirrored
FG:vol_snapcenter_Windows DST:FG_vol_snapcenter_Windows_mirror idle snapmirrored
NAS_SVM_MC1Smiley Very HappyS_NAS_MC DST:NAS_SVM_MC1_DS_NAS_MC_vault idle snapmirrored
PSLAB:CIFS PSLAB_DR:CIFS idle snapmirrored
PSLAB:CLU_HYPERV_DS1_SMB3 PSLAB_DR:CLU_HYPERV_DS1_SMB3 idle snapmirrored
PSLAB:data1 PSLAB_DR:data1 idle snapmirrored
PSLAB:local PSLAB_DR:local idle snapmirrored
PSLAB:nfsedaprex2 PSLAB_DR:nfsedaprex2 idle snapmirrored
PSLAB:PSLAB1 PSLAB_DR:PSLAB1 idle snapmirrored
PSLAB:testom PSLAB_DR:testom idle snapmirrored
PSLAB:u1 PSLAB_DR:u1 idle snapmirrored
SVM_DR_SRC_nP: SVM_DR_DEST_nP: idle snapmirrored
SVM_DR_SRC_nP:vol_snapmirror SVM_DR_DEST_nP:vol_snapmirror idle snapmirrored
SVM_DR_SRC_nP:vol_SRC_nP SVM_DR_DEST_nP:vol_SRC_nP idle snapmirrored
SVM_DR_SRC: SVM_DR_DEST_P: idle snapmirrored
SVM_DR_SRC:vol_SRC SVM_DR_DEST_P:vol_SRC idle snapmirrored
SVM_DR_SRC:vol_SRC_3 SVM_DR_DEST_P:vol_SRC_3 idle snapmirrored
SVM_MGA_DST: SVM_MGA_SRC: idle broken-off
SVM_MGA_DST:Test1 SVM_MGA_SRC:Test1 idle broken-off
SVM_MGA_DST:Test2 SVM_MGA_SRC:Test2 idle broken-off

 

With -Expand result is the same:

PS C:\Users\masson> Get-NcSnapmirror -Controller $cot3 -Expand

SourceLocation DestinationLocation Status MirrorState
-------------- ------------------- ------ -----------
BP2I_PRD: BP2I_DP: idle broken-off
BP2I_PRD:vol1 BP2I_DP:vol1 idle broken-off
BP2I_PRD:vol2 BP2I_DP:vol2 idle broken-off
BP2I_PRD:vol3 BP2I_DP:vol3 idle broken-off
ESX_PRODSmiley Very HappyS_1_NFS DST:ESX_PROD_DS_1_NFS_vault idle snapmirrored
FG:vol_snapcenter_Windows DST:FG_vol_snapcenter_Windows_mirror idle snapmirrored
NAS_SVM_MC1Smiley Very HappyS_NAS_MC DST:NAS_SVM_MC1_DS_NAS_MC_vault idle snapmirrored
PSLAB:CIFS PSLAB_DR:CIFS idle snapmirrored
PSLAB:CLU_HYPERV_DS1_SMB3 PSLAB_DR:CLU_HYPERV_DS1_SMB3 idle snapmirrored
PSLAB:data1 PSLAB_DR:data1 idle snapmirrored
PSLAB:local PSLAB_DR:local idle snapmirrored
PSLAB:nfsedaprex2 PSLAB_DR:nfsedaprex2 idle snapmirrored
PSLAB:PSLAB1 PSLAB_DR:PSLAB1 idle snapmirrored
PSLAB:testom PSLAB_DR:testom idle snapmirrored
PSLAB:u1 PSLAB_DR:u1 idle snapmirrored
SVM_DR_SRC_nP: SVM_DR_DEST_nP: idle snapmirrored
SVM_DR_SRC_nP:vol_snapmirror SVM_DR_DEST_nP:vol_snapmirror idle snapmirrored
SVM_DR_SRC_nP:vol_SRC_nP SVM_DR_DEST_nP:vol_SRC_nP idle snapmirrored
SVM_DR_SRC: SVM_DR_DEST_P: idle snapmirrored
SVM_DR_SRC:vol_SRC SVM_DR_DEST_P:vol_SRC idle snapmirrored
SVM_DR_SRC:vol_SRC_3 SVM_DR_DEST_P:vol_SRC_3 idle snapmirrored
SVM_MGA_DST: SVM_MGA_SRC: idle broken-off
SVM_MGA_DST:Test1 SVM_MGA_SRC:Test1 idle broken-off
SVM_MGA_DST:Test2 SVM_MGA_SRC:Test2 idle broken-off

 

 

From CLI the -Expand role is correct:

cot-3-demofr::*> snapmirror show
Progress
Source Destination Mirror Relationship Total Last
Path Type Path State Status Progress Healthy Updated
----------- ---- ------------ ------- -------------- --------- ------- --------
BP2I_PRD: DP BP2I_DP: Broken-off Idle - true -
ESX_PRODSmiley Very HappyS_1_NFS XDP DST:ESX_PROD_DS_1_NFS_vault Snapmirrored Idle - true -
FG:vol_snapcenter_Windows DP DST:FG_vol_snapcenter_Windows_mirror Snapmirrored Idle - true -
NAS_SVM_MC1Smiley Very HappyS_NAS_MC XDP DST:NAS_SVM_MC1_DS_NAS_MC_vault Snapmirrored Idle - true -
PSLAB:CIFS XDP PSLAB_DR:CIFS Snapmirrored Idle - true -
PSLAB:CLU_HYPERV_DS1_SMB3 XDP PSLAB_DR:CLU_HYPERV_DS1_SMB3 Snapmirrored Idle - true -
PSLAB:PSLAB1 XDP PSLAB_DR:PSLAB1 Snapmirrored Idle - true -
PSLAB:data1 XDP PSLAB_DR:data1 Snapmirrored Idle - true -
PSLAB:local XDP PSLAB_DR:local Snapmirrored Idle - true -
PSLAB:nfsedaprex2 XDP PSLAB_DR:nfsedaprex2 Snapmirrored Idle - true -
PSLAB:testom XDP PSLAB_DR:testom Snapmirrored Idle - true -
PSLAB:u1 XDP PSLAB_DR:u1 Snapmirrored Idle - true -
SVM_DR_SRC: DP SVM_DR_DEST_P: Snapmirrored Idle - true -
SVM_DR_SRC_nP: DP SVM_DR_DEST_nP: Snapmirrored Idle - true -
SVM_MGA_DST: DP SVM_MGA_SRC: Broken-off Idle - true -
15 entries were displayed.

 

cot-3-demofr::*> snapmirror show -expand
Progress
Source Destination Mirror Relationship Total Last
Path Type Path State Status Progress Healthy Updated
----------- ---- ------------ ------- -------------- --------- ------- --------
BP2I_PRD: DP BP2I_DP: Broken-off Idle - true -
BP2I_PRD:vol1 DP BP2I_DP:vol1 Broken-off Idle - true -
BP2I_PRD:vol2 DP BP2I_DP:vol2 Broken-off Idle - true -
BP2I_PRD:vol3 DP BP2I_DP:vol3 Broken-off Idle - true -
ESX_PRODSmiley Very HappyS_1_NFS XDP DST:ESX_PROD_DS_1_NFS_vault Snapmirrored Idle - true -
FG:vol_snapcenter_Windows DP DST:FG_vol_snapcenter_Windows_mirror Snapmirrored Idle - true -
NAS_SVM_MC1Smiley Very HappyS_NAS_MC XDP DST:NAS_SVM_MC1_DS_NAS_MC_vault Snapmirrored Idle - true -
PSLAB:CIFS XDP PSLAB_DR:CIFS Snapmirrored Idle - true -
PSLAB:CLU_HYPERV_DS1_SMB3 XDP PSLAB_DR:CLU_HYPERV_DS1_SMB3 Snapmirrored Idle - true -
PSLAB:PSLAB1 XDP PSLAB_DR:PSLAB1 Snapmirrored Idle - true -
PSLAB:data1 XDP PSLAB_DR:data1 Snapmirrored Idle - true -
PSLAB:local XDP PSLAB_DR:local Snapmirrored Idle - true -
PSLAB:nfsedaprex2 XDP PSLAB_DR:nfsedaprex2 Snapmirrored Idle - true -
PSLAB:testom XDP PSLAB_DR:testom Snapmirrored Idle - true -
PSLAB:u1 XDP PSLAB_DR:u1 Snapmirrored Idle - true -
SVM_DR_SRC: DP SVM_DR_DEST_P: Snapmirrored Idle - true -
SVM_DR_SRC:vol_SRC DP SVM_DR_DEST_P:vol_SRC Snapmirrored Idle - true -
SVM_DR_SRC:vol_SRC_3 DP SVM_DR_DEST_P:vol_SRC_3 Snapmirrored Idle - true -
SVM_DR_SRC_nP: DP SVM_DR_DEST_nP: Snapmirrored Idle - true -
SVM_DR_SRC_nP:vol_SRC_nP DP SVM_DR_DEST_nP:vol_SRC_nP Snapmirrored Idle - true -
SVM_DR_SRC_nP:vol_snapmirror DP SVM_DR_DEST_nP:vol_snapmirror Snapmirrored Idle - true -
SVM_MGA_DST: DP SVM_MGA_SRC: Broken-off Idle - true -
SVM_MGA_DST:Test1 DP SVM_MGA_SRC:Test1 Broken-off Idle - true -
SVM_MGA_DST:Test2 DP SVM_MGA_SRC:Test2 Broken-off Idle - true -
24 entries were displayed.

 

 

So, do you know how to display Snapmirror relationship not expanded?

 

TIA

Re: Get-NcSnapmirror expand by default all group relationship

Hello @masson,

 

I don't have any SVM DR or FlexGroup snapmirror relationships to test with, but you might be able to try specifically setting the '-Expand' option to false...

 

Get-NcSnapmirror -Expand:$false

Hope that helps!

 

Andrew

If this post resolved your issue, please help others by selecting ACCEPT AS SOLUTION or adding a KUDO.

Re: Get-NcSnapmirror expand by default all group relationship

Hi @asulliva

 

Thanks for the advice, but unfortunately it does not help Smiley Sad

Result is still expanded

 

Regards