Interesting to note, if I counted correctly about 1/3 of West Virginia's counties voted for secession.
But the first vote in the Virginia Secession Convention, on April 4, 1861, was 88 to 45 against secession.
At the same time a convention leader met with President Lincoln, who reportedly offered to abandon Fort Sumter if the Virginia convention would adjourn.
Lincoln's offer was refused and so he went ahead with the Sumter resupply mission.
After Sumter, and Lincoln's call for troops, all Upper South states (Virginia, North Carolina, Tennessee and Arkansas) felt compelled to chose sides, and however reluctantly chose their fellow slave-holders' Confederacy.
In Border States (Delaware, Maryland, Kentucky & Missouri) the Slave Power was simply not numerous enough to win a secession vote.
So while some of their young men did serve the Confederacy, far more supported Union forces.
Squeaker or not, it was a total farce. The Confederate Congress had voted to admit Virgnia as a state a week or so before the referendum was held. Regardless of what the vote count had been, Virginia was headed into rebellion.