Skip to main content

zfspace tool helps to analyze how zfs disk space is used

Project description

zfspace

Console tool to find occupied pool space in ZFS on Linux. The tool uses pure python3 with shell commands to collect useful information from ZFS and show in convinient way.

Introduction

ZFS is a non-trivial LVS filesystem with snapshots, deduplication, filesystems hierarchy and so on. Common tools, such as dh or ls can't provide relevant information when you need to free some space. There is an explanatory article about this. Snapshots USED space is another puzzle. ZFS only shows space freed by destroying individual snapshot or space occupied by all filesystem snapshots. If you add up all USED space by the snapshots, you will not get total occupied space because there is some space occupied by a snapshot combinations. zfspace tries to show you these combinations and/or explain where most of your space is used. The idea is similar to this tool.

Installation

pip3 install zfspace zfspace doesn't require root priviledges as it is installed in ~/.local/bin/

Usage

zfspace <dataset name> Example: zfspace mypool/root/ dataset name may be a snapshot name or filesystem name. Clones and volumes may also be supported.

Compatibility

zfspace is pure python module installed by pip, so it might work on any Linux with Python3 and pip package manager. But zfspace has only been tested on Ubuntu 18.04 and Ubuntu 20.04.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

zfspace-0.4.0-py3-none-any.whl (10.5 kB view details)

Uploaded Python 3

File details

Details for the file zfspace-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: zfspace-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 10.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.13

File hashes

Hashes for zfspace-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b1105fa94e9b4b5c11c6d1f36674f26144fe5503ee53c0113c03b7b4bde69f53
MD5 b0e83f99798eea2ebe76b7273198d79d
BLAKE2b-256 db111faf846f6ec71bed44a6d38c4b11a66e5251be864e740b417d1dbcb77f46

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page