|
NetBSD General Other questions regarding NetBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
|||
NetBSD does not recognize FreeBSD's zfs
Hello,
I have a zpool created on FreeBSD 12.0, but it is not recognized on NetBSD 8.1. Can anyone help? Code:
# zpool status no pools available |
|
|||
Pool compatibility depends on feature flags. If you create a pool on a system with newer features than the one you wish to share it with, you will see what you note.
Linux > FreeBSD > NetBSD in terms of feature flags 1/1/2020 Code:
$ cat /all/script/zpool-compatible #!/bin/sh newargs='' cmd='' if [ "$1" = 'create' ]; then cmd='create' newargs='' ALLOFF='' shift BOOT=0 [ "$1" = '-b' ] && BOOT=1 && shift LINUXONLY='userobj_accounting' FREEBONLY='spacemap_v2' BOOTKILL='edonr skein large_dnode sha512' case $(uname -s) in Linux) for i in $LINUXONLY; do newargs="${newargs} -o feature@${i}=disabled" done ;; FreeBSD) ALLOFF='-d' for i in $FREEBONLY; do newargs="${newargs}" # "-o feature@${i}=disabled" # This is not supported on FreeBSD 12 - turn them all off and enable them independently done ;; esac if [ $BOOT -eq 1 ]; then for i in $BOOTKILL; do newargs="${newargs} -o feature@${i}=disabled" done fi fi [ -n "$newargs" ] && echo "Akua override with: $newargs" [ -z "$1" ] && echo 'Akua zpool - use -b to disable possibly unbootable features as well' exec zpool $cmd $ALLOFF $newargs "$@" |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
"the OpenBSD kernel will only recognize 3.1 gig of RAM"? | hanzer | OpenBSD General | 8 | 20th January 2015 06:48 PM |
SuperTuxKart for NetBSD and FreeBSD | xeno74 | General software and network | 33 | 5th December 2013 07:05 PM |
Getting Xfce4 to recognize sound card | harishankar | NetBSD General | 5 | 13th November 2011 10:30 AM |
FreeBSD/NetBSD compatibility? | nilsgecko | Off-Topic | 5 | 22nd April 2011 07:30 PM |
k3b and k9copy do not recognize my DVD-RW device | corneliu | FreeBSD General | 8 | 25th May 2008 08:06 AM |