-
Notifications
You must be signed in to change notification settings - Fork 422
[Feature]: Set different DISK_OPTS for various virtual disks #974
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
Comments
@Namorzyny I don't think it would be necessary to set that flag. As far as I know it is used by Windows to detect that the drive is a spinning hdd and then it will schedule defragmentation (which it doesnt do when it's an ssd). But DSM is based on Linux, and doesnt do any automatic defragmentation like that. So I do not think there would be any advantage when it's detected as a hdd vs ssd. |
Okay, I think the |
You can set it to |
@kroese Thank you. I'll try it and see how it works. |
@kroese Oh, I forgot to mention that since vdsm doesn't have data scrubbing settings, I plan to use a script to perform balance and scrub regularly, which is why I noticed this issue. |
@kroese It's strange. I have set |
But they still seem to have some differences. Sequential DISK_ROTATION=1, bs=1M, ioengine=libaio, iodepth=1: Sequential DISK_ROTATION=7200, bs=1M, ioengine=libaio, iodepth=1: Random DISK_ROTATION=1, bs=4k, ioengine=libaio, iodepth=32: Random DISK_ROTATION=7200, bs=4k, ioengine=libaio, iodepth=32: |
Is your proposal related to a problem?
I installed packages on an SSD-based image file, but other data is stored on an HDD-based image file. I noticed the
ssd
option in the volumes' mount settings, likely because the default value is1
in:virtual-dsm/src/disk.sh
Line 12 in e8ec5fb
However, I cannot set different values for different image files.
Describe the solution you'd like.
I want to add environment variables like
DISK2_ROTATION
to set corresponding values for them individually.Describe alternatives you've considered.
Alternatively, provide a variable like
DISK2_EXTRA_OPTS
, as some users may need more custom parameters.Additional context
No response
The text was updated successfully, but these errors were encountered: