45Drives / cockpit-zfs-manager

Cockpit ZFS Manager is an interactive ZFS on Linux admin package for Cockpit.
GNU Lesser General Public License v3.0
312 stars 26 forks source link

Message on disks in status view #7

Closed Ekerim closed 2 years ago

Ekerim commented 2 years ago

On Rocky 8 (RHEL8) the message '/dev/(null' is shown as a message for each disk in the status view. zfs msg

bkelly16 commented 2 years ago

This is related to this issue over in the openzfs repo.

Root cause is still under investigation and will need to be fixed in openzfs source, but in the meantime this workaround should get the job done until its fixed upstream.

  1. Make a directory for custom zpool helper scripts mkdir /root/.zpool.d
  2. Curl down this helper script, and mark it as executable curl -o /root/.zpool.d/upath https://scripts.45drives.com/zfs/upath && chmod +x /root/.zpool.d/upath
  3. Verify you can see the /dev/sd* names in the upath column ZPOOL_SCRIPTS_AS_ROOT=1 zpool status -p -t -c upath
  4. Verify in the UI, the message column should be empty and the correct device model info will be under the Product Column

Screenshot from 2022-05-16 16-17-48

Ekerim commented 2 years ago

Thank you.

Worked as it should.