Cannot recreate a PCS resource after deleting a resource with the same name

Solution Verified - Updated -

Issue

  • Using pcs, creating a resources with a given name (e.g. "VirtualIP"), then deleting it, prevents the creation of a new resource with the same name (e.g. "VirtualIP").
# pcs resource create VirtualIP ocf:heartbeat:IPaddr2 ip=192.168.0.99 cidr_netmask=32 nic=eth2 op monitor interval=30s meta is-managed=false

-> OK

# pcs resource delete VirtualIP
Deleting Resource - VirtualIP

-> OK

# pcs resource create VirtualIP ocf:heartbeat:IPaddr2 ip=192.168.0.99 cidr_netmask=32 nic=eth2 op monitor interval=30s meta is-managed=false
Error: unable to create resource/fence device 'VirtualIP', 'VirtualIP' already exists on this system

-> KO

Environment

  • Red Hat Entreprise Linux (RHEL) 7.2
  • pcs

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.