The quick way to adjust it is to follow the steps listed in this blog
Basically is
rmmod megaraid_sas
modprobe megaraid_sas max_sectors=2048
Please take note that the unit is in sector. If sector size is 512 bytes, setting 2048 is equivalent to 1024kb.
If your boot drive is also from Megaraid card, you will not be able to rmmod as the system will complaint it is in use. In that situation, you need to create a file call megaraid_sas.conf in /etc/modprobe.d with the following contents
options megaraid_sas max_sectors=2048
After that, you need to generate a new initramfs.
Backup your existing initramfs file (take note you have to find the correct img for your kernel version)
mv initramfs-2.6.32-220.el6.x86_64.img initramfs-2.6.32-220.el6.x86_64.img.bk
Create the new initramfs file
dracut initramfs-2.6.32-220.el6.x86_64.img 2.6.32-220.el6.x86_64
After that reboot your system and your max_hw_sectors_kb should show 1024 and you can increase your max_sectors_kb to the maximum 1024.
No comments:
Post a Comment