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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content