You are not logged in.

#1 2016-06-23 18:39:04

theking2
Banned
From: Romanshorn Switzerland
Registered: 2009-03-04
Posts: 372

[SOLVED] zfs no longer autoloading

After todays pacman -Syu my zpool is no longer autoloading. It is still enabled and I can import the pool without a problem manually. zfs.target is enabled.

which post installation steps required after todays update?

Last edited by theking2 (2016-07-26 10:33:04)


archlinux on a Gigabyte C1037UN-EU, 16GiB
a Promise  PDC40718 based ZFS set
root on a Samsung SSD PB22-J
running LogitechMediaServer(-git), Samba, MiniDLNA, TOR

Offline

#2 2016-06-23 21:56:07

Painless
Member
Registered: 2006-02-06
Posts: 233

Re: [SOLVED] zfs no longer autoloading

Offline

#3 2016-06-24 08:37:50

theking2
Banned
From: Romanshorn Switzerland
Registered: 2009-03-04
Posts: 372

Re: [SOLVED] zfs no longer autoloading

Thank for the link, but no that is not the problem, it is also relativ old. I-ve moved to the git version two upgrades ago, and that worked fine for a couple of weeks.

The pools are imported manualy without a problem. Only the zfs.target, though activated, is not loaded.


archlinux on a Gigabyte C1037UN-EU, 16GiB
a Promise  PDC40718 based ZFS set
root on a Samsung SSD PB22-J
running LogitechMediaServer(-git), Samba, MiniDLNA, TOR

Offline

#4 2016-06-25 06:31:34

theking2
Banned
From: Romanshorn Switzerland
Registered: 2009-03-04
Posts: 372

Re: [SOLVED] zfs no longer autoloading

I realize now that

systemctl start zfs.target

does not import any zfs pool
the contents of my zfs.target is

[Unit]
Description=ZFS startup target

[Install]
WantedBy=multi-user.target
[Unit]
Description=ZFS startup target

[Install]
WantedBy=multi-user.target

/etc/zfs/zpool.cache exists. but I recreated it with

 zpool set cachefile=/etc/zfs/zpool.cache zdata

Last edited by theking2 (2016-06-25 07:05:00)


archlinux on a Gigabyte C1037UN-EU, 16GiB
a Promise  PDC40718 based ZFS set
root on a Samsung SSD PB22-J
running LogitechMediaServer(-git), Samba, MiniDLNA, TOR

Offline

#5 2016-06-27 06:14:33

Mic92
Member
From: Germany
Registered: 2009-07-05
Posts: 21
Website

Re: [SOLVED] zfs no longer autoloading

zfs.target pulls a number of other services in:

$ pacman -Ql zfs-utils-dkms-git | grep .service
zfs-utils-dkms-git /usr/lib/systemd/system/zfs-import-cache.service
zfs-utils-dkms-git /usr/lib/systemd/system/zfs-import-scan.service
zfs-utils-dkms-git /usr/lib/systemd/system/zfs-mount.service
zfs-utils-dkms-git /usr/lib/systemd/system/zfs-share.service

You can check the status of those if they return something more meaningful

I have the problem that I have to manually load the zfs kernel module on my rescue usb stick,
because I do not boot from zfs there.

On my main system I import the zpool via the initrd hook and zfs=bootfs on the kernel command line

Last edited by Mic92 (2016-06-27 06:17:51)

Offline

#6 2016-06-30 13:26:34

theking2
Banned
From: Romanshorn Switzerland
Registered: 2009-03-04
Posts: 372

Re: [SOLVED] zfs no longer autoloading

The command produces

error: package 'zfs-utils-dkms-git' was not found

archlinux on a Gigabyte C1037UN-EU, 16GiB
a Promise  PDC40718 based ZFS set
root on a Samsung SSD PB22-J
running LogitechMediaServer(-git), Samba, MiniDLNA, TOR

Offline

#7 2016-06-30 13:31:52

theking2
Banned
From: Romanshorn Switzerland
Registered: 2009-03-04
Posts: 372

Re: [SOLVED] zfs no longer autoloading

and

pacman -Ql zfs-utils-linux-git| grep .service
zfs-utils-linux-git /usr/lib/systemd/system/zfs-import-cache.service
zfs-utils-linux-git /usr/lib/systemd/system/zfs-import-scan.service
zfs-utils-linux-git /usr/lib/systemd/system/zfs-mount.service
zfs-utils-linux-git /usr/lib/systemd/system/zfs-share.service
zfs-utils-linux-git /usr/lib/systemd/system/zfs-zed.service

archlinux on a Gigabyte C1037UN-EU, 16GiB
a Promise  PDC40718 based ZFS set
root on a Samsung SSD PB22-J
running LogitechMediaServer(-git), Samba, MiniDLNA, TOR

Offline

#8 2016-07-03 13:40:51

theking2
Banned
From: Romanshorn Switzerland
Registered: 2009-03-04
Posts: 372

Re: [SOLVED] zfs no longer autoloading

Ok, I'm at a loss.

Why do I have to manually load the zfs set with

zpool import -d /dev/disk/by-id zdata

or how can I instruct system-d to load it at boot time, just as it was for the last three years?


archlinux on a Gigabyte C1037UN-EU, 16GiB
a Promise  PDC40718 based ZFS set
root on a Samsung SSD PB22-J
running LogitechMediaServer(-git), Samba, MiniDLNA, TOR

Offline

#9 2016-07-04 18:45:38

theking2
Banned
From: Romanshorn Switzerland
Registered: 2009-03-04
Posts: 372

Re: [SOLVED] zfs no longer autoloading

I've disabled zfs.target as it seems to do nothing and

systemctt enable zfs-import-cache.service zfs-mount.service zfs-share.service zfs-zed.service

But that didn't help either.

It seems the Wiki page need some over-whole


archlinux on a Gigabyte C1037UN-EU, 16GiB
a Promise  PDC40718 based ZFS set
root on a Samsung SSD PB22-J
running LogitechMediaServer(-git), Samba, MiniDLNA, TOR

Offline

#10 2016-07-26 03:52:36

dmp1ce
Member
Registered: 2014-05-30
Posts: 22
Website

Re: [SOLVED] zfs no longer autoloading

I also had to set the cachefile with:

zpool set cachefile=/etc/zfs/zpool.cache <pool>

At which point

systemctl start zfs-mount.service

mounted my pool.

https://wiki.archlinux.org/index.php/ZF … atic_Start

Offline

Board footer

Powered by FluxBB