Uploaded image for project: 'Percona Server for MySQL'
  1. Percona Server for MySQL
  2. PS-7955

Enable ZenFS functionality on standard Percona Server packages on Debian 11 and Ubuntu 20.04 Focal

Details

    • Improvement
    • Status: Done
    • Medium
    • Resolution: Fixed
    • 8.0.x
    • 8.0.27-18 (Q4 2021)
    • Packaging
    • None
    • Yes

    Description

      At the moment Debian 11.1 is the only platform that meets all ZenFS requirements out-of-the-box without any modifications.
      By default it has 5.10.70 LTS kernel that includes CAP_SYS_ADMIN patch in block/blk-zoned.c.
      At the same time, although default LTS kernel on Ubuntu 20.04 Focal is of version 5.4.0, a 5.11 HWE kernel patched with CAP_SYS_ADMIN can be pretty easily installed on that platform. Moreover, with this patch in libzbd code, the library can now be built even when linux-libc-dev is of version 5.4.0 and does not have BLKOPENZONE / BLKCLOSEZONE / BLKFINISHZONE constants defined in <linux/blkzoned.h>
      Therefore, for Debian 11 and Ubuntu 20.04 Focal

      1. Percona Server must be built with -DROCKSDB_PLUGINS=zenfs, -DWITH_ZENFS_UTILITY=ON and -DWITH_ZBD=bundled CMake options
      2. zenfs utility must be added to the package binaries list
      3. libgflags must be added as package dependenciy
      4. libgflags-dev must be added as package build dependency

      Note: WITH_ZBD CMake option was added in this commit in percona-server and is currently available in 8.0 trunk.

      Attachments

        Issue Links

          Activity

            People

              evgeniy.patlan Evgeniy Patlan
              yura.sorokin Yura Sorokin
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - Not Specified
                  Not Specified
                  Logged:
                  Time Spent - 2 days, 5 hours, 45 minutes
                  2d 5h 45m

                  Smart Checklist