bundles/zfs: use zfs-import-scan instead of zfs-import-cache
Last night, rx300 rebooted. After a reboot, the disks were detected in another order (but still, all were detected!), so the cachefile did no longer match, leading to breaking the import. Running `zpool import` manually worked, because that will ignore the cachefile. So, why do we depend on the cache file on boot up? The added reliability of zfs-import-scan beats the speed of zfs-import-cache in any way.
This commit is contained in:
parent
42a66751e1
commit
72cf616114
2 changed files with 39 additions and 7 deletions
10
bundles/zfs/files/zfs-import-scan-override.service
Normal file
10
bundles/zfs/files/zfs-import-scan-override.service
Normal file
|
@ -0,0 +1,10 @@
|
|||
[Unit]
|
||||
ConditionPathExists=
|
||||
|
||||
[Service]
|
||||
ExecStart=
|
||||
% if node.os == 'arch':
|
||||
ExecStart=/usr/bin/zpool import -aN -o cachefile=none
|
||||
% else:
|
||||
ExecStart=/usr/sbin/zpool import -aN -o cachefile=none
|
||||
% endif
|
Loading…
Add table
Add a link
Reference in a new issue