What should I do with this metastat result? metareplace everything?

I have to rescue the volumes in a soloris 7 machine. The metastat returns the following result:

d6 is dying with iostat -nE returns Harderror 3, Transports error 9

Can some offer me some help? Thank you very much.

Do you know what triggered these problems in the first place? It looks like c0t0d0 had some kind of failure... is it working again now?

Try using the non-destructive read tests in format to see if you can read the entire c0t0d0 device.

If it seems to be working okay again, you should be able to use metareplace -e d0 c0t0d0s0, for example, to replace the disk with itself (and repeat for the other mirrors of course). Otherwise you may need to replace that disk first... probably a good idea to have a spare disk handy anyway if it is indeed beginning to fail.

Keep an eye on the hard errors. If these increase, you'll most probably need to replace the disk.

Check out the format command and see if you can write a label to your disk (you won't lose any data). If this fails, it's a good indicator that you've got a disk which is failing.

If hard errors are not increasing, you could just run the metareplace command, using the existing slice and see if this brings the mirrors back online (I have run into this issue before) e.g. metareplace d0 c0t0d0s0.

There is no increase of hard error.
Format can not recognize c0t0d0.

And, metareplace -e d0 c0t0d0s0 returns I/O errors.

Is it possible to bring mirror d0 back online with c0t1d0s0?

metastat -p returns

Just because it "needs maintenance" doesn't mean it is offline. If c0t1d0s0 is still working fine, then you should be able to access d0 fine... is it not working?

Yes, I am still able to access d0 but not d6. d0 is online. d6 is dead.

But metareplace just can't help me to fix the "needs maintenance" problem.

iostat -nE returns:

That makes sense because for some reason d26 is no longer associated with d6. I can't advise you a safe method to reattach it to d6 because I don't have access to a Solaris system using SVM/DiskSuite any more.

If the disk is genuinely faulty (which it appears to be judging by the number of hard errors and the fact that metareplace fails) then you should physically replace it before attempting to rejoin it to the mirrors.

If you need to recover the data from d26 one option would be to simply mount that device instead of d6.