The chemical reactions and pathways involving galactomannan, a polysaccharide composed of D-galactose and D-mannose. The mannose units form the backbone structure (a linear main chain) with the D-galactose as single side units.