Global sawtooth oscillations of the magnetosphere