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 convenient way.
Introduction
ZFS is a non-trivial LVS filesystem with snapshots, reservations, 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. Most people do not comprehend this.
zfspace tries to analyse space usage and describe it in a human way with recommendations on the things you can do
to free some space. The snapshot analysis is similar to
this tool.
Installation
pip3 install zfspace
zfspace doesn't require root priviledges as it is installed in ~/.local/bin/
Usage
Usage: zfspace [-h] [-V] [-f FILTER] dataset_name
Run zfspace -h to get more help
Example: zfspace mypool/root/
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 Debian 10.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file zfspace-0.5.1-py3-none-any.whl.
File metadata
- Download URL: zfspace-0.5.1-py3-none-any.whl
- Upload date:
- Size: 10.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f06972d4da829ed586618107f4223119e42b8709d2469c37c24e7ab41cb4d2c2
|
|
| MD5 |
21dea2d74f6fe075cefdc481b6d173c0
|
|
| BLAKE2b-256 |
eb22eeba8f9832c5d36a17aba3f31d8afc24668a870e36072d338669d4571b50
|