I usually put it fairly plumb against the racking, then secure it with a few vertical telescopic shoring poles with little blocks of foam between the pole and the material so it doesn't have room to rattle or get damaged (the foam blocks I save from double glazing packaging)
Mine were custom made for my van, but there are systems with tracks that are commercially available.