Artificial truth

The more you see, the less you believe.

[archives] [latest] | [homepage] | [atom/rss]

zpool: undefined symbol: get_system_hostid
Wed 09 September 2015 — download

I was upgrading my NAS, over a shitty 3G connection, in the middle of nowhere, so I was only upgrading critical/interesting packages (an airgaped machine doesn't need to have up to date ca-certificates)

After a reboot to switch to a new kernel, my data were gone, likely because of the zfs upgrade, fear not, the magic zpool import command is here to save the day:

root@ratigan 15:46 ~ zpool import tank
zpool: symbol lookup error: zpool: undefined symbol: get_system_hostid
zsh: exit 127   zpool import tank

The solution is simply to update your libzpool2 library:

root@ratigan 15:48 ~ apt-get install libzpool2
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be upgraded:
1 upgraded, 0 newly installed, 0 to remove and 186 not upgraded.
Need to get 365 kB of archives.
After this operation, 29.7 kB of additional disk space will be used.
Get:1 trusty/main libzpool2 amd64 [365 kB]
Fetched 365 kB in 2s (128 kB/s)     
(Reading database ... 136390 files and directories currently installed.)
Preparing to unpack .../libzpool2_0.6.4.2-1~trusty_amd64.deb ...
Unpacking libzpool2 ( over (0.6.3-5~trusty) ...
Setting up libzpool2 ( ...
Processing triggers for libc-bin (2.19-0ubuntu6.5) ...
root@ratigan 15:49 ~ zpool import tank        
root@ratigan 15:50 ~ zpool status
  pool: tank
 state: ONLINE
  scan: scrub repaired 0 in 2h23m with 0 errors on Wed Feb  4 19:27:34 2015

    NAME                                 STATE     READ WRITE CKSUM
    tank                                 ONLINE       0     0     0
      raidz1-0                           ONLINE       0     0     0
        sdc                              ONLINE       0     0     0
        sdb                              ONLINE       0     0     0
        ata-ST3000DM001-9YN166_W1F0MME7  ONLINE       0     0     0

errors: No known data errors