[RHV] Importing a replicated storage domain in disaster recovery site fails with a "Cannot acquire Lease" sanlock error

Solution In Progress - Updated -

Issue

  • In a disaster recovery test we have replicated all LUNs to a secondary site.
  • With the primary site powered off, we try to import one of the replicated storage domains in the destination site.
  • The storage domain import fails with the error:

    2024-05-25 12:38:12,836+0200 ERROR (jsonrpc/4) [storage.dispatcher] FINISH forcedDetachStorageDomain error=Cannot obtain lock: "id=aaaaaaaac-bbbb-cccc-dddd-eeeeeeeeeeee, rc=-243, out=Cannot acquire Lease(name='SDM', path='/dev/aaaaaaaac-bbbb-cccc-dddd-eeeeeeeeeeee/leases', offset=1048576), err=(-243, 'Sanlock resource not acquired', 'Lease is held by another host')" (dispatcher:66)
    
  • We would expect that the lease will expire in a few minutes after the original SPM host is off, however after ~20 minutes the same error is still happening.

Environment

  • Red Hat Virtualization (RHV) 4.4 SP1
  • Block-based storage
  • Replicated storage to a secondary site

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