Ads 468x60px

Pages

Subscribe:

Monday, January 10, 2011

Importing the destroyed DG in VxVM.

There are few chances of human mistakes , might be of low impact or high impact . You might experienced using VxVM , where we use Disk groups to build the logical hierarchy to create volumes for accessing the disk .

If accidentally , that important disk got destroyed by mistake . Uffff how to get it back now .. .. .
Dont worry , in VxVM even though if DG is destroyed , if those disks are not used of any other purpose (for creating other DG) . We can get that back .

Want the trick to get worked ? then you might require some info regarding that destroyed DG . Dont worry , just required the DG ID that is shows under vxdg list , similar to the below one.

root@solaris1>vxdg list
NAME STATE ID
testdg enabled,cds 1294599911.10.solaris1

root@solaris1>vxdg destroy testdg
root@solaris1>vxdisk list
DEVICE TYPE DISK GROUP STATUS
c1t0d0s2 auto:none - - online invalid
c1t1d0s2 auto:SVM - - SVM
c1t2d0s2 auto:cdsdisk - - online
root@solaris1>vxdg list
NAME STATE ID

Uffff .. I destroyed my DG . Yeap , I have the required info to get it back ....... My DG ID
1294599911.10.solaris1

Use the vxdg import with the DG ID and that will get your DG back imported and enabled .

root@solaris1>vxdg import 1294599911.10.solaris1
root@solaris1>vxdg list
NAME STATE ID
testdg enabled,cds 1294599911.10.solaris1


root@solaris1>vxdisk list
DEVICE TYPE DISK GROUP STATUS
c1t0d0s2 auto:none - - online invalid
c1t1d0s2 auto:SVM - - SVM
c1t2d0s2 auto:cdsdisk disk01 testdg online


That got saved . Helpful hint doesnt it ..

2 comments:

Uthavumkarangal said...

Good to learn new things, like to see steps after import VG.

Raghav said...

Thanks for commenting on this .

Missed that step , will include with a separate post .

Post a Comment