mirror of
https://github.com/extremeshok/xshok-proxmox.git
synced 2026-04-25 13:45:48 +03:00
[GH-ISSUE #16] ZFS Fails on kernel upgrades #10
Labels
No labels
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/xshok-proxmox#10
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @remedycoin on GitHub (Jun 13, 2019).
Original GitHub issue: https://github.com/extremeshok/xshok-proxmox/issues/16
After installing Proxmox 5.4 with ZFS Raid 0 atop my storage the system boots fine, but after upgrading the kernel, something breaks and I end up with an unbootable system.
**Reading all physical volumes. This may take a while …
… zfs: ‘$MY_ZFS_ARC_MIN’ invalid for parameter
zfs_arc_min’ … zfs:$MY_ZFS_ARC_MAX’ invalid for parameter `zfs_arc_max’Failed to load ZFS modules.
Manually load the modules and exit.**
The immediate workaround is to boot from an earlier installed kernel which seems to work. Then edit /etc/modprobe.d/zfs.conf to have direct values for zfs caching values (min & max) .
Well, I have a 16 GB RAM system so here's some direct values I put into
/etc/modprobe.d/zfs.conf
eXtremeSHOK.com ZFS tuning
Use 1/16 RAM for MAX cache, 1/8 RAM for MIN cache, or 1GB
options zfs zfs_arc_min=1073741824
options zfs zfs_arc_max=2147483648
use the prefetch method
options zfs l2arc_noprefetch=0
max write speed to l2arc
tradeoff between write/read and durability of ssd (?)
default : 8 * 1024 * 1024
setting here : 500 * 1024 * 1024
options zfs l2arc_write_max=524288000
@remedycoin commented on GitHub (Jun 17, 2019):
Well pasting the contents of that file didn't look so well.
What ended up making it work was replacing the varrible assignment statements with my own custom calculated values of
options zfs zfs_arc_min=1073741824
options zfs zfs_arc_max=2147483648
Then I had to run the update command for grub.
@extremeshok commented on GitHub (Jun 25, 2019):
Hi ,
can you please paste the contents of your new zfs.conf here ?
@extremeshok commented on GitHub (Jun 25, 2019):
please re-open when you have more info for us.
We tested an were unable to recreate the issue.