Restore DG
Hello,
Please suggest how to recover DG -
1- O/p of vxdg import
# vxdg import vgebt2db02
VxVM vxdg ERROR V-5-1-10978 Disk group vgebt2db02: import failed:
Disk group has no valid configuration copies
2- #vxdisk -o alldgs list | grep vgebt2db02
c18t1d4 auto:cdsdisk - (vgebt2db02) online udid_mismatch
c31t6d1 auto:cdsdisk - (vgebt2db02) online
c31t6d2 auto:cdsdisk - (vgebt2db02) online
c31t6d3 auto:cdsdisk - (vgebt2db02) online
c31t6d4 auto:cdsdisk - (vgebt2db02) online
c31t6d5 auto:cdsdisk - (vgebt2db02) online
c31t6d6 auto:cdsdisk - (vgebt2db02) online
c31t6d7 auto:cdsdisk - (vgebt2db02) online
3- dgcfgrestore -n vgebt2db02 -l
Disk Group Configuration information in "/etc/vxvmconf/vgebt2db02.conf"
DG Name: vgebt2db02
---- Physical disks: 1 ---
/dev/rdsk/c18t1d4
/dev/rdsk/c18t1d5
/dev/rdsk/c18t1d6
/dev/rdsk/c21t11d2
/dev/rdsk/c21t12d2
/dev/rdsk/c22t0d0
/dev/rdsk/c22t0d1
/dev/rdsk/c22t13d4
/dev/rdsk/c22t13d5
/dev/rdsk/c22t13d6
/dev/rdsk/c22t13d7
/dev/rdsk/c24t11d6
/dev/rdsk/c29t10d0
/dev/rdsk/c29t9d7
/dev/rdsk/c31t5d1
/dev/rdsk/c31t5d2
/dev/rdsk/c31t5d3
/dev/rdsk/c31t5d4
/dev/rdsk/c31t6d1
/dev/rdsk/c31t6d2
/dev/rdsk/c31t6d3
/dev/rdsk/c31t6d4
/dev/rdsk/c31t6d5
/dev/rdsk/c31t6d6
/dev/rdsk/c31t6d7
/dev/rdsk/c37t11d4
/dev/rdsk/c37t11d5
/dev/rdsk/c37t11d6
/dev/rdsk/c37t11d7
/dev/rdsk/c37t12d0
/dev/rdsk/c37t12d1
/dev/rdsk/c37t12d2
/dev/rdsk/c37t14d7
4- The following disks have online invalid tag in `vxdsik list` o/p -
/dev/rdsk/c18t1d5
/dev/rdsk/c18t1d6
/dev/rdsk/c21t11d2
/dev/rdsk/c21t12d2
/dev/rdsk/c22t0d0
/dev/rdsk/c22t0d1
/dev/rdsk/c22t13d4
/dev/rdsk/c22t13d5
/dev/rdsk/c22t13d6
/dev/rdsk/c22t13d7
/dev/rdsk/c24t11d6
/dev/rdsk/c29t10d0
/dev/rdsk/c29t9d7
/dev/rdsk/c31t5d1
/dev/rdsk/c31t5d2
/dev/rdsk/c31t5d3
/dev/rdsk/c31t5d4
/dev/rdsk/c37t11d4
/dev/rdsk/c37t11d5
/dev/rdsk/c37t11d6
/dev/rdsk/c37t11d7
/dev/rdsk/c37t12d0
/dev/rdsk/c37t12d1
/dev/rdsk/c37t12d2
/dev/rdsk/c37t14d7
5- Please suggest how can I restore the dg and prevent any data loss
- there are multiple ways: -- using vxconfigrestore (you should have DG backup copies intact in /etc/vx/cbr/bk) -- using maker file , you can generate maker file from vxprint -mvphsr output or from the cfgrec file in /etc/vx/cbr/bk for e.g cat *.cfgrec | vxprint -mvphsr -D - > maker.dg this file will have all info for volumes & its parameters.. In this method, the tedious step is to initialize all the disk with specified offsets, its very imporatant that you reinitialize the disk with same offsets otherwise data may be lost... you can find the disk offset values from *.dginfo file in cbr dierectory... -- same vxprint -mvphsr is collected in veritas explorers as well.. so here would be steps in short: -- create a maker file using vxprint -mvphsr output (from explorer or cfgrec file) -- re-initialize all disks in dg using same offset values & same public & private region length (*.dginfo file will help here) -- re-initialize blank diskgroup & add all above initialized disks with same name as they were before) -- use maker file to recreate volumes, # vxmake -g
-d Gaurav