I carry two u-locks on my commute (I leave my bike locked in a parking garage all day). One is strapped on top of the rack using four velcro straps. It's quite secure, and doesn't rattle. The other lock is inside the helmet holder in my Arkel Bug pannier/backpack. Sometimes I carry a cable lock as well, and when I do, it goes inside the pannier.