---
name: "virt-sanlock-cleanup"
section: "8"
platform: "linux"
package: "libvirt-daemon-plugin-sanlock"
version: "11.3.0-3+deb13u3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/virt-sanlock-cleanup"
---

# virt-sanlock-cleanup(8)

remove stale sanlock resource lease files

## NAME

virt-sanlock-cleanup - remove stale sanlock resource lease files

## SYNOPSIS

**virt-sanlock-cleanup**

## DESCRIPTION

This tool removes any resource lease files created by the sanlock lock manager plugin. The resource lease files only need to exist on disks when a guest using the resource is active. This script reclaims the disk space used by resources which are not currently active.

## EXIT STATUS

Upon successful processing of leases cleanup, an exit status of 0 will be set. Upon fatal error a non-zero status will be set.

## AUTHOR

Daniel P. Berrangé

## BUGS

Please report all bugs you discover.  This should be done via either:

- 1\.

  the mailing list

   \<https://libvirt.org/contact.html\>

- 2\.

  the bug tracker

   \<https://libvirt.org/bugs.html\>

Alternatively, you may report bugs to your software distributor / vendor.

## COPYRIGHT

Copyright (C) 2011, 2013 Red Hat, Inc.

## LICENSE

**virt-sanlock-cleanup** is distributed under the terms of the GNU GPL v2+. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE

## SEE ALSO

[virsh(1)](/virsh/1.md), online instructions \<https://libvirt.org/kbase/locking.html\> ,\
  \<https://libvirt.org/\>
