The chemical reactions and pathways resulting in the formation of glucans, polysaccharides consisting only of glucose residues.