NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Zfs on NetBSD



Yes, I do have /dev/zfs.
$ ll /dev/zfs
crw-------  1 root  wheel  190, 0 Jul 21 15:23 /dev/zfs

I did find the zfs.mod, but get this error when trying to load it.
$ sudo modload /stand/amd64/8.1/modules/zfs/zfs.kmod
modload: /stand/amd64/8.1/modules/zfs/zfs.kmod: Program version wrong

Which makes sense since I am booting kernel 8.99.51 NetBSD 8.99.51 (GENERIC)
I did pull down the sets for NetBSD 8.99.51 (GENERIC) and unpacked base.tar.xz and modules.tar.xz. Then I copied the contents of stand to /stand/amd64/8.99.51. (Should I remove /stand/amd64/8.1?)

I did modload zfs and rebooted, but got the errors listed below.
$ sudo modload zfs


$ dmesg | grep zfs
[  64.6900799] warning: /usr/src/sys/external/bsd/drm2/dist/drm/i915/intel_pm.c:3616: WARN_ON(!wm_changed)warning: /usr/src/sys/external/bsd/drm2/dist/drm/i915/intel_pm.c:3616: WARN_ON(!wm_changed)warning: /usr/src/sys/external/bsd/drm2/dist/drm/i915/intel_pm.c:3616: WARN_ON(!wm_changed)warning: /usr/src/sys/external/bsd/drm2/dist/drm/i915/intel_pm.c:3616: WARN_ON(!wm_changed)kobj_load, 190: [./zfs]: linker error: not an ELF object
[ 11951.1654531] WARNING: module error: module `zfs' built for `801000000', system `899005100'
[ 12310.9533135] WARNING: module error: module `zfs' built for `801000000', system `899005100'
[ 12509.3029082] WARNING: module error: recursive load failed for `zfs' (`solaris' required), error 2
[  30.9168505] WARNING: module error: incompatible module class for `zfs' (3 != 2)
[  30.9769426] WARNING: module error: incompatible module class for `zfs' (3 != 2)

I still get the same error message:
$ zfs
internal error: failed to initialize ZFS library

On 7/27/19, 4:02 AM, "J. Hannken-Illjes" <hannken%eis.cs.tu-bs.de@localhost> wrote:

    > On 26. Jul 2019, at 20:55, Ron Georgia <netverbs%gmail.com@localhost> wrote:
    > 
    > All,
    > I am trying to setup (i.e. learn about) zfs. I see /sbin/zfs; however, when I issue a zfs command I get the following error. I can’t find much info on setting up ZFS on NetBSD. Any links or pointers would be helpful.
    > 
    > $ zfs status
    > internal error: failed to initialize ZFS library
    > 
    > Even though I am running current, I thought the users mailing list might be best.
    > 
    > $ uname -a
    > NetBSD clement.ronverbs.dev 8.99.51 NetBSD 8.99.51 (GENERIC) #0: Sun Jul 21 21:07:12 UTC 2019  mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/amd64/compile/GENERIC amd64
    
    While "zfs status" is wrong as there is no command "status"
    the ZFS module should be loaded automatically and you should
    get a usage from running this command.
    
    You have "/dev/zfs"?
    
    What happens on "modload zfs"?
    
    --
    J. Hannken-Illjes - hannken%eis.cs.tu-bs.de@localhost - TU Braunschweig
    




Home | Main Index | Thread Index | Old Index