The Lompoc Valley Medical Center held a state-mandated earthquake drill to prepare for emergencies.