Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set vfs.zfs.min_ashift to 12 in /etc/sysctl.conf after install #81

Closed
mremski opened this issue Feb 28, 2019 · 1 comment
Closed

set vfs.zfs.min_ashift to 12 in /etc/sysctl.conf after install #81

mremski opened this issue Feb 28, 2019 · 1 comment

Comments

Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
@mremski
Copy link

@mremski mremski commented Feb 28, 2019

Most current ZFS best practices say to set min_ashift to 12 before creating vdevs. During install to the install device the installer is correctly doing this, but it is not made persistent after install.

Describe the solution you'd like
Either create /etc/sysctl.d/local.conf with vfs.zfs.min-ashift=12 or add it to trueos.conf

The only other solution is for me to make the change by hand, which I do, but users that are not aware of it will not have it set and if they create a vdev, they could wind up with ZFS sector size of 512 because default value of min_ashift is 9.

@beanpole135
Copy link
Member

@beanpole135 beanpole135 commented Feb 28, 2019

Done!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment