gmathew,
What Dev has said above is correct; provided you have access to all the disks in the diskgroup (ie: as from before the reinstall), you don't actually need to recreate anything as it is stored in the dg info (ie: as long as you can import the diskgroup it will already be there, and you just need to mount it as it was on the old system)
That said, if you want to be cautious/conservative/paranoid, you can take a backup of the config directory as suggested; however it should not be needed (ie: if you're just reinstalling the OS and not touching anything else, the dg should be untouched so all the volume config should still be there - if you can't import the dg and see the same volumes as before, this implies there's a problem eg: some disks may be missing, etc).
regards,
g_lee