You should filter nodes by online state. May be you need to use `crm_node` command