Here is a good article on how to race a mountain bike all day and only be as miserable as you absolutely have to by Gerry Pflug from the Salsa Cycles site.
Endurance Racing Preparation
Gerry has been doing this stuff a long time and wins a bunch so I figure he knows what he is doing.