Command to find the failed disks in SVM and VxVM

How to find & replace bad disks in solaris & VXVM?plz
explain step by step?

have a look at the commands:

# metastat
# metareplace
# vxdiskadm

the doing depends on your configuration...

#metastat |grep State
#vxdisk list

and for svm, you might need to use metaetach and metattach as well