zfs (external HDD usb3) after reboot not available

esquire1968

Active Member
Jan 18, 2018
10
0
41
56
Hello everyone!

Proxmox is running on an SSD, and I’ve set up a ZFS pool (tank) as storage. The pool is located on an external HDD connected via USB 3. So far, everything works fine. However, when I reboot Proxmox, the external drive is visible as sdb, but I don’t see it under ZFS. After running ‚zpool import tank‘, everything works again.

How can I configure the pool to be mounted automatically?

Thanks in advance for your help!

Thomas
 
It should be imported automatically as default even on "pve not on zfs" as zfs.target is enabled by default.
In your case it looks like your disk maybe isn't ready as zfs import tries disk access. You should inspect the logs after boot to get down the problem and define additionl systemd rules to be successfully after boot.
 
Hi!

I checked the log entries after the reboot.

During shutdown, there is no entry with "tank".

The logs for the boot process also show no entry with "tank".

It seems that the pool is unknown.

But "zpool import tank" works. Could this be a problem with the zfs.cache? How do I solve this?

The command "zpool get cachefile" shows not tank!

Thanks!
 
Last edited:
dev-disk-by\x2dpartlabel-zfs\x2d56ccdbec05e60cf1.device loaded active plugged ST4000VN008-2DR166 tank
dev-disk-by\x2dpartlabel-zfs\x2d8425e865d4cc6d73.device loaded active plugged INTEL_SSDSC2KW120H6 pbs
zfs-import-cache.service loaded active exited Import ZFS pools by cache file
zfs-import-scan.service loaded inactive dead Import ZFS pools by device scanning
zfs-import@pbs.service loaded active exited Import ZFS pool pbs
zfs-mount.service loaded active exited Mount ZFS filesystems
zfs-share.service loaded active exited ZFS file system shares
zfs-volume-wait.service loaded active exited Wait for ZFS Volume (zvol) links in /dev
zfs-zed.service loaded active running ZFS Event Daemon (zed)
system-zfs\x2dimport.slice loaded active active Slice /system/zfs-import
zfs-import.target loaded active active ZFS pool import target
zfs-volumes.target loaded active active ZFS volumes are ready
zfs.target loaded active active ZFS startup target
root@pve-tadten:~#
 
IT WORKS!

You made my day!

I didn't understand, what was your proposal, bur anyway ...

Many thanks!
 

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!