zpool not in search path

do you log in directly as root, or are you using su/sudo?
 
I logged in as root since sudo is not available. Pretty sure that su would have same problem.
 
please post the output of pveversion -v
 
Code:
root@pxmx:/home/admin# pveversion -v
proxmox-ve: 7.0-2 (running kernel: 5.11.22-4-pve)
pve-manager: 7.0-11 (running version: 7.0-11/63d82f4e)
pve-kernel-5.11: 7.0-7
pve-kernel-helper: 7.0-7
pve-kernel-5.11.22-4-pve: 5.11.22-9
ceph-fuse: 14.2.21-1
corosync: 3.1.5-pve1
criu: 3.15-1+pve-1
glusterfs-client: 9.2-1
ifupdown: residual config
ifupdown2: 3.1.0-1+pmx3
libjs-extjs: 7.0.0-1
libknet1: 1.22-pve1
libproxmox-acme-perl: 1.3.0
libproxmox-backup-qemu0: 1.2.0-1
libpve-access-control: 7.0-4
libpve-apiclient-perl: 3.2-1
libpve-common-perl: 7.0-9
libpve-guest-common-perl: 4.0-2
libpve-http-server-perl: 4.0-2
libpve-storage-perl: 7.0-11
libspice-server1: 0.14.3-2.1
lvm2: 2.03.11-2.1
lxc-pve: 4.0.9-4
lxcfs: 4.0.8-pve2
novnc-pve: 1.2.0-3
proxmox-backup-client: 2.0.10-1
proxmox-backup-file-restore: 2.0.10-1
proxmox-mini-journalreader: 1.2-1
proxmox-widget-toolkit: 3.3-6
pve-cluster: 7.0-3
pve-container: 4.0-9
pve-docs: 7.0-5
pve-edk2-firmware: 3.20200531-1
pve-firewall: 4.2-3
pve-firmware: 3.3-1
pve-ha-manager: 3.3-1
pve-i18n: 2.5-1
pve-qemu-kvm: 6.0.0-4
pve-xtermjs: 4.12.0-1
qemu-server: 7.0-14
smartmontools: 7.2-1
spiceterm: 3.2-2
vncterm: 1.7-1
zfsutils-linux: 2.0.5-pve1
 
and echo $PATH?
 
Code:
root@pxmx:~# echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

I should also add that even though it does appear to be in PATH here, I'm still getting this:

Code:
root@pxmx:~# zpool
bash: zpool: command not found
 
Last edited:
then the zpool binary must be available? could you try which zpool?
 
and dpkg -L zfsutils-linux?
 
I should add that if I manually specify the directory, it works fine:

Code:
root@pxmx:~# /usr/sbin/zpool
missing command
usage: zpool command args ...
where 'command' is one of the following:

    version
   
    ...

Here's the output that you requested:

Code:
root@pxmx:~# dpkg -L zfsutils-linux
/.
/etc
/etc/cron.d
/etc/cron.d/zfsutils-linux
/etc/default
/etc/default/zfs
/etc/sudoers.d
/etc/sudoers.d/zfs
/etc/zfs
/etc/zfs/zfs-functions
/etc/zfs/zpool.d
/lib
/lib/modules-load.d
/lib/modules-load.d/zfs.conf
/lib/systemd
/lib/systemd/system
/lib/systemd/system/zfs-import-cache.service
/lib/systemd/system/zfs-import-scan.service
/lib/systemd/system/zfs-import.target
/lib/systemd/system/zfs-import@.service
/lib/systemd/system/zfs-mount.service
/lib/systemd/system/zfs-share.service
/lib/systemd/system/zfs-volume-wait.service
/lib/systemd/system/zfs-volumes.target
/lib/systemd/system/zfs.target
/lib/systemd/system-generators
/lib/systemd/system-generators/zfs-mount-generator
/lib/systemd/system-preset
/lib/systemd/system-preset/50-zfs.preset
/lib/udev
/lib/udev/rules.d
/lib/udev/rules.d/60-zvol.rules
/lib/udev/rules.d/69-vdev.rules
/lib/udev/rules.d/90-zfs.rules
/lib/udev/vdev_id
/lib/udev/zvol_id
/sbin
/sbin/fsck.zfs
/sbin/mount.zfs
/sbin/zdb
/sbin/zfs
/sbin/zfs_ids_to_path
/sbin/zgenhostid
/sbin/zhack
/sbin/zpool
/sbin/zstream
/sbin/zstreamdump
/usr
/usr/bin
/usr/bin/zvol_wait
/usr/lib
/usr/lib/os-probes
/usr/lib/os-probes/10zvol-test
/usr/lib/zfs-linux
/usr/lib/zfs-linux/scrub
/usr/lib/zfs-linux/trim
/usr/lib/zfs-linux/zpool.d
/usr/lib/zfs-linux/zpool.d/ata_err
/usr/lib/zfs-linux/zpool.d/cmd_to
/usr/lib/zfs-linux/zpool.d/defect
/usr/lib/zfs-linux/zpool.d/dm-deps
/usr/lib/zfs-linux/zpool.d/enc
/usr/lib/zfs-linux/zpool.d/encdev
/usr/lib/zfs-linux/zpool.d/fault_led
/usr/lib/zfs-linux/zpool.d/health
/usr/lib/zfs-linux/zpool.d/hours_on
/usr/lib/zfs-linux/zpool.d/iostat
/usr/lib/zfs-linux/zpool.d/iostat-10s
/usr/lib/zfs-linux/zpool.d/iostat-1s
/usr/lib/zfs-linux/zpool.d/label
/usr/lib/zfs-linux/zpool.d/locate_led
/usr/lib/zfs-linux/zpool.d/lsblk
/usr/lib/zfs-linux/zpool.d/media
/usr/lib/zfs-linux/zpool.d/model
/usr/lib/zfs-linux/zpool.d/nonmed
/usr/lib/zfs-linux/zpool.d/nvme_err
/usr/lib/zfs-linux/zpool.d/off_ucor
/usr/lib/zfs-linux/zpool.d/pend_sec
/usr/lib/zfs-linux/zpool.d/pwr_cyc
/usr/lib/zfs-linux/zpool.d/r_proc
/usr/lib/zfs-linux/zpool.d/r_ucor
/usr/lib/zfs-linux/zpool.d/realloc
/usr/lib/zfs-linux/zpool.d/rep_ucor
/usr/lib/zfs-linux/zpool.d/serial
/usr/lib/zfs-linux/zpool.d/ses
/usr/lib/zfs-linux/zpool.d/size
/usr/lib/zfs-linux/zpool.d/slot
/usr/lib/zfs-linux/zpool.d/smart
/usr/lib/zfs-linux/zpool.d/smart_test
/usr/lib/zfs-linux/zpool.d/smartx
/usr/lib/zfs-linux/zpool.d/temp
/usr/lib/zfs-linux/zpool.d/test_ended
/usr/lib/zfs-linux/zpool.d/test_progress
/usr/lib/zfs-linux/zpool.d/test_status
/usr/lib/zfs-linux/zpool.d/test_type
/usr/lib/zfs-linux/zpool.d/upath
/usr/lib/zfs-linux/zpool.d/vendor
/usr/lib/zfs-linux/zpool.d/w_proc
/usr/lib/zfs-linux/zpool.d/w_ucor
/usr/sbin
/usr/sbin/arc_summary
/usr/sbin/arcstat
/usr/sbin/dbufstat
/usr/share
/usr/share/bash-completion
/usr/share/bash-completion/completions
/usr/share/bash-completion/completions/zfs
/usr/share/doc
/usr/share/doc/zfsutils-linux
/usr/share/doc/zfsutils-linux/COPYRIGHT
/usr/share/doc/zfsutils-linux/LICENSE.gz
/usr/share/doc/zfsutils-linux/changelog.Debian.gz
/usr/share/doc/zfsutils-linux/copyright
/usr/share/doc/zfsutils-linux/examples
/usr/share/doc/zfsutils-linux/examples/vdev_id.conf.alias.example
/usr/share/doc/zfsutils-linux/examples/vdev_id.conf.multipath.example
/usr/share/doc/zfsutils-linux/examples/vdev_id.conf.sas_direct.example
/usr/share/doc/zfsutils-linux/examples/vdev_id.conf.sas_switch.example
/usr/share/doc/zfsutils-linux/examples/vdev_id.conf.scsi.example
/usr/share/lintian
/usr/share/lintian/overrides
/usr/share/lintian/overrides/zfsutils-linux
/usr/share/man
/usr/share/man/man1
/usr/share/man/man1/zhack.1.gz
/usr/share/man/man1/zvol_wait.1.gz
/usr/share/man/man5
/usr/share/man/man5/spl-module-parameters.5.gz
/usr/share/man/man5/vdev_id.conf.5.gz
/usr/share/man/man5/zfs-events.5.gz
/usr/share/man/man5/zfs-module-parameters.5.gz
/usr/share/man/man5/zpool-features.5.gz
/usr/share/man/man8
/usr/share/man/man8/arcstat.8.gz
/usr/share/man/man8/fsck.zfs.8.gz
/usr/share/man/man8/mount.zfs.8.gz
/usr/share/man/man8/vdev_id.8.gz
/usr/share/man/man8/zdb.8.gz
/usr/share/man/man8/zfs-allow.8.gz
/usr/share/man/man8/zfs-bookmark.8.gz
/usr/share/man/man8/zfs-change-key.8.gz
/usr/share/man/man8/zfs-clone.8.gz
/usr/share/man/man8/zfs-create.8.gz
/usr/share/man/man8/zfs-destroy.8.gz
/usr/share/man/man8/zfs-diff.8.gz
/usr/share/man/man8/zfs-get.8.gz
/usr/share/man/man8/zfs-groupspace.8.gz
/usr/share/man/man8/zfs-hold.8.gz
/usr/share/man/man8/zfs-inherit.8.gz
/usr/share/man/man8/zfs-jail.8.gz
/usr/share/man/man8/zfs-list.8.gz
/usr/share/man/man8/zfs-load-key.8.gz
/usr/share/man/man8/zfs-mount-generator.8.gz
/usr/share/man/man8/zfs-mount.8.gz
/usr/share/man/man8/zfs-program.8.gz
/usr/share/man/man8/zfs-project.8.gz
/usr/share/man/man8/zfs-projectspace.8.gz
/usr/share/man/man8/zfs-promote.8.gz
/usr/share/man/man8/zfs-receive.8.gz
/usr/share/man/man8/zfs-recv.8.gz
/usr/share/man/man8/zfs-redact.8.gz
/usr/share/man/man8/zfs-release.8.gz
/usr/share/man/man8/zfs-rename.8.gz
/usr/share/man/man8/zfs-rollback.8.gz
/usr/share/man/man8/zfs-send.8.gz
/usr/share/man/man8/zfs-set.8.gz
/usr/share/man/man8/zfs-share.8.gz
/usr/share/man/man8/zfs-snapshot.8.gz
/usr/share/man/man8/zfs-unallow.8.gz
/usr/share/man/man8/zfs-unjail.8.gz
/usr/share/man/man8/zfs-unload-key.8.gz
/usr/share/man/man8/zfs-unmount.8.gz
/usr/share/man/man8/zfs-upgrade.8.gz
/usr/share/man/man8/zfs-userspace.8.gz
/usr/share/man/man8/zfs-wait.8.gz
/usr/share/man/man8/zfs.8.gz
/usr/share/man/man8/zfs_ids_to_path.8.gz
/usr/share/man/man8/zfsconcepts.8.gz
/usr/share/man/man8/zfsprops.8.gz
/usr/share/man/man8/zgenhostid.8.gz
/usr/share/man/man8/zpool-add.8.gz
/usr/share/man/man8/zpool-attach.8.gz
/usr/share/man/man8/zpool-checkpoint.8.gz
/usr/share/man/man8/zpool-clear.8.gz
/usr/share/man/man8/zpool-create.8.gz
/usr/share/man/man8/zpool-destroy.8.gz
/usr/share/man/man8/zpool-detach.8.gz
/usr/share/man/man8/zpool-events.8.gz
/usr/share/man/man8/zpool-export.8.gz
/usr/share/man/man8/zpool-get.8.gz
/usr/share/man/man8/zpool-history.8.gz
/usr/share/man/man8/zpool-import.8.gz
/usr/share/man/man8/zpool-initialize.8.gz
/usr/share/man/man8/zpool-iostat.8.gz
/usr/share/man/man8/zpool-labelclear.8.gz
/usr/share/man/man8/zpool-list.8.gz
/usr/share/man/man8/zpool-offline.8.gz
/usr/share/man/man8/zpool-online.8.gz
/usr/share/man/man8/zpool-reguid.8.gz
/usr/share/man/man8/zpool-remove.8.gz
/usr/share/man/man8/zpool-reopen.8.gz
/usr/share/man/man8/zpool-replace.8.gz
/usr/share/man/man8/zpool-resilver.8.gz
/usr/share/man/man8/zpool-scrub.8.gz
/usr/share/man/man8/zpool-set.8.gz
/usr/share/man/man8/zpool-split.8.gz
/usr/share/man/man8/zpool-status.8.gz
/usr/share/man/man8/zpool-sync.8.gz
/usr/share/man/man8/zpool-trim.8.gz
/usr/share/man/man8/zpool-upgrade.8.gz
/usr/share/man/man8/zpool-wait.8.gz
/usr/share/man/man8/zpool.8.gz
/usr/share/man/man8/zpoolconcepts.8.gz
/usr/share/man/man8/zpoolprops.8.gz
/usr/share/man/man8/zstream.8.gz
/usr/share/man/man8/zstreamdump.8.gz
/etc/zfs/zpool.d/ata_err
/etc/zfs/zpool.d/cmd_to
/etc/zfs/zpool.d/defect
/etc/zfs/zpool.d/dm-deps
/etc/zfs/zpool.d/enc
/etc/zfs/zpool.d/encdev
/etc/zfs/zpool.d/fault_led
/etc/zfs/zpool.d/health
/etc/zfs/zpool.d/hours_on
/etc/zfs/zpool.d/iostat
/etc/zfs/zpool.d/iostat-10s
/etc/zfs/zpool.d/iostat-1s
/etc/zfs/zpool.d/label
/etc/zfs/zpool.d/locate_led
/etc/zfs/zpool.d/lsblk
/etc/zfs/zpool.d/media
/etc/zfs/zpool.d/model
/etc/zfs/zpool.d/nonmed
/etc/zfs/zpool.d/nvme_err
/etc/zfs/zpool.d/off_ucor
/etc/zfs/zpool.d/pend_sec
/etc/zfs/zpool.d/pwr_cyc
/etc/zfs/zpool.d/r_proc
/etc/zfs/zpool.d/r_ucor
/etc/zfs/zpool.d/realloc
/etc/zfs/zpool.d/rep_ucor
/etc/zfs/zpool.d/serial
/etc/zfs/zpool.d/ses
/etc/zfs/zpool.d/size
/etc/zfs/zpool.d/slot
/etc/zfs/zpool.d/smart
/etc/zfs/zpool.d/smart_test
/etc/zfs/zpool.d/smartx
/etc/zfs/zpool.d/temp
/etc/zfs/zpool.d/test_ended
/etc/zfs/zpool.d/test_progress
/etc/zfs/zpool.d/test_status
/etc/zfs/zpool.d/test_type
/etc/zfs/zpool.d/upath
/etc/zfs/zpool.d/vendor
/etc/zfs/zpool.d/w_proc
/etc/zfs/zpool.d/w_ucor
/lib/systemd/system/zfs-import.service
 
Last edited:
then something is messing with your $PATH..
 
there is nothing in PVE that would do anything like that - and we test installation on stock Debian 10/11 very often. please check your system for customization you did (profile? your shell's rc file? any extra packages you installed/scripts you ran?)
 
There was no customization. We installed Debian 11 using its ISO installation wizard and then just followed the Proxmox installation instructions. I did this three times and all three hosts are affected.
 
just re-tested exactly that - installed Debian 11 (netinst iso), followed install PVE on Debian instructions, zpool command works as expected when logging in directly as root, or switching with su -. what doesn't work is su, as that does not set $PATH correctly (but you said you log in directly as root and don't use sudo or su, so that can't be the reason in your case). either your Debian installation is not stock, or something else is customized.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!