[SOLVED] zfs problem: /sbin/zpool: undefined symbol: thread_init

myzamri

New Member
May 11, 2017
11
1
3
45
I got problem when I updated the zfs package. This is the details after dropping to busybox:

SPL : loaded module 0.7.3-1
znvpair module license 'CDDL' taints' kernel
ZFS loaded module v0.7.3.1-1 , ZFS pool version 5000 , ZFS filesystem version 5

The error (some of them):

Command: /sbin/zpool import -N 'rpool'
Message: /sbin/zpool : symbol lookup error: /sbin/zpool: undefined symbol: thread_init
Error:127

Failed to import pool 'rpool'.

I tried booting from CD (rescue boot) but the error still the same after dropping to busybox.

Looks like to zfs utilities are missing the required libraries or not installed.

How do i install the libraries in busybox?
Can I reinstall proxmox 5.1 with my vm still intact?

Any solution?
 

fabian

Proxmox Staff Member
Staff member
Jan 7, 2016
3,399
529
113
sounds like you did a partial upgrade. but with a live CD supporting ZFS, import your rpool, chroot into it and fix the installed packages.
 

fabian

Proxmox Staff Member
Staff member
Jan 7, 2016
3,399
529
113
Debian Stretch is fine unless your pool has features active that require 0.7 (in that case, you need to install packages from testing..)
 

myzamri

New Member
May 11, 2017
11
1
3
45
Could you give me point me to a direction on how to import rpool and chroot it
 

myzamri

New Member
May 11, 2017
11
1
3
45
Ok thank you for the pointer.

I have solved the problem by using Ubuntu 16.04 desktop live iso. Booted into the live system ran these:

zpool import -N 'rpool'
zpool set mountpoint=/mnt rpool/RPOOL/pve-1
zfs mount rpool/ROOT/pve-1
mount -t proc /proc /mnt/proc
mount --rbind /dev /mnt/dev


#Enter the chroot
chroot /mnt /bin/bash
source /etc/profile
apt update && apt upgrade & apt dist-upgrade <-- this installed new kernel
zpool status <-- test that zpool can be ran ok
zfs set mountpoint=/ rpool/RPOOL/pve-1
exit

The restart the server. Voila!. The server ran ok.

Thank you for the idea to solve this issue fabian.
 
  • Like
Reactions: chrone

fabian

Proxmox Staff Member
Staff member
Jan 7, 2016
3,399
529
113
you should always run "apt update && apt dist-upgrade", as PVE upgrades will sometimes pull in new packages or remove older ones
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE and Proxmox Mail Gateway. We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get your own in 60 seconds.

Buy now!