For Mac OS X Server 10.3.x only. Tiger has a “repair” button.
http://docs.info.apple.com/article.html?artnum=107996