The accumulation of glycerol within a cell, for example by increased glycerol biosynthesis combined with decreased permeability of the cell membrane to glycerol, in response to the detection of a hyperosmotic environment.