It is well known that externally generated resonant magnetic perturbations (RMPs) can form islands in the plasma edge. In turn, large overlapping islands generate stochastic fields, which are believed to play a role in the avoidance and suppression of edge localized modes (ELMs) at DIII-D. However, large coalescing islands can also generate, in the middle of these stochastic regions, KAM surfaces effectively acting as 'barriers' against field-line dispersion and, indirectly, particle diffusion. It was predicted in Ali and Punjabi (2007 Plasma Phys. Control. Fusion49 1565–82) that such magnetic barriers can form in piecewise analytic DIII-D plasma equilibria. In this work, the formation of magnetic barriers at DIII-D is corroborated by field-line tracing calculations using experimentally constrained EFIT (Lao et al 1985 Nucl. Fusion25 1611) DIII-D equilibria perturbed to include the vacuum field from the internal coils utilized in the experiments. According to these calculations, the occurrence and location of magnetic barriers depend on the edge safety factor q95. It was thus suggested that magnetic barriers might contribute to narrowing the edge stochastic layer and play an indirect role in the RMPs failing to control ELMs for certain values of q95. The analysis of DIII-D discharges where q95 was varied, however, does not show anti-correlation between barrier formation and ELM suppression.