Solved Problem with OpenZFS

Argentum

Aspiring Daemon

Reaction score: 299
Messages: 626

Just recently I moved to the latest sysutils/openzfs-kmod (openzfs-kmod-2021101400) from ports.

At first everything seemed normal after OpenZFS upgrade from previous version, but later I noticed that gitup ports -v 1 crashed with weird error message that it cannot read a file in a ports tree. Manually checking that the file actually existed. After moving back to base ZFS, the gitup also turned back to normal.

Assume that there is a bug in OpenZFS port. Would like to create a PR, but have no good idea how to isolate and fully describe this issue.

Anybody here who has tried the latest OpenZFS?
 

Alain De Vos

Son of Beastie

Reaction score: 809
Messages: 2,619

I use:
Code:
openzfs-2021090800             OpenZFS userland for FreeBSD
openzfs-kmod-2021090800        OpenZFS kernel module for FreeBSD
on FreeBSD 13.0-RELEASE-p4 and have zero problems ...
 
OP
Argentum

Argentum

Aspiring Daemon

Reaction score: 299
Messages: 626

I use:
Code:
openzfs-2021090800             OpenZFS userland for FreeBSD
openzfs-kmod-2021090800        OpenZFS kernel module for FreeBSD
on FreeBSD 13.0-RELEASE-p4 and have zero problems ...
I had this before the latest and had also no problems.
 

Zirias

Son of Beastie

Reaction score: 1,711
Messages: 2,871

Not me. But I have a question: Is there any feature added you actually need (that isn't in base OpenZFS already)?

If there's a bug, it's probably an upstream bug. I'd recommend to stick with what's in base, cause that's thoroughly tested and stable, unless there's really a need for some feature…
 

Alain De Vos

Son of Beastie

Reaction score: 809
Messages: 2,619

And don't mix base zfs and openzfs binaries.
I remove the base binaries manually.
 

Zirias

Son of Beastie

Reaction score: 1,711
Messages: 2,871

base zfs is OpenZFS since 13. But sure, mixing different versions would be a pretty bad idea.
 
OP
Argentum

Argentum

Aspiring Daemon

Reaction score: 299
Messages: 626

Not me. But I have a question: Is there any feature added you actually need (that isn't in base OpenZFS already)?

If there's a bug, it's probably an upstream bug. I'd recommend to stick with what's in base, cause that's thoroughly tested and stable, unless there's really a need for some feature…
Speed improvement has been claimed.
 

Alain De Vos

Son of Beastie

Reaction score: 809
Messages: 2,619

I run following script after each make/install - world&kernel.
So i don't need to play with paths
Code:
echo "MOVE------------------------------"
mv -v /usr/sbin/zdb          /sbinbackup 
mv -v     /sbin/zfs          /sbinbackup
mv -v  /usr/bin/zinject      /sbinbackup
mv -v     /sbin/zpool        /sbinbackup
mv -v  /usr/bin/zstream      /sbinbackup
mv -v  /usr/bin/zstreamdump  /sbinbackup
mv -v  /usr/bin/ztest        /sbinbackup
echo "REMOVE------------------------------"
cd /sbin
rm zdb zfs zinject zpool zstream zstreamdump ztest
echo "LINK--------------------------------"
cd /sbin
ln -s /usr/local/sbin/zdb
ln -s /usr/local/sbin/zfs
ln -s /usr/local/sbin/zinject
ln -s /usr/local/sbin/zpool 
ln -s /usr/local/sbin/zstream
ln -s /usr/local/sbin/zstreamdump
ln -s /usr/local/sbin/ztest
 
OP
Argentum

Argentum

Aspiring Daemon

Reaction score: 299
Messages: 626

Installed the latest openzfs-kmod-2021102500 from ports, but the problem persists.
 

SirDice

Administrator
Staff member
Administrator
Moderator

Reaction score: 12,767
Messages: 39,377

I run following script after each make/install - world&kernel.
So i don't need to play with paths
make delete-old will remove them if you're building world with WITHOUT_ZFS in src.conf(5).

Code:
     WITHOUT_ZFS
             Set to not build ZFS file system kernel module, libraries, and
             user commands.

Code:
     delete-old           Delete obsolete base system files and directories
                          interactively.  When -DBATCH_DELETE_OLD_FILES is
                          specified at the command line, the delete operation
                          will be non-interactive.  The variables DESTDIR,
                          TARGET_ARCH and TARGET should be set as with “make
                          installworld”.

     delete-old-libs      Delete obsolete base system libraries interactively.
                          This target should only be used if no third party
                          software uses these libraries.  When
                          -DBATCH_DELETE_OLD_FILES is specified at the command
                          line, the delete operation will be non-interactive.
                          The variables DESTDIR, TARGET_ARCH and TARGET should
                          be set as with “make installworld”.
 
Top