Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alternative path required when using OpenZFS for zpool to allow listing of pools #28

Open
isketerol64 opened this issue Jan 5, 2024 · 7 comments

Comments

@isketerol64
Copy link

isketerol64 commented Jan 5, 2024

When using OpenZfs, the binary for zpool is found in /usr/local/sbin and not in /sbin. This means that the ZFS pools will not be listed in the Cockpit ZFS module. An easy fix follows.

cd /sbin
ln -s /usr/local/sbin/zpool zpool

Once this is done, a fresh in the ZFS module should show the pools.

These other binaries also need to be linked in the same way to ensure that all functionality is available.

  • zdb
  • zfs
  • zfs_ids_to_path
  • zhack
  • zinject
  • zpool
  • zstream
  • zstreamdump
  • ztest
@isketerol64 isketerol64 changed the title Alternative path required when using OpenZFS for zppol to allow listing of pools Alternative path required when using OpenZFS for zpool to allow listing of pools Jan 5, 2024
@Thorazin
Copy link

Thorazin commented Jan 26, 2024

Could I use a symlink from /sbin to /user/local/sbin to accomplish the same thing?

wait, thats what your command does, right?
yes, nevermind me...

@isketerol64
Copy link
Author

Could I use a symlink from /sbin to /user/local/sbin to accomplish the same thing?

wait, thats what your command does, right? yes, nevermind me...

I symlinked each of the binaries as I wanted to be sure to only pick up the binaries I wanted. A more elegant solution would be to modify the system PATH variable to include the OpenZFS binaries but again I wanted to be sure I only picked up the binaries I wanted.

Many different PATHs to the same result. :-)

Kevin

@Thorazin
Copy link

Could I use a symlink from /sbin to /user/local/sbin to accomplish the same thing?
wait, thats what your command does, right? yes, nevermind me...

I symlinked each of the binaries as I wanted to be sure to only pick up the binaries I wanted. A more elegant solution would be to modify the system PATH variable to include the OpenZFS binaries but again I wanted to be sure I only picked up the binaries I wanted.

Many different PATHs to the same result. :-)

Kevin

I am a little slow, but I get there eventually...

@Thorazin
Copy link

Thorazin commented Feb 8, 2024

Is this still working for you? It has stopped working for me and I am not sure why.

@q5sys
Copy link

q5sys commented Feb 14, 2024

@Thorazin I just tried this on a Rocky 9 box where I've manually compiled the latest openzfs and this symlink trick worked for me.

@Thorazin
Copy link

This may be of interest to some of you here. I rebuilt ZFS on a newly instally Ubuntu 22.04 LTS, again with the 6.5 HWE kernel but this time I followed the instructions to build a KMOD native Deb build as found here:

https://openzfs.github.io/openzfs-docs/Developer%20Resources/Custom%20Packages.html

and Cockpit is able to see the ZFS pools with zero modifications. No symlinking required.

@isketerol64
Copy link
Author

isketerol64 commented Feb 15, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants