This should be pretty simple to sort out but I'm going to have to make a few assumptions as I don't know your metadevice naming standard, you've not posted your md.tab and without CODE tags round the metastat output it's very hard to read.
</grumble>
Righty, that out of the way, lets take a look at your current status and draw some inferences:
I think your current setup is thus:
Mirror devices:
d37
d35
d34
d33
d31
d30
Each mirror has two submirrors, d1x and d2x. Does that sound correct?
Your metadb is on slice 6, correct?
It also looks like the disk that died is c1t1d0, correct?
If all those assumptions are correct, (if not, stop here and clarify) then the normal course of action is to replace the failed disk, then run metareplace -e <mirror device> c1t1d0s<slice number> for each slice of the new disk.
Unfortunately you've already blown away most of your submirrors so we'll need to rebuild - don't worry, that's safe and easy and you won't lose any data

Just a little more tedious.
As you've left d31 intact, fix that one by running:
Code:
metareplace -e d31 c1t1d0s1
While that rebuilds, we'll check the metadbs out.
Run
to list all the copies of the db. Anything with a W by it (probably everything on c1t1d0s6) is buggered. Provided you still have a few good copies of it, remove the faulty versions of the db. Count how many there are on that device, then run:
.
Then re-add them:
Code:
metadb -a -c <number of copies> c1t1d0s6
.
Now wait here until d31 has finished synching:
Code:
metastat | grep '%'
Wait until it stops showing you a % complete.
As you've already created all your submirror metadevices, the only thing left to do it attach them - One by one (yes really, anything else is _way_ slower). For each remaining mirror in the list, run:
I don't know what d38 d39 and d41 are for so I'm ignoring them for now
