need to recover dg after doing 'vxdg destroy'

book

Article ID: 100006267

calendar_today

Updated On:

Resolution

Resolve by performing the following commands:
Run on a known disk from the diskgroup:
Syntax:
# vxdisk list 
Example:
# vxdisk list emc_clariion0_5
Device:    emc_clariion0_5
devicetag: emc_clariion0_5
type:      auto
hostid:
disk:      name= id=1247759703.23.systemname
group:     name= id=1311280782.18.systemname
info:      format=cdsdisk,privoffset=256,pubslice=2,privslice=2
flags:     online ready private autoconfig
pubpaths:  block=/dev/vx/dmp/emc_clariion0_5s2 char=/dev/vx/rdmp/emc_clariion0_5s2
guid:      {06409cb8-1dd2-11b2-9f02-00144fe54846}
udid:      DGC%5FRAID%205%5FAPM00064800091%5F60060160C68218006C1EF93504EBDC11
site:      -
version:   3.1
iosize:    min=512 (bytes) max=2048 (blocks)
public:    slice=2 offset=65792 len=7085824 disk_offset=0
private:   slice=2 offset=256 len=65536 disk_offset=0
update:    time=1315417754 seqno=0.124
ssb:       actual_seqno=0.0
headers:   0 240
configs:   count=1 len=48144
logs:      count=1 len=7296
Defined regions:
 config   priv 000048-000239[000192]: copy=01 offset=000000 enabled
 config   priv 000256-048207[047952]: copy=01 offset=000192 enabled
 log      priv 048208-055503[007296]: copy=01 offset=000000 enabled
 lockrgn  priv 055504-055647[000144]: part=00 offset=000000
Multipathing information:
numpaths:   1
c0t60060160C68218006C1EF93504EBDC11d0s2 state=enabled

Copy the data after the "group:     name= id="
# vxdg import
Example:
# vxdg import 1311280782.18.systemname

Then the filesystem can be mounted.


Issue/Introduction

A valid diskgroup was accidently destroyed, and needed to be recovered.