Hi,
I've got a zfs pool that works fine in normal use on my debian system and
remains after a reboot.
When I reboot into recovery mode, I have to reimport the pool manually
using
zpool import -d /dev/disk/by-id <name of pool>

I export before I reboot, but when I reboot into the full version of Debian
10, the pool isn't there. I can reimport it using the zpool import command,
but I have to do that every time unless I reset the cache using;
zpool set cachefile=none tank
zpool set cachefile=/etc/zfs/zpool.cache tank

which I found as the zfs-import-cache.service had failed.

My pool isn't particularly complicated;
root@hawaiian:~# zpool status
  pool: tank
 state: ONLINE
  scan: none requested
config:

        NAME                        STATE     READ WRITE CKSUM
        tank                        ONLINE       0     0     0
          mirror-0                  ONLINE       0     0     0
            wwn-0x50000f000b074105  ONLINE       0     0     0
            wwn-0x50024e9001a4ea77  ONLINE       0     0     0

errors: No known data errors

What I want to do is this;

   - Reboot in single user mode
   - import pool.
   - cp -a /var to /tank/var
   - Set the mount point on /tank/var to /var
   - Remove /var entry from /etc/fstab
   - Export the pool
   - Reboot


And then I should have a ZFS var for VMs and Docker containers when the
main OS imports ZFS for /var.

I tried this with a VM and it worked.
Thanks
James

Reply via email to