Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #246432

Start ZFS partition on boot.

From James Allsopp <jamesaallsopp@googlemail.com>
Newsgroups linux.debian.user
Subject Start ZFS partition on boot.
Date 2022-03-18 22:30 +0100
Message-ID <E2skx-2DSx-3@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

Hi,
I'm having lots of trouble starting my zfs /var partition as part of boot,
after an upgrade to Bullseye. I can manually import the partition with
zpool import -a and the status of the pool says "no known data errors".

journalctl | grep zfs gives the following error;
udevadm => systemd-udev-settle.service is deprecated, Please fix
zfs-import-cache.service, zfs-load-module.service not to pull it in.
systemd-modules-load[466]: Inserted module 'zfs'
systemd[1]: zfs-import-cache.service: Job zfs-import-cache.service/start
failed with result 'dependency'
systemd[1]: zfs-load-module.service: Job zfs-load-module.service/start
failed with result 'dependency'

I thought maybe /etc/zfs/zpool_tank.cache had got corrupted, so I set it to
none,moved the file, rebooted, reset it to /etc/zfs/zpool_tabk.cache and
reboot but no joy.

I've tried adding "ExecPreStart=/bin/sleep 5" to the service section of
/lib/systemd/systemzfs-import-cache
Did a systemctl daemon-reload
rebooted

I've checked that zfs is listed in /etc/modules-load.d/modules.conf and the
fact that you don't have to modprobe once started,suggests that it's
working.

Unfortunately no change. Now I'm wondering did the system try to load the
pool after the kernel module, but I don't want to hack around any more and
break things. Note that this used to work under Debian 10 and I've not
changed the partition.

It seems to be related to this; but I don't want to change the system any
more, without solid advice.

If anyone can offer any help, I'd be very grateful,
James

Back to linux.debian.user | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Start ZFS partition on boot. James Allsopp <jamesaallsopp@googlemail.com> - 2022-03-18 22:30 +0100
  Re: Start ZFS partition on boot. "D. R. Evans" <doc.evans@gmail.com> - 2022-03-18 22:50 +0100

csiph-web