HP Vertica installation error FAIL (S0020) fix

This is a short fix for the error FAIL(S0030) that comes up during the HP Vertica Installation.

FAIL (S0020): Readahead size of sda (/dev/sda1) is too low for typical systems: 256 <
        2048 Readahead size of  (/dev/mapper/vg_test-lv_root) is too low for
        typical systems: 256 < 2048
What is Readahead ? Readahead is a system call of the Linux kernel that loads a file's contents into the page cache, providing that way a file prefetching technology. When a file is subsequently accessed, its contents are read from the main memory (RAM) rather than from a hard disk drive (HDD), resulting in much lower file access latencies due to much higher performance of the main memory. Many Linux distributions use readahead on a list of commonly used files to speed up booting. In such a setup, if the kernel is booted with the profile boot parameter, it will record all file accesses during bootup and write a new list of files to be read during later boot sequences. Let's go an see how we can fix this erros HP Vertica requires that Disk Readahead be set to at least 2048.
  • Now let's go and alter our Linux Operational System and enable the NTP.
See you Readahead Setting of the device the error shows:
[root@primary tmp]# blockdev --report | grep /dev/sda1

rw   256   512  1024       2048       524288000   /dev/sda1
Now let's alter it's value as HP Vertica require.
[root@primary tmp]# blockdev --report | grep /dev/sda1

rw  2048   512  1024       2048       524288000   /dev/sda1

--enable on boot time

[root@primary tmp]# echo '/sbin/blockdev --setra 2048 /dev/sda1'  /etc/rc.local
[root@primary tmp]# cat /etc/rc.local
#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local
if test -f /sys/kernel/mm/redhat_transparent_hugepage/enabled; then
   echo never  /sys/kernel/mm/redhat_transparent_hugepage/enabled
fi
/sbin/blockdev --setra 2048 /dev/sda1