Skip to main content

A set of tools used to determine Zoned Storage Support

Project description

Copyright (C) 2022 Western Digital Corporation or its affiliates.

zbd-tools

zbd-tools is a tool set providing functions determining the availability of zone block device support. These tools will help identify kernel configurations and whether zone block device software packages are installed.

Contributions and Bug Reports

Contributions are accepted as github pull requests or via email (git send-email patches). Any problem may also be reported through github issues page or by contacting:

PLEASE DO NOT SUBMIT CONFIDENTIAL INFORMATION OR INFORMATION SPECIFIC TO DRIVES THAT ARE VENDOR SAMPLES OR NOT PUBLICLY AVAILABLE.

Requirements

zbd-tools requires the following for installation and usage:

  • Python 3.0 or higher

Installation Using pip

The following command can be executed to fetch and install the zbd-tools package.

$ pip install zbd-tools
Collecting zbd-tools
  Downloading zbd_tools-1.0-py3-none-any.whl (6.3 kB)
Installing collected packages: zbd-tools
Successfully installed zbd-tools-1.0

To uninstall zbd-tools from the system, use the following command.

$ pip uninstall zbd-tools
Found existing installation: zbd-tools 1.0
Uninstalling zbd-tools-1.0:
  Would remove:
    /usr/local/bin/zbd-check
    /usr/local/lib/python3.9/dist-packages/check/*
    /usr/local/lib/python3.9/dist-packages/zbd_tools-1.0.dist-info/*
Proceed (Y/n)? Y
Successfully uninstalled zbd-tools-1.0

Usage

zbd-tools provides the zbd-check utility to check the zoned block device features and applications supported by a Linux distribution.

zbd-check

This utility allows checking a Linux distribution for zoned block device support. Three different class of features are checked:

  1. Kernel features: device types, device mapper targets and file systems support are checked.
  2. User Libraries: zbd-check will list the installation status of user libraries related to zoned block devices.
  3. User Applications: zbd-check will list the installation status of user applications related to zoned block devices.

zbd-check command line usage is displayed using the option "--help".

$ zbd-check --help
usage: zbd-check.py [-h] [--version]
options:
  -h, --help  show this help message and exit
  --version   show the version of zbd-check

The following shows an example output of the zbd-check utility executed on a system running Fedora Linux 37.

$ zbd-check
------------------------------------------------------------------------
System Information:
------------------------------------------------------------------------
- Distribution: Fedora Linux 37 (Workstation Edition)
- Kernel Version: 6.0

------------------------------------------------------------------------
Kernel features:
------------------------------------------------------------------------
- Zoned block devices: supported
- Devices types:
    - SAS and SATA SMR hard-disks: supported
    - NVMe ZNS devices: supported
    - SCSI debug device ZBC emulation: supported
    - null_blk device zoned mode: supported
- file systems:
    - zonefs: supported
    - f2fs zoned mode: supported
    - btrfs zoned mode: supported
- Device mapper targets:
    - dm-linear: supported
    - dm-flakey: supported
    - dm-crypt: supported
    - dm-zoned: supported

------------------------------------------------------------------------
User Kernel zone management API:
------------------------------------------------------------------------
- Zone management kernel API header file: installed

------------------------------------------------------------------------
User Libraries:
------------------------------------------------------------------------
- libzbc:
    - Dynamic library installed, version 5.13.0
    - Static library installed
    - Development header files installed
- libzbd:
    - Dynamic library installed, version 2.0.2
    - Static library installed
    - Development header files installed
- libnvme:
    - Dynamic library installed, version 1.2
    - Static library not installed
    - Development header files installed

------------------------------------------------------------------------
User Applications:
------------------------------------------------------------------------
- fio: installed, version fio-3.29-7-g01686
- nvme-cli: installed, version 2.2.1
- dm-zoned-tools: installed, version 2.2.1
- zonefs-tools: installed, version 1.5.2

Project details


Download files

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

Source Distribution

zbd_tools-1.0.1.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

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

zbd_tools-1.0.1-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file zbd_tools-1.0.1.tar.gz.

File metadata

  • Download URL: zbd_tools-1.0.1.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.2

File hashes

Hashes for zbd_tools-1.0.1.tar.gz
Algorithm Hash digest
SHA256 ccef184a104919417db3c2b89629a8647d66bf6c628420dd83b6fed386f5c130
MD5 b0d08883e18af258a59bab38fe19ea50
BLAKE2b-256 08481d0fc8a57047a167d4b0c2d0651bd63d656b76de574af24a8da074793d8b

See more details on using hashes here.

File details

Details for the file zbd_tools-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: zbd_tools-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 6.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.2

File hashes

Hashes for zbd_tools-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4da3ba0277cb95ad32423459df26f50bb6d0223b46e17d9c3155aeb9e74b2ba7
MD5 ee30c429c18f9dcb087b73b6c457dd5f
BLAKE2b-256 e7cc317a3289a64a36adca9068c2b718710cc1e56a05f39a0c63f2f360423150

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