Changes in the sun can cause global warming or global cooling. And when that happens it will not take centuries to change a single degree it will be much faster than that, we might not have time to move. Things might change in less than a year.
Same with volcanoes. Volcanoes can cause global cooling and that effect can be within days. A large volcano can block the sun with aerosols. Instantly cooling the whole planet.
But the sun will likely clear those aerosols away within a few years or so.