The exact process depends on the STONITH device. For SBD, disk based fencing, pacemaker writes a poison pill to the slot of the node to be fenced and the node takes the pill and dies.