It works.
--
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to zfs-linux in Ubuntu.
https://bugs.launchpad.net/bugs/1581904
Title:
File-based pools do not import on boot
Status in zfs-linux package in Ubuntu:
Confirmed
Bug description:
I've just added "After=local-fs.target" to /lib/systemd/system/zfs-
import-cache.service and now it starts almost normally. Only once I saw
an error after boot saying that kernel module zfs is not loaded. So,
this is not a good fix, but it shows that an issue is likely to be
connected with some
root@server:~# zpool import -c /etc/zfs/zpool.cache -aN
root@server:~# zpool list
NAME SIZE ALLOC FREE EXPANDSZ FRAGCAP DEDUP HEALTH ALTROOT
lxd199G 132K 199G - 0% 0% 1.00x ONLINE -
/web is a separate filesystem on LVM volume, /web/lxd - is a regular
But it can be started manually:
root@server:~# systemctl start zfs-import-cache
root@server:~# systemctl status -l zfs-import-cache.service
● zfs-import-cache.service - Import ZFS pools by cache file
Loaded: loaded (/lib/systemd/system/zfs-import-cache.service; static; vendor
preset:
root@server:~# systemctl status -l zfs-import-cache.service
● zfs-import-cache.service - Import ZFS pools by cache file
Loaded: loaded (/lib/systemd/system/zfs-import-cache.service; static; vendor
preset: enabled)
Active: failed (Result: exit-code) since Sun 2016-05-15 11:27:46 MSK; 1min
Also, I get this:
root@server:~# zpool create -o cachefile=/etc/zfs/zpool.cache lxd
/web/lxd/100gb.01 /web/lxd/100gb.02
root@server:~# zpool list
NAME SIZE ALLOC FREE EXPANDSZ FRAGCAP DEDUP HEALTH ALTROOT
lxd199G50K 199G - 0% 0% 1.00x ONLINE -
Create pool:
root@server:~# zpool create -o cachefile=/etc/zfs/zpool.cache lxd
/web/lxd/100gb.01 /web/lxd/100gb.02
root@server:~# zpool list
NAME SIZE ALLOC FREE EXPANDSZ FRAGCAP DEDUP HEALTH ALTROOT
lxd199G50K 199G - 0% 0% 1.00x ONLINE -
After
Public bug reported:
System:
ubuntu: 16.04
zfsutils-linux: 0.6.5.6-0ubuntu8
Create sparse files and create pool:
root@server:/# fallocate -l 100G /web/lxd/100gb.01
root@server:/# fallocate -l 100G /web/lxd/100gb.02
root@server:/# zpool create lxd /web/lxd/100gb.01
root@server:/# zpool add lxd
8 matches
Mail list logo