Zfs: On a fresh boot, with no zpool imported, cannot unload zfs module "Module zfs is in use"

Created on 8 Jun 2018  路  3Comments  路  Source: openzfs/zfs

# zpool list
no pools available
# rmmod zfs
rmmod: ERROR: Module zfs is in use
# rmmod -f zfs
rmmod: ERROR: ../libkmod/libkmod-module.c:793 kmod_module_remove_module() could not remove 'zfs': Resource temporarily unavailable
rmmod: ERROR: could not remove module zfs: Resource temporarily unavailable

# lsmod | grep zfs
zfs                  3407872  3
zunicode              331776  1 zfs
zavl                   16384  1 zfs
icp                   258048  1 zfs
zcommon                69632  1 zfs
znvpair                77824  2 zcommon,zfs
spl                   106496  4 znvpair,zcommon,zfs,icp



md5-4ef81dfe4665030abff667a247501128



# dpkg -l |grep zfs
ii  libzfs2linux                              0.7.5-1ubuntu15                      amd64        OpenZFS filesystem library for Linux
ii  zfs-dkms                                  0.7.5-1ubuntu15                      all          OpenZFS filesystem kernel modules for Linux
ii  zfs-initramfs                             0.7.5-1ubuntu15                      all          OpenZFS root filesystem capabilities for Linux - initramfs
ii  zfs-zed                                   0.7.5-1ubuntu15                      amd64        OpenZFS Event Daemon
ii  zfsutils-linux                            0.7.5-1ubuntu15                      amd64        command-line tools to manage OpenZFS filesystems



md5-4ef81dfe4665030abff667a247501128



# cat /etc/issue
Ubuntu 18.04 LTS

Most helpful comment

You may need to stop the zed service to unload the modules.

All 3 comments

You may need to stop the zed service to unload the modules.

Try unloading spl first?

@behlendorf stoping the zed daemon resolved thie issue, thanks.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tronder88 picture tronder88  路  3Comments

seonwoolee picture seonwoolee  路  3Comments

marker5a picture marker5a  路  4Comments

nh2 picture nh2  路  3Comments

Hubbitus picture Hubbitus  路  4Comments