I am planning to build shelves next to my water heater. I am planning to make shelves easily removable so it would be possible to service and replace heater without any problems. Here is how it is located:
It seems like I need to leave about 3 inch clearance for air flow and to avoid any fire hazard. My question is about location of gas line. I am planning to attach 2x4 to the wall indicated in the following picture:
As you can see there is gas line running in this wall. I will exercise caution and when predrilling holes will try to stay away from the gas line and will listen how drill bit moves, but in general how can I make sure that I do not hit a gas line in my house either in this project or any other where I have to make holes in the walls?

