Ireland was partitioned and thats how Northern Ireland came about, though it hasnt always stopped the violence, partionining a country doesnt always mean peace.
this often plays out in history eg North and south Vietnam, North and South Korea, East and West Germany, Quebec Canada, India and Pakistan, Palestine and Israel, almost all the African states...and most of the Pacific nations controlled by overseas interests.