Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Unsupported Software
  • Search

[SOLVED]ZFS: feature 'lz4_compression' unsupported by kernel

This forum covers all Gentoo-related software not officially supported by Gentoo. Ebuilds/software posted here might harm the health and stability of your system(s), and are not supported by Gentoo developers. Bugs/errors caused by ebuilds from overlays.gentoo.org are covered by this forum, too.
Post Reply
Advanced search
4 posts • Page 1 of 1
Author
Message
wagnertheclown
n00b
n00b
Posts: 2
Joined: Sat Apr 10, 2021 1:06 am

[SOLVED]ZFS: feature 'lz4_compression' unsupported by kernel

  • Quote

Post by wagnertheclown » Sat Apr 10, 2021 1:35 am

Hello! I hope this is the right category to ask this; if not, please let me know.

I have installed ZFS as described in the Gentoo Wiki here with Gentoo kernel version 5.10.27.

I seem to be able to create zpools just fine via

Code: Select all

zpool create
but when I try to explicitly create a zpool with compression enabled (e.g., "-o feature@lz4_compression=enabled"), I get this error message:

Code: Select all

cannot create 'tank': feature 'lz4_compression' unsupported by kernel
I thought this strange, since I followed the recommended kernel configurations in the aforementioned Wiki article. I went back and made sure that LZ4 was enabled:

Code: Select all

# grep LZ4 /usr/src/linux/.config
CONFIG_HAVE_KERNEL_LZ4=y
# CONFIG_KERNEL_LZ4 is not set
CONFIG_RD_LZ4=y
CONFIG_CRYPTO_LZ4=y
CONFIG_CRYPTO_LZ4HC=y
CONFIG_LZ4_COMPRESS=y
CONFIG_LZ4HC_COMPRESS=y
CONFIG_LZ4_DECOMPRESS=y
CONFIG_DECOMPRESS_LZ4=y
I made sure that the LZ4 package was installed too:

Code: Select all

# grep lz4 /var/lib/portage/world
app-arch/lz4
When I look at dmesg while I run the failing create command (dmesg -w), I only see this:

Code: Select all

[ 5773.453660]  sdb: sdb1 sdb9
[ 5773.764591]  sdc: sdc1 sdc9
[ 5773.766770]  sdc: sdc1 sdc9
This is the full creation command I am trying to run:

Code: Select all

# zpool create -o feature@lz4_compression=on tank mirror <disk1> <disk2>
My questions:

- why is this happening?
- how can this error be solved?

General system information:

Code: Select all

# uname -r
5.10.27-gentoo

# zpool -V
zfs-2.0.0-rc1_466_g8a915ba1f
zfs-kmod-2.1.99-1
Thanks in advance!
Last edited by wagnertheclown on Sat Apr 10, 2021 2:29 am, edited 1 time in total.
- wagnertheclown
Top
alamahant
Advocate
Advocate
Posts: 4034
Joined: Sat Mar 23, 2019 12:12 pm

  • Quote

Post by alamahant » Sat Apr 10, 2021 1:57 am

Hi
if you run
zfs set compression=lz4 pool-name
after creating it
?
Also the correct format is

-o feature@lz4_compress=enabled

NOT 'compression'
:)
Top
wagnertheclown
n00b
n00b
Posts: 2
Joined: Sat Apr 10, 2021 1:06 am

  • Quote

Post by wagnertheclown » Sat Apr 10, 2021 2:28 am

Hi
if you run
zfs set compression=lz4 pool-name
after creating it
?
Also the correct format is

-o feature@lz4_compress=enabled

NOT 'compression'
Thank you for the clarification. Here is what i ran next:

Code: Select all

# zpool create tank mirror <disks>
# zpool set compression=lz4 tank
cannot set property for 'tank': invalid property 'compression'
Following your clarification:

Code: Select all

# zpool create -o feature@lz4_compress=enabled test ...
Does not seem to produce any errors!

Code: Select all

# zpool get feature@lz4_compress test
                     NAME  PROPERTY              VALUE                 SOURCE
test  feature@lz4_compress  active                local
Wow, sorry for creating a whole thread for a PEBKAC error. I'll mark this as solved.
- wagnertheclown
Top
Hu
Administrator
Administrator
Posts: 24395
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Sat Apr 10, 2021 4:09 pm

wagnertheclown wrote:Wow, sorry for creating a whole thread for a PEBKAC error. I'll mark this as solved.
The error message could be better, perhaps by directing you to an authoritative list of valid names. Considering only what you showed, it looks like any unacceptable name is reported that way, regardless of whether the name could be made valid by using different kernel compilation options.
Top
Post Reply

4 posts • Page 1 of 1

Return to “Unsupported Software”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic