Closed FransUrbo closed 10 years ago
Hmm, maybe not...
debian:~# ldd /usr/sbin/grub-probe | grep libzfs
libzfs.so.2 => /lib/libzfs.so.2 (0x00007f5ed485b000)
libzfs_core.so.1 => /lib/libzfs_core.so.1 (0x00007f5ed3a6d000)
debian:~# /usr/sbin/grub-probe --target=device /
/dev/sdb1
/dev/sdc1
The first is a clean install with 0.6.2, upgraded to pre0.6.3 from the daily.
The second have been upgraded several times back and forth and latest with the same packages as the 0.6.2->pre0.6.3 packages.
And now it doesn't work on the later either!
The end of an strace shows:
access("/sys/module/zfs", F_OK) = 0
open("/dev/zfs", O_RDWR) = 3
open("/etc/mtab", O_RDONLY) = 4
open("/etc/dfs/sharetab", O_RDONLY) = 5
open("/dev/zfs", O_RDWR) = 6
ioctl(3, 0x5a05, 0x7fff4dda4180) = -1 ENOMEM (Cannot allocate memory)
ioctl(3, 0x5a05, 0x7fff4dda4180) = -1 EFAULT (Bad address)
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
Segmentation fault
Ok, this seems to be bogus. I accidentally saw that for some reason the upgrade of ZoL 'ejected' (!?!) the pool (old module, new binaries ?). That is, 'zpool status' gave "no pools available". A reboot later, and pool is there and grub-probe worked.
The "no pools available" needs to be investigated, but there is no problem with grub...