Question: are gandalf and dumbledore related?
Answer: Albus Dumbledore was played by Richard Harris in the first two Harry Potter movies. Michael Gambon played Dumbledore in the remainder of the movies. Ian McKellan played Gandalf in the Lord of the Rings. So, no, they weren't the same actor.