Site icon UnixArena

VxVM – Disk group has no valid configuration copies

VxvM no valid configuration issue

Veritas volume manager is robust volume manager software and mostly used on Oracle Solaris, HP-UX and Linux Operating systems.  In some cases, after the host reboot, you might get an error that “Disk group has no valid configuration copies”  when you try to import the existing Veritas disk group. This error common in SRDF environment where disks will be cloned and imported. Another chance for the error is storage migration at the SAN level.  This will create the duplicate UUID for disks in the host level and it could lead to this issue.

 

Here is the complete error while importing DG:

# vxdg import MyDG
VxVM vxdg ERROR V-5-1-0 Disk group MyDG: import failed:
Disk group has no valid configuration copies

Please refer to system log for details.

 

How to Resolve this issue? 

Perform the following actions for all the disks which are part of the disk group.

1. Update UUID.

vxdisk updateudid disk_name

2. Set the clone flag off.

vxdisk set disk_name clone=off

 

Step By Step Procedure to fix this issue using loop function: 

1. List the disks which are part of the issue diskgroup. Replace MyDG with your DG name

[root@solvxmn1 ~]# vxdisk -o alldgs list |grep MyDG
htc_emc_enc_ggd1_022a auto:cdsdisk    -            (MyDG)       online thinrclm clone_disk
htc_emc_enc_ggd1_022b auto:cdsdisk    -            (MyDG)       online thinrclm clone_disk
htc_emc_enc_ggd1_022c auto:cdsdisk    -            (MyDG)       online thinrclm clone_disk
htc_emc_enc_ggd1_0223 auto:cdsdisk    -            (MyDG)       online thinrclm clone_disk
htc_emc_enc_ggd1_0224 auto:cdsdisk    -            (MyDG)       online thinrclm clone_disk
htc_emc_enc_ggd1_0225 auto:cdsdisk    -            (MyDG)       online thinrclm clone_disk
htc_emc_enc_ggd1_0226 auto:cdsdisk    -            (MyDG)       online thinrclm clone_disk
htc_emc_enc_ggd1_0227 auto:cdsdisk    -            (MyDG)       online thinrclm clone_disk
htc_emc_enc_ggd1_0228 auto:cdsdisk    -            (MyDG)       online thinrclm clone_disk
htc_emc_enc_ggd1_0229 auto:cdsdisk    -            (MyDG)       online thinrclm clone_disk
htc_emc_enc_ggd1_0022 auto:cdsdisk    -            (MyDG)       online thinrclm
htc_emc_enc_ggd1_0023 auto:cdsdisk    -            (MyDG)       online thinrclm
[root@solvxmn1 ~]#

 

2. The following command will just list down the disk name.

 # vxdisk -o alldgs list |grep MyDG |awk ' { print $1 } '
htc_emc_enc_ggd1_022a
htc_emc_enc_ggd1_022b
htc_emc_enc_ggd1_022c
htc_emc_enc_ggd1_0223
htc_emc_enc_ggd1_0224
htc_emc_enc_ggd1_0225
htc_emc_enc_ggd1_0226
htc_emc_enc_ggd1_0227
htc_emc_enc_ggd1_0228
htc_emc_enc_ggd1_0229
htc_emc_enc_ggd1_0022
htc_emc_enc_ggd1_0023

 

3. Run the following loop command to update diskuid on all the disks for specific DG.

[root@solvxmn1 ~] # for i in `vxdisk -o alldgs list |grep MyDG|awk ' { print $1 } '`; do echo $i; vxdisk updateudid $i ; done
htc_emc_enc_ggd1_022a
htc_emc_enc_ggd1_022b
htc_emc_enc_ggd1_022c
htc_emc_enc_ggd1_0223
htc_emc_enc_ggd1_0224
htc_emc_enc_ggd1_0225
htc_emc_enc_ggd1_0226
htc_emc_enc_ggd1_0227
htc_emc_enc_ggd1_0228
htc_emc_enc_ggd1_0229
htc_emc_enc_ggd1_0022
htc_emc_enc_ggd1_0023
[root@solvxmn1 ~]#

 

4. Set the clone flag off for all the disk using “for” loop.

[root@solvxmn1 ~] # for i in `vxdisk -o alldgs list |grep MyDG|awk ' { print $1 } '`; do echo $i; vxdisk set $i clone=off; done
htc_emc_enc_ggd1_022a
htc_emc_enc_ggd1_022b
htc_emc_enc_ggd1_022c
htc_emc_enc_ggd1_0223
htc_emc_enc_ggd1_0224
htc_emc_enc_ggd1_0225
htc_emc_enc_ggd1_0226
htc_emc_enc_ggd1_0227
htc_emc_enc_ggd1_0228
htc_emc_enc_ggd1_0229
htc_emc_enc_ggd1_0022
htc_emc_enc_ggd1_0023
[root@solvxmn1 ~] #

 

4. Try to import the DG.

[root@solvxmn1 ~]# vxdg import MyDG
[root@solvxmn1 ~]# vxdg list
NAME         STATE                         ID
MyDG	    enabled,cds          134232166.35.solvxmn1
[root@solvxmn1 ~]#

 

We have successfully imported the Diskgroup. If you are still unable to import the DG, please engage veritas support for further troubleshooting.

Exit mobile version