Video Screencast Help

vxconfigrestore error

Created: 24 Mar 2014 | 5 comments
mmx's picture

Execution command:

 vxconfigrestore -p -l /tmp/backups dg01

 returns an error message

VXVM vxconfigrestore ERROR V-5-2-3705 Diskgroup dg01 is currently online imported

executing command:

vxdg deport dg01

Run again vxconfigrestore

vxconfigrestore -p -l /tmp/backups dg01

Returns an error message

VXVM vxconfigrestore ERROR V-5-2-3703 Diskgroup dg01 appears to be a deported disk group.
 

Who can help me

Operating Systems:

Comments 5 CommentsJump to latest comment

Gaurav Sangamnerkar's picture

Hi,

What is the VxVM version you are using ? Is this a clustered setup ? also, any other troubleshooting like "restarting vxconfigd" has been attempted ?

Ideally vxconfigrestore should be run in deported diskgroup.

 

G

PS: If you are happy with the answer provided, please mark the post as solution. You can do so by clicking link "Mark as Solution" below the answer provided.
 

mmx's picture

Hi,

VxVM version 5.0, no cluster, How to perform a "restarting vxconfigd"?
But I performed the "vxctl disable" and "vxctl enable"

The error persists

rsharma1's picture

The error will persist as long as the diskgroup is already deporting and importing successfully.  If you run the vxconfigrestore script with sh -x, you'll see that the script tries to import and deport the diskgroup based on the existing configuration, if this suceeds, then the restore is not done -assuming that the existing config is valid. If the diskgoruop is corrupted, then the deport/import fails and then vxconfigrestore will help. Or, if the diskgroup is destroyed, the config can be restored from the backup config.

 

mmx's picture

Original dg01 contains only c1t1d0s2

 

bash-3.2# vxdg destroy dg01
 

bash-3.2# /usr/lib/vxvm/bin/vxconfigrestore -p -l /var/vxvm/backups dg01
Diskgroup dg01 configuration restoration started ......

Installing volume manager disk header for c1t1d0s2 ...
VxVM vxconfigrestore ERROR V-5-2-3706 Diskgroup configuration restoration for dg01 failed.
 

bash-3.2# vxdg  list
NAME         STATE           ID

bash-3.2# vxdisk list
DEVICE       TYPE            DISK         GROUP        STATUS
c1t0d0s2     auto:none       -            -            online invalid
c1t1d0s2     auto:cdsdisk    -            -            online
 

 

 

rsharma1's picture

can you try the vxconfigrestore with sh -x to get more info on where it is failing in your case? For this specific case if you recreate the dg01 and volume with the same name  and size as it existed before (vxdg init dg01 c1t1d0s2; vxassist -g dg01 make <volume-name>; without creating the FS) you should have the data back.